diff options
| author | Hyeonggon Yoo <[email protected]> | 2022-08-17 10:18:26 +0000 |
|---|---|---|
| committer | Vlastimil Babka <[email protected]> | 2022-09-01 09:44:39 +0000 |
| commit | d5eff736902d5565a24f1b571b5987b3e5ee9a5b (patch) | |
| tree | 6d7e5fe943c66e9296ec474bf80781178407025a /lib/overflow_kunit.c | |
| parent | mm/slab_common: move declaration of __ksize() to mm/slab.h (diff) | |
| download | kernel-d5eff736902d5565a24f1b571b5987b3e5ee9a5b.tar.gz kernel-d5eff736902d5565a24f1b571b5987b3e5ee9a5b.zip | |
mm/sl[au]b: check if large object is valid in __ksize()
If address of large object is not beginning of folio or size of the
folio is too small, it must be invalid. WARN() and return 0 in such
cases.
Cc: Marco Elver <[email protected]>
Suggested-by: Vlastimil Babka <[email protected]>
Signed-off-by: Hyeonggon Yoo <[email protected]>
Reviewed-by: Vlastimil Babka <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions
