syzbot


KCSAN: data-race in compact_finished / compact_zone (2)

Status: auto-closed as invalid on 2022/07/29 03:22
Subsystems: mm
[Documentation on labels]
First crash: 687d, last: 687d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in compact_finished / compact_zone mm 1 1023d 1023d 0/26 auto-closed as invalid on 2021/08/26 08:54

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

write to 0xffff88823fffad90 of 8 bytes by task 17509 on cpu 1:
 reset_cached_positions mm/compaction.c:232 [inline]
 __compact_finished mm/compaction.c:2070 [inline]
 compact_finished+0x11b/0x540 mm/compaction.c:2162
 compact_zone+0x17c5/0x1d00 mm/compaction.c:2374
 compact_zone_order mm/compaction.c:2533 [inline]
 try_to_compact_pages+0x314/0x910 mm/compaction.c:2599
 __alloc_pages_direct_compact+0x76/0x360 mm/page_alloc.c:4406
 __alloc_pages_slowpath+0x22d/0x970 mm/page_alloc.c:4990
 __alloc_pages+0x264/0x340 mm/page_alloc.c:5439
 alloc_pages+0x34d/0x450
 __get_free_pages+0x8/0x30 mm/page_alloc.c:5475
 alloc_one_pg_vec_page net/packet/af_packet.c:4318 [inline]
 alloc_pg_vec net/packet/af_packet.c:4348 [inline]
 packet_set_ring+0x46d/0x1300 net/packet/af_packet.c:4433
 packet_setsockopt+0xb25/0xe60 net/packet/af_packet.c:3809
 __sys_setsockopt+0x212/0x2b0 net/socket.c:2259
 __do_sys_setsockopt net/socket.c:2270 [inline]
 __se_sys_setsockopt net/socket.c:2267 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2267
 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+0x46/0xb0

read to 0xffff88823fffad90 of 8 bytes by task 17477 on cpu 0:
 compact_zone+0x4f5/0x1d00 mm/compaction.c:2367
 compact_zone_order mm/compaction.c:2533 [inline]
 try_to_compact_pages+0x314/0x910 mm/compaction.c:2599
 __alloc_pages_direct_compact+0x76/0x360 mm/page_alloc.c:4406
 __alloc_pages_slowpath+0x4f9/0x970 mm/page_alloc.c:5072
 __alloc_pages+0x264/0x340 mm/page_alloc.c:5439
 alloc_pages+0x34d/0x450
 __get_free_pages+0x8/0x30 mm/page_alloc.c:5475
 alloc_one_pg_vec_page net/packet/af_packet.c:4318 [inline]
 alloc_pg_vec net/packet/af_packet.c:4348 [inline]
 packet_set_ring+0x46d/0x1300 net/packet/af_packet.c:4433
 packet_setsockopt+0xb25/0xe60 net/packet/af_packet.c:3809
 __sys_setsockopt+0x212/0x2b0 net/socket.c:2259
 __do_sys_setsockopt net/socket.c:2270 [inline]
 __se_sys_setsockopt net/socket.c:2267 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2267
 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+0x46/0xb0

value changed: 0x000000000010a400 -> 0x0000000000100000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 17477 Comm: syz-executor.2 Not tainted 5.19.0-rc3-syzkaller-00146-g92f20ff72066-dirty #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/06/24 03:16 upstream 92f20ff72066 912f5df7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in compact_finished / compact_zone
* Struck through repros no longer work on HEAD.