syzbot


KCSAN: data-race in evict / move_expired_inodes

Status: auto-closed as invalid on 2020/12/21 11:44
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+ec08fd7847dd12f73b33@syzkaller.appspotmail.com
First crash: 1318d, last: 1254d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in evict / move_expired_inodes

read-write to 0xffff88810d71c6f8 of 8 bytes by task 8 on cpu 1:
 move_expired_inodes+0x1bf/0x490 fs/fs-writeback.c:1257
 queue_io+0xe1/0x2b0 fs/fs-writeback.c:1304
 wb_writeback+0x255/0x660 fs/fs-writeback.c:1892
 wb_do_writeback+0x101/0x5d0 fs/fs-writeback.c:2039
 wb_workfn+0xb8/0x410 fs/fs-writeback.c:2080
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fa/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88810d71c6f8 of 8 bytes by task 8456 on cpu 0:
 evict+0x42/0x470 fs/inode.c:561
 iput_final fs/inode.c:1654 [inline]
 iput+0x421/0x510 fs/inode.c:1680
 do_unlinkat+0x2c9/0x4d0 fs/namei.c:3903
 __do_sys_unlink fs/namei.c:3943 [inline]
 __se_sys_unlink fs/namei.c:3941 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:3941
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8456 Comm: syz-executor.2 Not tainted 5.10.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/12 10:46 upstream 3d5e28bff7ad 77a55c8e .config console log report info ci2-upstream-kcsan-gce
2020/11/11 17:59 upstream eccc87672492 cca87986 .config console log report info ci2-upstream-kcsan-gce
2020/10/10 00:21 upstream 8a5f78d98c26 93817d89 .config console log report info ci2-upstream-kcsan-gce
2020/10/04 12:50 upstream 22fbc037cd32 5ef9c291 .config console log report info ci2-upstream-kcsan-gce
2020/09/08 19:40 upstream 6f6a73c8b715 abf9ba4f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.