syzbot


KCSAN: data-race in get_tree_bdev / super_cache_count

Status: auto-closed as invalid on 2022/02/28 22:53
Subsystems: fs
[Documentation on labels]
First crash: 814d, last: 814d
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 (2) ext4 1 530d 530d 0/26 auto-obsoleted due to no activity on 2022/12/10 10:56

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

write to 0xffff888134ee7850 of 8 bytes by task 8046 on cpu 0:
 get_tree_bdev+0x347/0x3d0 fs/super.c:1298
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497
 do_new_mount fs/namespace.c:2994 [inline]
 path_mount+0x11cf/0x1c40 fs/namespace.c:3324
 do_mount fs/namespace.c:3337 [inline]
 __do_sys_mount fs/namespace.c:3545 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3522
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3522
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888134ee7850 of 8 bytes by task 8050 on cpu 1:
 super_cache_count+0x22/0x190 fs/super.c:139
 do_shrink_slab+0x56/0x600 mm/vmscan.c:720
 shrink_slab_memcg+0x1c2/0x440 mm/vmscan.c:842
 shrink_slab+0x5c/0x1c0 mm/vmscan.c:921
 shrink_node_memcgs+0x27a/0x410 mm/vmscan.c:3172
 shrink_node+0x8f6/0x1190 mm/vmscan.c:3293
 shrink_zones+0x2d1/0x5e0 mm/vmscan.c:3530
 do_try_to_free_pages+0x181/0x720 mm/vmscan.c:3588
 try_to_free_mem_cgroup_pages+0x1cb/0x420 mm/vmscan.c:3902
 try_charge_memcg+0x280/0xa50 mm/memcontrol.c:2599
 try_charge mm/memcontrol.c:2724 [inline]
 mem_cgroup_charge_skmem+0x4d/0x130 mm/memcontrol.c:7019
 sock_reserve_memory+0xaf/0x200 net/core/sock.c:990
 sock_setsockopt+0x1066/0x2020 net/core/sock.c:1446
 __sys_setsockopt+0x239/0x2a0 net/socket.c:2176
 __do_sys_setsockopt net/socket.c:2191 [inline]
 __se_sys_setsockopt net/socket.c:2188 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2188
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000010010000 -> 0x0000000070010000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8050 Comm: syz-executor.1 Not tainted 5.17.0-rc1-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
2022/01/24 22:45 upstream dd81e1c7d5fb 2cbffd88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in get_tree_bdev / super_cache_count
* Struck through repros no longer work on HEAD.