syzbot


KCSAN: data-race in fuse_dev_do_read / fuse_queue_forget

Status: auto-closed as invalid on 2020/10/08 02:59
Subsystems: fuse
[Documentation on labels]
First crash: 1608d, last: 1608d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fuse_dev_do_read / fuse_queue_forget (2) fuse 1 1519d 1512d 0/28 auto-closed as invalid on 2021/01/04 05:49

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fuse_dev_do_read / fuse_queue_forget

write to 0xffff8880b53f5ea0 of 8 bytes by task 15836 on cpu 0:
 fuse_queue_forget+0x7f/0xe0 fs/fuse/dev.c:242
 fuse_evict_inode+0xc5/0x180 fs/fuse/inode.c:115
 evict+0x19f/0x470 fs/inode.c:576
 iput_final fs/inode.c:1652 [inline]
 iput+0x44a/0x550 fs/inode.c:1678
 dentry_unlink_inode+0x210/0x220 fs/dcache.c:374
 __dentry_kill+0x293/0x450 fs/dcache.c:579
 dentry_kill fs/dcache.c:692 [inline]
 dput+0x208/0x420 fs/dcache.c:878
 __lookup_slow+0x139/0x250 fs/namei.c:1537
 lookup_slow fs/namei.c:1561 [inline]
 walk_component+0x2a5/0x350 fs/namei.c:1860
 lookup_last fs/namei.c:2309 [inline]
 path_lookupat+0x12d/0x560 fs/namei.c:2333
 do_o_path fs/namei.c:3339 [inline]
 path_openat+0x1ae1/0x20a0 fs/namei.c:3361
 do_filp_open+0xbd/0x1d0 fs/namei.c:3395
 do_sys_openat2+0x33b/0x500 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_openat fs/open.c:1200 [inline]
 __se_sys_openat fs/open.c:1195 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1195
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b53f5ea0 of 8 bytes by task 15829 on cpu 1:
 forget_pending fs/fuse/dev.c:1003 [inline]
 request_pending fs/fuse/dev.c:1009 [inline]
 fuse_dev_do_read+0x472/0xef0 fs/fuse/dev.c:1214
 fuse_dev_read+0xa2/0xe0 fs/fuse/dev.c:1329
 call_read_iter include/linux/fs.h:1876 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x57a/0x5e0 fs/read_write.c:481
 ksys_read+0xce/0x180 fs/read_write.c:607
 __do_sys_read fs/read_write.c:617 [inline]
 __se_sys_read fs/read_write.c:615 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:615
 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: 1 PID: 15829 Comm: syz-executor.2 Not tainted 5.9.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/03 02:54 upstream fc3abb53250a abf9ba4f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.