aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorHajime Tazaki <[email protected]>2024-11-08 22:28:34 +0000
committerAndrew Morton <[email protected]>2024-11-12 01:20:23 +0000
commit247d720b2c5d22f7281437fd6054a138256986ba (patch)
treec076622a29135a53b87701f67a739c571171fae9 /rust/helpers/mutex.c
parentocfs2: fix UBSAN warning in ocfs2_verify_volume() (diff)
downloadkernel-247d720b2c5d22f7281437fd6054a138256986ba.tar.gz
kernel-247d720b2c5d22f7281437fd6054a138256986ba.zip
nommu: pass NULL argument to vma_iter_prealloc()
When deleting a vma entry from a maple tree, it has to pass NULL to vma_iter_prealloc() in order to calculate internal state of the tree, but it passed a wrong argument. As a result, nommu kernels crashed upon accessing a vma iterator, such as acct_collect() reading the size of vma entries after do_munmap(). This commit fixes this issue by passing a right argument to the preallocation call. Link: https://lkml.kernel.org/r/[email protected] Fixes: b5df09226450 ("mm: set up vma iterator for vma_iter_prealloc() calls") Signed-off-by: Hajime Tazaki <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions