[moderation] [mm?] KCSAN: data-race in mas_walk / mas_wmb_replace

2 views
Skip to first unread message

syzbot

unread,
Jan 12, 2024, 7:08:20 AMJan 12
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 70d201a40823 Merge tag 'f2fs-for-6.8-rc1' of git://git.ker..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=174910ede80000
kernel config: https://syzkaller.appspot.com/x/.config?x=31b069fcee8f481d
dashboard link: https://syzkaller.appspot.com/bug?extid=6659e22700b68d21381e
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [ak...@linux-foundation.org linux-...@vger.kernel.org linu...@kvack.org]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4446464b507c/disk-70d201a4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/578f39e16cac/vmlinux-70d201a4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5fffd404e095/bzImage-70d201a4.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6659e2...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in mas_walk / mas_wmb_replace

write to 0xffff8881041ed800 of 8 bytes by task 23223 on cpu 0:
mte_set_node_dead lib/maple_tree.c:323 [inline]
mas_put_in_tree lib/maple_tree.c:1726 [inline]
mas_topiary_replace lib/maple_tree.c:2557 [inline]
mas_wmb_replace+0x20f/0x14e0 lib/maple_tree.c:2648
mas_split lib/maple_tree.c:3395 [inline]
mas_commit_b_node lib/maple_tree.c:3448 [inline]
mas_wr_bnode lib/maple_tree.c:4160 [inline]
mas_wr_modify+0x1839/0x3c80 lib/maple_tree.c:4198
mas_wr_store_entry+0x250/0x390 lib/maple_tree.c:4231
mas_store_prealloc+0x151/0x2a0 lib/maple_tree.c:5437
vma_iter_store mm/internal.h:1185 [inline]
vma_complete+0x3a5/0x760 mm/mmap.c:532
__split_vma+0x57e/0x600 mm/mmap.c:2379
do_vmi_align_munmap+0x1aa/0x9c0 mm/mmap.c:2534
do_vmi_munmap+0x1ea/0x230 mm/mmap.c:2693
mmap_region+0x52c/0x1650 mm/mmap.c:2744
do_mmap+0x67e/0xa90 mm/mmap.c:1379
vm_mmap_pgoff+0x12e/0x240 mm/util.c:556
ksys_mmap_pgoff+0x2b8/0x330 mm/mmap.c:1425
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881041ed800 of 8 bytes by task 23216 on cpu 1:
mte_parent lib/maple_tree.c:545 [inline]
mte_dead_node lib/maple_tree.c:577 [inline]
mas_start lib/maple_tree.c:1369 [inline]
mas_state_walk lib/maple_tree.c:3673 [inline]
mas_walk+0x123/0x320 lib/maple_tree.c:4861
lock_vma_under_rcu+0x84/0x290 mm/memory.c:5602
do_user_addr_fault arch/x86/mm/fault.c:1356 [inline]
handle_page_fault arch/x86/mm/fault.c:1507 [inline]
exc_page_fault+0x164/0x6d0 arch/x86/mm/fault.c:1563
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0xffff88814461d541 -> 0xffff8881041ed800

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23216 Comm: syz-executor.3 Not tainted 6.7.0-syzkaller-06264-g70d201a40823 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages