aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorMark Harmstone <[email protected]>2024-11-15 15:49:17 +0000
committerDavid Sterba <[email protected]>2024-11-29 15:56:38 +0000
commit22d2e48e318564f8c9b09faf03ecb4f03fb44dd5 (patch)
tree1aa36fc02534dfae195851377a340f5fe993129f /security/selinux/hooks.c
parentbtrfs: ref-verify: fix use-after-free after invalid ref action (diff)
downloadkernel-22d2e48e318564f8c9b09faf03ecb4f03fb44dd5.tar.gz
kernel-22d2e48e318564f8c9b09faf03ecb4f03fb44dd5.zip
btrfs: fix lockdep warnings on io_uring encoded reads
Lockdep doesn't like the fact that btrfs_uring_read_extent() returns to userspace still holding the inode lock, even though we release it once the I/O finishes. Add calls to rwsem_release() and rwsem_acquire_read() to work round this. Reported-by: Johannes Thumshirn <[email protected]> 34310c442e17 ("btrfs: add io_uring command for encoded reads (ENCODED_READ ioctl)") Signed-off-by: Mark Harmstone <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions