> > I think we already fixed this? > > Fix ZERO_OR_NULL_PTR(ZERO_SIZE_PTR) > > There is no use of ZERO_OR_NULL ptr in krealloc. Linus added a check to > ksize() instead so that ksize(NULL) returns 0 instead of failing. However, this still doesn't fix the other corner case I pointed out: krealloc(NULL, 0, GFP_KERNEL) will give you a NULL pointer instead of a ZERO_SIZE_PTR afaict. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: [RFC] fix slub krealloc()
- From: Christoph Lameter <[email protected]>
- Re: [RFC] fix slub krealloc()
- References:
- [RFC] fix slub krealloc()
- From: Johannes Berg <[email protected]>
- Re: [RFC] fix slub krealloc()
- From: Christoph Lameter <[email protected]>
- Re: [RFC] fix slub krealloc()
- From: Andrew Morton <[email protected]>
- Re: [RFC] fix slub krealloc()
- From: Christoph Lameter <[email protected]>
- [RFC] fix slub krealloc()
- Prev by Date: [PATCH] usb-serial: fix oti6858.c segfault in termios handling
- Next by Date: Re: -mm merge plans for 2.6.23
- Previous by thread: Re: [RFC] fix slub krealloc()
- Next by thread: Re: [RFC] fix slub krealloc()
- Index(es):