]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: fix lock in ovl_llseek()
authorAmir Goldstein <amir73il@gmail.com>
Mon, 2 Mar 2020 13:03:35 +0000 (15:03 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Mar 2020 15:38:10 +0000 (16:38 +0100)
commitb4742b1ed89f34385cdbabba2ba78caf08b7ab24
treecebd4580264859afc1d17ec86a9ce44710708db9
parent80b2d47f70ccd2a60c3e607ab0470ddb354d8917
ovl: fix lock in ovl_llseek()

ovl_inode_lock() is interruptible. When inode_lock() in ovl_llseek()
was replaced with ovl_inode_lock(), we did not add a check for error.

Fix this by making ovl_inode_lock() uninterruptible and change the
existing call sites to use an _interruptible variant.

Reported-by: syzbot+66a9752fa927f745385e@syzkaller.appspotmail.com
Fixes: cd455e3fdcef ("ovl: use ovl_inode_lock in ovl_llseek()")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/overlayfs.h
fs/overlayfs/util.c