syzbot


KCSAN: data-race in vm_area_dup / vma_interval_tree_insert

Status: closed as invalid on 2019/10/18 14:11
Subsystems: mm
[Documentation on labels]
First crash: 2141d, last: 2133d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in vm_area_dup / vma_interval_tree_insert (2) mm 6 87 1888d 2014d 0/29 auto-closed as invalid on 2020/07/22 12:28

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

read to 0xffff8881257ae640 of 200 bytes by task 7580 on cpu 0:
 vm_area_dup+0x70/0xf0 kernel/fork.c:359
 __split_vma+0x88/0x350 mm/mmap.c:2678
 split_vma+0x73/0xa0 mm/mmap.c:2736
 mprotect_fixup+0x43f/0x510 mm/mprotect.c:413
 do_mprotect_pkey+0x3eb/0x660 mm/mprotect.c:553
 __do_sys_mprotect mm/mprotect.c:578 [inline]
 __se_sys_mprotect mm/mprotect.c:575 [inline]
 __x64_sys_mprotect+0x51/0x70 mm/mprotect.c:575
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8881257ae6a0 of 8 bytes by task 7576 on cpu 1:
 rb_link_node include/linux/rbtree.h:75 [inline]
 vma_interval_tree_insert+0x164/0x230 mm/interval_tree.c:23
 __vma_link_file+0xd9/0x110 mm/mmap.c:634
 __vma_adjust+0x1ac/0x12a0 mm/mmap.c:842
 vma_adjust include/linux/mm.h:2276 [inline]
 __split_vma+0x208/0x350 mm/mmap.c:2707
 split_vma+0x73/0xa0 mm/mmap.c:2736
 mprotect_fixup+0x43f/0x510 mm/mprotect.c:413
 do_mprotect_pkey+0x3eb/0x660 mm/mprotect.c:553
 __do_sys_mprotect mm/mprotect.c:578 [inline]
 __se_sys_mprotect mm/mprotect.c:575 [inline]
 __x64_sys_mprotect+0x51/0x70 mm/mprotect.c:575
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7576 Comm: blkid Not tainted 5.4.0-rc3+ #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
2019/10/16 16:55 https://github.com/google/ktsan.git kcsan a6311db074d9 8c88c9c1 .config console log report ci2-upstream-kcsan-gce
2019/10/10 08:50 https://github.com/google/ktsan.git kcsan d724f94f63de d52eff28 .config console log report ci2-upstream-kcsan-gce
2019/10/08 17:58 https://github.com/google/ktsan.git kcsan d724f94f63de b1ebbfef .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.