summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/ioctl.c
diff options
context:
space:
mode:
authorZhihao Cheng <chengzhihao1@huawei.com>2020-08-17 16:29:09 +0200
committerRichard Weinberger <richard@nod.at>2020-09-17 22:56:09 +0200
commitdd7db149bcd914db8fdeb19cd5597c0740121bc7 (patch)
tree42c4d735df65cc5879a0e9b9d832d8bf3b36bfb0 /fs/ubifs/ioctl.c
parentubi: check kthread_should_stop() after the setting of task state (diff)
downloadlinux-dd7db149bcd914db8fdeb19cd5597c0740121bc7.tar.xz
linux-dd7db149bcd914db8fdeb19cd5597c0740121bc7.zip
ubifs: ubifs_jnl_change_xattr: Remove assertion 'nlink > 0' for host inode
Changing xattr of a temp file will trigger following assertion failed and make ubifs turn into readonly filesystem: ubifs_assert_failed [ubifs]: UBIFS assert failed: host->i_nlink > 0, in fs/ubifs/journal.c:1801 Reproducer: 1. fd = open(__O_TMPFILE) 2. fsetxattr(fd, key, value2, XATTR_CREATE) 3. fsetxattr(fd, key, value2, XATTR_REPLACE) Fix this by removing assertion 'nlink > 0' for host inode. Reported-by: Chengsong Ke <kechengsong@huawei.com> Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/ioctl.c')
0 files changed, 0 insertions, 0 deletions