syzbot


KCSAN: data-race in iput / move_expired_inodes (7)

Status: auto-obsoleted due to no activity on 2023/04/08 21:12
Subsystems: fs
[Documentation on labels]
First crash: 586d, last: 586d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in iput / move_expired_inodes (5) fs 1 841d 841d 0/28 auto-closed as invalid on 2022/07/21 10:59
upstream KCSAN: data-race in iput / move_expired_inodes (8) fs 1 456d 456d 0/28 auto-obsoleted due to no activity on 2023/08/10 09:55
upstream KCSAN: data-race in iput / move_expired_inodes (10) fs 1 237d 237d 0/28 auto-obsoleted due to no activity on 2024/03/16 00:02
upstream KCSAN: data-race in iput / move_expired_inodes (9) fs 2 275d 297d 0/28 auto-obsoleted due to no activity on 2024/02/07 16:43
upstream KCSAN: data-race in iput / move_expired_inodes fs 5 1411d 1397d 0/28 auto-closed as invalid on 2020/12/27 22:09
upstream KCSAN: data-race in iput / move_expired_inodes (3) fs 3 1249d 1294d 0/28 auto-closed as invalid on 2021/06/07 20:37
upstream KCSAN: data-race in iput / move_expired_inodes (4) fs 1 1120d 1120d 0/28 auto-closed as invalid on 2021/10/15 01:41
upstream KCSAN: data-race in iput / move_expired_inodes (6) fs 1 631d 631d 0/28 auto-obsoleted due to no activity on 2023/02/22 21:07
upstream KCSAN: data-race in iput / move_expired_inodes (2) fs 1 1360d 1360d 0/28 auto-closed as invalid on 2021/02/16 20:27

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

read-write to 0xffff88810a992be0 of 8 bytes by task 8 on cpu 1:
 move_expired_inodes+0x17b/0x410 fs/fs-writeback.c:1385
 queue_io+0xe1/0x2e0 fs/fs-writeback.c:1437
 wb_writeback+0x213/0x6c0 fs/fs-writeback.c:2063
 wb_check_start_all fs/fs-writeback.c:2189 [inline]
 wb_do_writeback fs/fs-writeback.c:2215 [inline]
 wb_workfn+0x4ea/0x8d0 fs/fs-writeback.c:2248
 process_one_work+0x3e6/0x750 kernel/workqueue.c:2390
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537
 kthread+0x1ac/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff88810a992be0 of 8 bytes by task 3131 on cpu 0:
 iput+0x32/0x5b0 fs/inode.c:1764
 dentry_unlink_inode+0x22a/0x240 fs/dcache.c:401
 __dentry_kill+0x2db/0x4a0 fs/dcache.c:607
 shrink_dentry_list+0x207/0x380 fs/dcache.c:1201
 prune_dcache_sb+0x81/0xb0 fs/dcache.c:1282
 super_cache_scan+0x26c/0x310 fs/super.c:104
 do_shrink_slab+0x2a0/0x640 mm/vmscan.c:853
 shrink_slab_memcg mm/vmscan.c:922 [inline]
 shrink_slab+0x2bc/0x520 mm/vmscan.c:1001
 shrink_node_memcgs mm/vmscan.c:6439 [inline]
 shrink_node+0xaf5/0x14f0 mm/vmscan.c:6473
 shrink_zones mm/vmscan.c:6711 [inline]
 do_try_to_free_pages+0x40d/0xc80 mm/vmscan.c:6773
 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7088
 reclaim_high+0xca/0x110 mm/memcontrol.c:2403
 mem_cgroup_handle_over_high+0x8c/0x1a0 mm/memcontrol.c:2588
 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline]
 exit_to_user_mode_loop+0x99/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000007 -> 0x0000000000020087

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3131 Comm: syz-executor.0 Not tainted 6.2.0-syzkaller-10827-g489fa31ea873-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/25 21:07 upstream 489fa31ea873 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in iput / move_expired_inodes
* Struck through repros no longer work on HEAD.