Commit 81e9d6f
aio: fix mremap after fork null-deref
Commit e4a0d3e ("aio: Make it possible to remap aio ring") introduced
a null-deref if mremap is called on an old aio mapping after fork as
mm->ioctx_table will be set to NULL.
[[email protected]: fix 80 column issue]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: e4a0d3e ("aio: Make it possible to remap aio ring")
Signed-off-by: Seth Jenkins <[email protected]>
Signed-off-by: Jeff Moyer <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Benjamin LaHaise <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent ca2b1a5 commit 81e9d6f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
364 | 367 | | |
365 | 368 | | |
366 | 369 | | |
| |||
374 | 377 | | |
375 | 378 | | |
376 | 379 | | |
| 380 | + | |
377 | 381 | | |
378 | 382 | | |
379 | 383 | | |
| |||
0 commit comments