diff options
author | Chen Zhongjin <chenzhongjin@huawei.com> | 2022-11-28 11:33:05 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2022-11-28 11:33:05 +0100 |
commit | 672e4268b2863d7e4978dfed29552b31c2f9bd4e (patch) | |
tree | 68402976a308f4f3632a8b4ed2e9639b50812ad7 /drivers/ata/pata_cs5530.c | |
parent | Linux 6.1-rc6 (diff) | |
download | linux-672e4268b2863d7e4978dfed29552b31c2f9bd4e.tar.xz linux-672e4268b2863d7e4978dfed29552b31c2f9bd4e.zip |
ovl: fix use inode directly in rcu-walk mode
ovl_dentry_revalidate_common() can be called in rcu-walk mode. As document
said, "in rcu-walk mode, d_parent and d_inode should not be used without
care".
Check inode here to protect access under rcu-walk mode.
Fixes: bccece1ead36 ("ovl: allow remote upper")
Reported-and-tested-by: syzbot+a4055c78774bbf3498bb@syzkaller.appspotmail.com
Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Cc: <stable@vger.kernel.org> # v5.7
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'drivers/ata/pata_cs5530.c')
0 files changed, 0 insertions, 0 deletions