diff options
| author | Nirjhar Roy <[email protected]> | 2024-10-18 17:46:01 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-11-15 06:49:19 +0000 |
| commit | 811808d365398680b628d2b88aafeba77c88691a (patch) | |
| tree | 26026a66991f95ef51e606bc4ab09e02f5a19562 /mm/filemap.c | |
| parent | zram: fix NULL pointer in comp_algorithm_show() (diff) | |
| download | kernel-811808d365398680b628d2b88aafeba77c88691a.tar.gz kernel-811808d365398680b628d2b88aafeba77c88691a.zip | |
mm/kfence: add a new kunit test test_use_after_free_read_nofault()
Faults from copy_from_kernel_nofault() need to be handled by fixup table
and should not be handled by kfence. Otherwise while reading /proc/kcore
which uses copy_from_kernel_nofault(), kfence can generate false
negatives. This can happen when /proc/kcore ends up reading an unmapped
address from kfence pool.
Let's add a testcase to cover this case.
Link: https://lkml.kernel.org/r/210e561f7845697a32de44b643393890f180069f.1729272697.git.ritesh.list@gmail.com
Signed-off-by: Nirjhar Roy <[email protected]>
Co-developed-by: Ritesh Harjani (IBM) <[email protected]>
Signed-off-by: Ritesh Harjani (IBM) <[email protected]>
Tested-by: Marco Elver <[email protected]>
Reviewed-by: Marco Elver <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions
