Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3

From: Pavel Machek
Date: Thu Mar 06 2008 - 15:25:19 EST


On Thu 2008-03-06 16:51:41, Ingo Molnar wrote:
>
> * Pavel Machek <pavel@xxxxxx> wrote:
>
> > > > kmem_cache_alloc() can fail (return NULL) and not handling it is a
> > > > bug.
> > >
> > > oops. you are correct. Will send a sigsegv in the failure case then.
> > > Thanks.
> >
> > You are introducing possibility of hard to debug error, where previous
> > code just worked... Does not look like good idea to me.
>
> hm, how does it differ from any other allocation failure? We could fail

Well, we should not be sending SIGSEGV...? SIGBUS would be cleaner, or
SIGKILL... what happens when userland tries to catch this one?

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/