Re: [PATCH] mm/slub.c: add parameter length checking for alloc_loc_track()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/19/2013 09:57 PM, Christoph Lameter wrote:
> On Fri, 19 Jul 2013, Chen Gang F T wrote:
> 
>> > Yes, "'max' can roughly mean the same thing", but they are still a
>> > little different.
>> >
>> > 'max' also means: "the caller tells callee: I have told you the
>> > maximize buffer length, so I need not check the buffer length to be
>> > sure of no memory overflow, you need be sure of it".
>> >
>> > 'size' means: "the caller tells callee: you should use the size which I
>> > give you, I am sure it is OK, do not care about whether it can cause
>> > memory overflow or not".
> Ok that makes sense.
> 

Thanks.

>> > The diff may like this:
> I am fine with such a patch.
> 

If suitable,  I should send the related patch for it.

Is it necessary to send the related patch for it ?


> Ultimately I would like the tracking and debugging technology to be
> abstracted from the slub allocator and made generally useful by putting it
> into mm/slab_common.c. SLAB has similar things but does not have all the
> features.
> 

At least for me, it is reasonable and necessary.

If possible, I'd like to do with it.

Excuse me, I have to do another things within this month. If really may
let me do, I should finish within next month (2013-08-31), is it OK ?


Thanks.
-- 
Chen Gang

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]