summaryrefslogtreecommitdiff
path: root/tools/cgroup
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2024-04-05 17:56:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-17 12:23:40 +0300
commitbb43c568f74f843b3e8547d125d82a6ec6a1a61e (patch)
treea8a262fbf454dc0a2064fb91a244068f220d43c9 /tools/cgroup
parentbbb2d4c71e86874762ed3e0133d53c2b8e206f20 (diff)
downloadlinux-bb43c568f74f843b3e8547d125d82a6ec6a1a61e.tar.xz
kernfs: annotate different lockdep class for of->mutex of writable files
commit 16b52bbee4823b01ab7fe3919373c981a38f3797 upstream. The writable file /sys/power/resume may call vfs lookup helpers for arbitrary paths and readonly files can be read by overlayfs from vfs helpers when sysfs is a lower layer of overalyfs. To avoid a lockdep warning of circular dependency between overlayfs inode lock and kernfs of->mutex, use a different lockdep class for writable and readonly kernfs files. Reported-by: syzbot+9a5b0ced8b1bfb238b56@syzkaller.appspotmail.com Fixes: 0fedefd4c4e3 ("kernfs: sysfs: support custom llseek method for sysfs entries") Suggested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/cgroup')
0 files changed, 0 insertions, 0 deletions