syzbot


KCSAN: data-race in filemap_map_pages / filemap_map_pages

Status: auto-closed as invalid on 2020/06/10 19:27
Subsystems: kasan
[Documentation on labels]
First crash: 1485d, last: 1485d

Sample crash report:
Out of memory: Killed process 10601 (syz-executor.1) total-vm:74836kB, anon-rss:2216kB, file-rss:34816kB, shmem-rss:0kB, UID:0 pgtables:132kB oom_score_adj:1000
==================================================================
BUG: KCSAN: data-race in filemap_map_pages / filemap_map_pages

write to 0xffff88812ac510ac of 4 bytes by task 32314 on cpu 1:
 filemap_map_pages+0x8e7/0x9e0 mm/filemap.c:2626
 do_fault_around mm/memory.c:3634 [inline]
 do_read_fault mm/memory.c:3668 [inline]
 do_fault mm/memory.c:3802 [inline]
 handle_pte_fault mm/memory.c:4033 [inline]
 __handle_mm_fault+0x2974/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 0xffff88812ac510ac of 4 bytes by task 32132 on cpu 0:
 filemap_map_pages+0x8be/0x9e0 mm/filemap.c:2625
 do_fault_around mm/memory.c:3634 [inline]
 do_read_fault mm/memory.c:3668 [inline]
 do_fault mm/memory.c:3802 [inline]
 handle_pte_fault mm/memory.c:4033 [inline]
 __handle_mm_fault+0x2974/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: 0 PID: 32132 Comm: udevd Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 32132 Comm: udevd Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x11d/0x187 lib/dump_stack.c:118
 panic+0x210/0x640 kernel/panic.c:221
 kcsan_report.cold+0xc/0xf kernel/kcsan/report.c:599
 kcsan_setup_watchpoint+0x3fb/0x440 kernel/kcsan/core.c:507
 filemap_map_pages+0x8be/0x9e0 mm/filemap.c:2625
 do_fault_around mm/memory.c:3634 [inline]
 do_read_fault mm/memory.c:3668 [inline]
 do_fault mm/memory.c:3802 [inline]
 handle_pte_fault mm/memory.c:4033 [inline]
 __handle_mm_fault+0x2974/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
RIP: 0033:0x7f67d570c317
Code: Bad RIP value.
RSP: 002b:00007ffc731fc940 EFLAGS: 00010206
RAX: 00007f67d52db290 RBX: 00007f67d591a050 RCX: 0000000000000009
RDX: 0000000000000005 RSI: 00007f67d59219b0 RDI: 0000000000401790
RBP: 0000000000000002 R08: 000000000025a8c5 R09: 000000000000002f
R10: 0000000000700250 R11: 00007ffc731fc990 R12: 0000000000000007
R13: 00000000096a316f R14: 0000000000000000 R15: 00007ffc731fcb18
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/01 19:17 https://github.com/google/ktsan.git kcsan 40959e34d670 a34e2c33 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.