diff options
author | Kees Cook <[email protected]> | 2022-09-29 02:24:53 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2022-11-01 10:04:51 -0700 |
commit | 9e4a617757273a86b560c1ece40c48e4940a3c79 (patch) | |
tree | 324f6fc68db62db7baeef3adc173ae50862ebf1e /lib/memory-notifier-error-inject.c | |
parent | 96fce387d58fa8eae6e8d9b1ecdfbc18292d7a68 (diff) |
string: Add __realloc_size hint to kmemdup()
Add __realloc_size() hint to kmemdup() so the compiler can reason about
the length of the returned buffer. (These must not use __alloc_size,
since those include __malloc which says the contents aren't defined[1]).
[1] https://lore.kernel.org/linux-hardening/[email protected]/
Cc: Rasmus Villemoes <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions