diff options
| author | Steven Rostedt (Google) <[email protected]> | 2023-11-21 23:10:04 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2023-11-22 23:36:35 +0000 |
| commit | 4763d635c907baed212664dc579dde1663bb2676 (patch) | |
| tree | b11f6acbae95f733797de2c4d83d7eed9760a738 /net/unix/unix_bpf.c | |
| parent | eventfs: Do not invalidate dentry in create_file/dir_dentry() (diff) | |
| download | kernel-4763d635c907baed212664dc579dde1663bb2676.tar.gz kernel-4763d635c907baed212664dc579dde1663bb2676.zip | |
eventfs: Use GFP_NOFS for allocation when eventfs_mutex is held
If memory reclaim happens, it can reclaim file system pages. The file
system pages from eventfs may take the eventfs_mutex on reclaim. This
means that allocation while holding the eventfs_mutex must not call into
filesystem reclaim. A lockdep splat uncovered this.
Link: https://lkml.kernel.org/r/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Andrew Morton <[email protected]>
Fixes: 28e12c09f5aa0 ("eventfs: Save ownership and mode")
Fixes: 5790b1fb3d672 ("eventfs: Remove eventfs_file and just use eventfs_inode")
Reported-by: Mark Rutland <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
