syzbot


KCSAN: data-race in get_tree_bdev / super_cache_count (2)

Status: auto-obsoleted due to no activity on 2022/12/10 10:56
Subsystems: ext4
[Documentation on labels]
First crash: 530d, last: 530d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in get_tree_bdev / super_cache_count fs 1 815d 815d 0/26 auto-closed as invalid on 2022/02/28 22:53

Sample crash report:
==================================================================
BUG: KCSAN: data-race in get_tree_bdev / super_cache_count

read-write to 0xffff88813b84d050 of 8 bytes by task 6894 on cpu 0:
 get_tree_bdev+0x32b/0x3b0 fs/super.c:1330
 ext4_get_tree+0x18/0x20 fs/ext4/super.c:5673
 vfs_get_tree+0x49/0x190 fs/super.c:1531
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4aa/0xb70 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813b84d050 of 8 bytes by task 1837 on cpu 1:
 super_cache_count+0x22/0x190 fs/super.c:139
 do_shrink_slab+0x56/0x600 mm/vmscan.c:789
 shrink_slab_memcg+0x1c2/0x3e0 mm/vmscan.c:911
 shrink_slab+0x5c/0x1c0 mm/vmscan.c:990
 shrink_node_memcgs+0x28a/0x470 mm/vmscan.c:6076
 shrink_node+0x1d7/0x930 mm/vmscan.c:6105
 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:6343
 do_try_to_free_pages+0x195/0x760 mm/vmscan.c:6405
 try_to_free_mem_cgroup_pages+0x1d1/0x420 mm/vmscan.c:6720
 reclaim_high+0xcd/0x110 mm/memcontrol.c:2389
 mem_cgroup_handle_over_high+0x75/0x120 mm/memcontrol.c:2574
 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline]
 exit_to_user_mode_loop+0xa5/0x130 kernel/entry/common.c:171
 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000010810000 -> 0x0000000070810000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1837 Comm: syz-executor.2 Not tainted 6.1.0-rc3-syzkaller-00280-g64c3dd0b98f5-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/05 10:52 upstream 64c3dd0b98f5 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in get_tree_bdev / super_cache_count
* Struck through repros no longer work on HEAD.