syzbot


KCSAN: data-race in list_lru_add / list_lru_count_one

Status: closed as invalid on 2019/11/19 13:54
Subsystems: mm
[Documentation on labels]
First crash: 1642d, last: 1632d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in list_lru_add / list_lru_count_one (3) mm 1 1367d 1367d 0/26 auto-closed as invalid on 2020/09/01 07:07
upstream KCSAN: data-race in list_lru_add / list_lru_count_one (2) mm 15 1439d 1610d 0/26 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in list_lru_add / list_lru_count_one

write to 0xffff8881001d2ad0 of 8 bytes by task 14980 on cpu 1:
 list_lru_add+0x20e/0x450 mm/list_lru.c:137
 inode_lru_list_add fs/inode.c:426 [inline]
 inode_add_lru fs/inode.c:442 [inline]
 inode_add_lru+0x10c/0x170 fs/inode.c:437
 iput_final fs/inode.c:1544 [inline]
 iput+0x4a8/0x4e0 fs/inode.c:1589
 dentry_unlink_inode+0x270/0x2e0 fs/dcache.c:374
 __dentry_kill+0x220/0x3c0 fs/dcache.c:579
 shrink_dentry_list+0x10e/0x1c0 fs/dcache.c:1120
 prune_dcache_sb+0x96/0xc0 fs/dcache.c:1201
 super_cache_scan+0x1d1/0x2c0 fs/super.c:105
 do_shrink_slab+0x2b6/0x5a0 mm/vmscan.c:561
 shrink_slab_memcg mm/vmscan.c:631 [inline]
 shrink_slab+0x46e/0x540 mm/vmscan.c:710
 shrink_node+0x1ad/0xb30 mm/vmscan.c:2811
 shrink_zones mm/vmscan.c:3025 [inline]
 do_try_to_free_pages+0x242/0x940 mm/vmscan.c:3083
 try_to_free_mem_cgroup_pages+0x1fd/0x4c0 mm/vmscan.c:3383
 reclaim_high.constprop.0+0xf7/0x140 mm/memcontrol.c:2349
 mem_cgroup_handle_over_high+0x96/0x180 mm/memcontrol.c:2430
 tracehook_notify_resume include/linux/tracehook.h:197 [inline]
 exit_to_usermode_loop+0x20c/0x2c0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881001d2ad0 of 8 bytes by task 9632 on cpu 0:
 list_lru_count_one+0xbd/0x130 mm/list_lru.c:193
 list_lru_shrink_count include/linux/list_lru.h:123 [inline]
 super_cache_count+0x11a/0x1b0 fs/super.c:148
 do_shrink_slab+0xb7/0x5a0 mm/vmscan.c:479
 shrink_slab_memcg mm/vmscan.c:650 [inline]
 shrink_slab+0x4a9/0x540 mm/vmscan.c:710
 shrink_node+0x1ad/0xb30 mm/vmscan.c:2811
 shrink_zones mm/vmscan.c:3025 [inline]
 do_try_to_free_pages+0x242/0x940 mm/vmscan.c:3083
 try_to_free_mem_cgroup_pages+0x1fd/0x4c0 mm/vmscan.c:3383
 reclaim_high.constprop.0+0xf7/0x140 mm/memcontrol.c:2349
 mem_cgroup_handle_over_high+0x96/0x180 mm/memcontrol.c:2430
 tracehook_notify_resume include/linux/tracehook.h:197 [inline]
 exit_to_usermode_loop+0x20c/0x2c0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath+0x20f/0x220 arch/x86/entry/common.c:274
 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:344

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9632 Comm: syz-executor.5 Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/05 13:14 https://github.com/google/ktsan.git kcsan 94c006602e13 0f3ec414 .config console log report ci2-upstream-kcsan-gce
2019/10/29 09:34 https://github.com/google/ktsan.git kcsan 05f2236801fe 5ea87a66 .config console log report ci2-upstream-kcsan-gce
2019/10/26 14:56 https://github.com/google/ktsan.git kcsan 05f2236801fe 25bb509e .config console log report ci2-upstream-kcsan-gce
2019/10/26 07:52 https://github.com/google/ktsan.git kcsan 05f2236801fe 413926c5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.