syzbot


KCSAN: data-race in __es_shrink / __es_shrink (2)

Status: auto-closed as invalid on 2020/06/09 01:45
Subsystems: ext4
[Documentation on labels]
First crash: 1837d, last: 1764d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __es_shrink / __es_shrink (3) ext4 1 1623d 1623d 0/28 auto-closed as invalid on 2020/09/24 09:46
upstream KCSAN: data-race in __es_shrink / __es_shrink (6) ext4 1 1137d 1137d 0/28 auto-closed as invalid on 2022/01/22 23:41
upstream KCSAN: data-race in __es_shrink / __es_shrink (7) ext4 1 601d 601d 0/28 auto-obsoleted due to no activity on 2023/07/12 12:07
upstream KCSAN: data-race in __es_shrink / __es_shrink (5) ext4 3 1389d 1408d 0/28 auto-closed as invalid on 2021/05/15 19:41
upstream KCSAN: data-race in __es_shrink / __es_shrink ext4 1 1917d 1917d 0/28 closed as invalid on 2019/11/19 13:24
upstream KCSAN: data-race in __es_shrink / __es_shrink (4) ext4 15 1453d 1513d 0/28 auto-closed as invalid on 2021/03/12 08:35

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

write to 0xffff88821800c478 of 8 bytes by task 8728 on cpu 0:
 __es_shrink+0x373/0x620 fs/ext4/extents_status.c:1517
 ext4_es_scan+0x1cc/0x2d0 fs/ext4/extents_status.c:1559
 do_shrink_slab+0x2a9/0x5b0 mm/vmscan.c:512
 shrink_slab mm/vmscan.c:673 [inline]
 shrink_slab+0x153/0x540 mm/vmscan.c:646
 shrink_node_memcgs mm/vmscan.c:2673 [inline]
 shrink_node+0x354/0x1000 mm/vmscan.c:2777
 shrink_zones mm/vmscan.c:2980 [inline]
 do_try_to_free_pages+0x230/0xb30 mm/vmscan.c:3033
 try_to_free_pages+0x1e6/0x470 mm/vmscan.c:3272
 __perform_reclaim mm/page_alloc.c:4113 [inline]
 __alloc_pages_direct_reclaim mm/page_alloc.c:4134 [inline]
 __alloc_pages_slowpath+0x3cc/0xda0 mm/page_alloc.c:4537
 __alloc_pages_nodemask+0x2c5/0x310 mm/page_alloc.c:4751
 alloc_pages_vma+0xc0/0x390 mm/mempolicy.c:2174
 alloc_zeroed_user_highpage_movable include/linux/highmem.h:208 [inline]
 do_anonymous_page mm/memory.c:3186 [inline]
 handle_pte_fault mm/memory.c:4031 [inline]
 __handle_mm_fault+0x18bb/0x2cf0 mm/memory.c:4163
 handle_mm_fault+0x21c/0x540 mm/memory.c:4200
 do_user_addr_fault arch/x86/mm/fault.c:1442 [inline]
 do_page_fault+0x4a4/0xa52 arch/x86/mm/fault.c:1517
 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203

read to 0xffff88821800c478 of 8 bytes by task 8758 on cpu 1:
 __es_shrink+0x33b/0x620 fs/ext4/extents_status.c:1515
 ext4_es_scan+0x1cc/0x2d0 fs/ext4/extents_status.c:1559
 do_shrink_slab+0x2a9/0x5b0 mm/vmscan.c:512
 shrink_slab mm/vmscan.c:673 [inline]
 shrink_slab+0x153/0x540 mm/vmscan.c:646
 shrink_node_memcgs mm/vmscan.c:2673 [inline]
 shrink_node+0x354/0x1000 mm/vmscan.c:2777
 shrink_zones mm/vmscan.c:2980 [inline]
 do_try_to_free_pages+0x230/0xb30 mm/vmscan.c:3033
 try_to_free_pages+0x1e6/0x470 mm/vmscan.c:3272
 __perform_reclaim mm/page_alloc.c:4113 [inline]
 __alloc_pages_direct_reclaim mm/page_alloc.c:4134 [inline]
 __alloc_pages_slowpath+0x3cc/0xda0 mm/page_alloc.c:4537
 __alloc_pages_nodemask+0x2c5/0x310 mm/page_alloc.c:4751
 alloc_pages_vma+0xc0/0x390 mm/mempolicy.c:2174
 alloc_zeroed_user_highpage_movable include/linux/highmem.h:208 [inline]
 do_anonymous_page mm/memory.c:3186 [inline]
 handle_pte_fault mm/memory.c:4031 [inline]
 __handle_mm_fault+0x18bb/0x2cf0 mm/memory.c:4163
 handle_mm_fault+0x21c/0x540 mm/memory.c:4200
 do_user_addr_fault arch/x86/mm/fault.c:1442 [inline]
 do_page_fault+0x4a4/0xa52 arch/x86/mm/fault.c:1517
 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8758 Comm: blkid Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/31 01:41 https://github.com/google/ktsan.git kcsan 40959e34d670 c8d1cc20 .config console log report ci2-upstream-kcsan-gce
2020/02/05 01:34 https://github.com/google/ktsan.git kcsan 245a43005292 93e5e335 .config console log report ci2-upstream-kcsan-gce
2020/01/18 04:12 https://github.com/google/ktsan.git kcsan 245a43005292 3de7aabb .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.