Zhihao Cheng
dd7db149bc
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>
2020-09-17 22:56:09 +02:00
..
2020-06-01 12:00:10 -07:00
2019-08-22 17:25:33 +02:00
2020-07-16 12:35:15 -07:00
2019-07-08 19:43:53 +02:00
2019-05-28 10:27:53 -07:00
2020-09-17 22:55:51 +02:00
2019-07-12 12:24:03 -07:00
2020-07-16 12:35:15 -07:00
2020-07-16 12:35:15 -07:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:07 +02:00
2020-03-30 23:02:37 +02:00
2020-03-19 21:57:06 -07:00
2020-09-17 22:56:09 +02:00
2019-12-31 10:33:51 -06:00
2020-01-22 14:49:56 -08:00
2019-07-08 19:43:51 +02:00
2020-08-23 17:36:59 -05:00
2020-06-02 10:59:11 -07:00
2020-07-16 12:35:15 -07:00
2019-01-23 23:56:43 -05:00
2020-05-08 15:32:15 +10:00
2018-08-15 00:25:21 +02:00
2020-08-02 22:59:03 +02:00
2020-09-17 22:55:41 +02:00
2019-07-08 19:43:43 +02:00
2020-06-01 12:00:10 -07:00
2020-08-02 22:23:46 +02:00
2019-06-05 17:37:07 +02:00
2019-06-05 17:37:07 +02:00
2020-08-02 22:23:46 +02:00
2019-11-17 22:22:54 +01:00
2020-07-16 12:35:15 -07:00
2020-09-17 22:55:41 +02:00
2019-07-08 19:43:53 +02:00
2020-08-02 22:23:46 +02:00
2020-09-17 22:55:41 +02:00