syzbot


KCSAN: data-race in mas_wmb_replace / mtree_range_walk

Status: moderation: reported on 2024/01/10 06:04
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+ba5c9cf3a800755ee7cf@syzkaller.appspotmail.com
First crash: 94d, last: 41m

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

write to 0xffff888102efc900 of 8 bytes by task 1349 on cpu 0:
 mte_set_node_dead lib/maple_tree.c:323 [inline]
 mas_topiary_node lib/maple_tree.c:2522 [inline]
 mas_topiary_replace lib/maple_tree.c:2630 [inline]
 mas_wmb_replace+0xe61/0x14f0 lib/maple_tree.c:2646
 mas_split lib/maple_tree.c:3393 [inline]
 mas_commit_b_node lib/maple_tree.c:3446 [inline]
 mas_wr_bnode lib/maple_tree.c:4158 [inline]
 mas_wr_modify+0x183d/0x3c90 lib/maple_tree.c:4196
 mas_wr_store_entry+0x250/0x390 lib/maple_tree.c:4229
 mas_store_prealloc+0x151/0x2b0 lib/maple_tree.c:5485
 vma_iter_store mm/internal.h:1290 [inline]
 vma_complete+0x3a7/0x760 mm/mmap.c:535
 __split_vma+0x58d/0x610 mm/mmap.c:2385
 split_vma mm/mmap.c:2411 [inline]
 vma_modify+0x10e/0x200 mm/mmap.c:2445
 vma_modify_flags include/linux/mm.h:3303 [inline]
 mprotect_fixup+0x322/0x5c0 mm/mprotect.c:635
 do_mprotect_pkey+0x655/0x940 mm/mprotect.c:809
 __do_sys_mprotect mm/mprotect.c:830 [inline]
 __se_sys_mprotect mm/mprotect.c:827 [inline]
 __x64_sys_mprotect+0x48/0x60 mm/mprotect.c:827
 x64_sys_call+0x26bd/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:11
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888102efc900 of 8 bytes by task 1352 on cpu 1:
 ma_dead_node lib/maple_tree.c:560 [inline]
 mtree_range_walk+0x33d/0x460 lib/maple_tree.c:2793
 mas_state_walk lib/maple_tree.c:3678 [inline]
 mas_walk+0x16e/0x320 lib/maple_tree.c:4909
 lock_vma_under_rcu+0x84/0x2a0 mm/memory.c:5758
 do_user_addr_fault arch/x86/mm/fault.c:1354 [inline]
 handle_page_fault arch/x86/mm/fault.c:1505 [inline]
 exc_page_fault+0x161/0x6d0 arch/x86/mm/fault.c:1563
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623

value changed: 0xffff888103f49906 -> 0xffff888102efc900

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1352 Comm: syz-executor.1 Tainted: G        W          6.9.0-rc3-syzkaller-00355-g7efd0a74039f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (147):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/14 04:42 upstream 7efd0a74039f c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/12 22:49 upstream 5939d45155bb c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/12 05:44 upstream 586b5dfb51b9 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/12 00:54 upstream e8c39d0f57f3 95ed9ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/11 03:44 upstream 9875c0beb8ad 33b9e058 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/10 02:39 upstream 20cb38a7af88 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/09 03:33 upstream 20cb38a7af88 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/08 23:21 upstream fec50db7033e 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/07 18:37 upstream 9fe30842a90b ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/07 02:49 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/06 11:26 upstream 104db052b62d ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/05 17:00 upstream 8cb4a9a82b21 77230c29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/05 07:40 upstream c88b9b4cde17 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/04 16:46 upstream c85af715cac0 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/04 06:10 upstream c85af715cac0 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/03 09:01 upstream b1e6ec0a0fd0 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/02 00:41 upstream 026e680b0a08 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/04/01 07:29 upstream 18737353cca0 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/30 23:54 upstream 486291a0e624 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/30 12:26 upstream 4535e1a4174c 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/29 07:03 upstream 317c7bc0ef03 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/28 16:35 upstream 8d025e2092e2 e91187ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/27 21:34 upstream 498e47cd1d1f 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/25 11:01 upstream 4cece7649650 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/25 02:04 upstream 5e74df2f8f15 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/24 16:17 upstream 70293240c5ce 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/23 19:29 upstream 484193fecd2b 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/23 05:40 upstream bfa8f18691ed 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/22 20:55 upstream 8e938e398669 4b6cdce6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/22 05:28 upstream ebc9bee8814d 7a239ce7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/21 05:07 upstream dba89d1b81df 6753db5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/20 17:33 upstream a4145ce1e7bc 5b7d42ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/20 10:53 upstream a4145ce1e7bc a485f239 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/19 19:00 upstream d95fcdf4961d e104824c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/19 05:30 upstream b3603fcb79b1 baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/18 21:09 upstream f6cef5f8c37f baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/18 00:52 upstream 906a93befec8 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/17 15:22 upstream 741e9d668aa5 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/16 22:49 upstream 66a27abac311 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/16 04:12 upstream 82affc97affb d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/15 14:26 upstream e5eb28f6d1af d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/14 19:34 upstream 480e035fc4c7 8d8ee116 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/14 03:51 upstream 61387b8dcf1d f919f202 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/12 20:05 upstream 855684c7d938 c35c26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/12 01:17 upstream 045395d86acd 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/11 16:27 upstream e8f897f4afef 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/10 22:36 upstream fa4b851b4ad6 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/03/10 14:06 upstream 005f6f34bd47 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
2024/01/10 06:04 upstream 35f11a3710cd b438bd66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wmb_replace / mtree_range_walk
* Struck through repros no longer work on HEAD.