syzbot


KCSAN: data-race in mas_wr_modify / mtree_range_walk

Status: moderation: reported on 2024/01/10 05:53
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+a68e0c19a271c2a0b063@syzkaller.appspotmail.com
First crash: 196d, last: 4h22m

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

write to 0xffff88816def2810 of 8 bytes by task 5747 on cpu 1:
 mas_wr_slot_store lib/maple_tree.c:3990 [inline]
 mas_wr_modify+0x155c/0x3c90 lib/maple_tree.c:4186
 mas_wr_store_entry+0x250/0x390 lib/maple_tree.c:4227
 mas_store_prealloc+0x151/0x2b0 lib/maple_tree.c:5482
 vma_iter_store mm/internal.h:1452 [inline]
 vma_expand+0x57f/0x660 mm/mmap.c:708
 mmap_region+0x80c/0x1620 mm/mmap.c:2900
 do_mmap+0x6f9/0xb10 mm/mmap.c:1438
 vm_mmap_pgoff+0x133/0x290 mm/util.c:588
 ksys_mmap_pgoff+0xd0/0x340 mm/mmap.c:1484
 x64_sys_call+0x1940/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:10
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88816def2810 of 8 bytes by task 5765 on cpu 0:
 mtree_range_walk+0x1b4/0x460 lib/maple_tree.c:2782
 mas_state_walk lib/maple_tree.c:3678 [inline]
 mas_walk+0x16e/0x320 lib/maple_tree.c:4906
 lock_vma_under_rcu+0x84/0x260 mm/memory.c:5982
 do_user_addr_fault arch/x86/mm/fault.c:1329 [inline]
 handle_page_fault arch/x86/mm/fault.c:1481 [inline]
 exc_page_fault+0x150/0x650 arch/x86/mm/fault.c:1539
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623

value changed: 0x00007f62fc351fff -> 0x00007f62fc330fff

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 5765 Comm: syz.0.380 Not tainted 6.10.0-syzkaller-12246-g786c8248dbd3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================

Crashes (255):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/24 11:41 upstream 786c8248dbd3 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/24 03:05 upstream 28bbe4ea686a e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/23 06:29 upstream 66ebbdfdeb09 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/22 14:35 upstream 933069701c1b df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/22 01:45 upstream 7846b618e0a4 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/20 10:20 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/19 20:46 upstream 4305ca0087dd 890ce4f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/19 14:05 upstream 720261cfc732 ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/18 15:59 upstream b1bc554e009e 71884c12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/18 11:11 upstream b1bc554e009e 0f902625 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/18 00:36 upstream 51835949dda3 0f902625 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/17 12:40 upstream 0434dbe32053 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/16 20:54 upstream d67978318827 b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/15 21:45 upstream 5e0497553643 e8709b21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/14 15:28 upstream 4d145e3f830b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/14 01:08 upstream d0d0cd380055 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/13 05:25 upstream 528dd46d0fc3 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/12 15:20 upstream 43db1e03c086 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/12 03:15 upstream 8a18fda0febb eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/11 11:51 upstream 9d9a2f29aefd c699c2eb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/10 18:38 upstream 34afb82a3c67 6f7fa383 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/10 07:46 upstream 34afb82a3c67 bc144f9a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/09 21:36 upstream 34afb82a3c67 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/09 14:59 upstream 4376e966ecb7 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/09 04:40 upstream 4376e966ecb7 bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/08 20:50 upstream 256abd8e550c cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/08 08:25 upstream 256abd8e550c 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/07 15:26 upstream c6653f49e4fd 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/07 02:34 upstream 22f902dfc51e 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/06 16:27 upstream 1dd28064d416 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/06 01:51 upstream d270dd21bee0 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/05 00:56 upstream 661e504db04c 3f2748a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/04 15:17 upstream 795c58e4c7fc 3f2748a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/03 20:57 upstream 8a9c6c40432e f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/03 07:23 upstream e9d22f7a6655 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/03 02:32 upstream e9d22f7a6655 07f0a0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/02 11:25 upstream 1dfe225e9af5 07f0a0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/02 09:08 upstream 1dfe225e9af5 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/02 00:30 upstream 9903efbddba0 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/01 14:34 upstream 22a40d14b572 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/07/01 04:38 upstream 22a40d14b572 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/06/30 11:39 upstream 8282d5af7be8 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/06/29 23:24 upstream 27b31deb900d 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/06/29 16:15 upstream de0a9f448633 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/06/28 22:17 upstream 6c0483dbfe72 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/06/28 04:19 upstream 66e55ff12e73 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
2024/01/10 05:52 upstream 35f11a3710cd b438bd66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mas_wr_modify / mtree_range_walk
* Struck through repros no longer work on HEAD.