[mm?] KCSAN: data-race in call_rcu / mas_state_walk

9 views
Skip to first unread message

syzbot

unread,
May 1, 2023, 12:43:03 PM5/1/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 89d77f71f493 Merge tag 'riscv-for-linus-6.4-mw1' of git://..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=17b4cda4280000
kernel config: https://syzkaller.appspot.com/x/.config?x=6399cfb3105afd3b
dashboard link: https://syzkaller.appspot.com/bug?extid=9a4e754d25bd0830943a
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
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/62ff361e16e9/disk-89d77f71.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/afed034e61eb/vmlinux-89d77f71.xz
kernel image: https://storage.googleapis.com/syzbot-assets/04a579ae00e9/bzImage-89d77f71.xz

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

==================================================================
BUG: KCSAN: data-race in call_rcu / mas_state_walk

write to 0xffff8881049cec10 of 8 bytes by task 3049 on cpu 1:
__call_rcu_common kernel/rcu/tree.c:2625 [inline]
call_rcu+0x3c/0x410 kernel/rcu/tree.c:2741
ma_free_rcu lib/maple_tree.c:189 [inline]
mas_free lib/maple_tree.c:1349 [inline]
mas_replace+0x6fb/0x890 lib/maple_tree.c:1788
mas_wr_node_store lib/maple_tree.c:4200 [inline]
mas_wr_modify+0x2548/0x39e0 lib/maple_tree.c:4394
mas_wr_store_entry+0x701/0x840 lib/maple_tree.c:4439
mas_store_prealloc+0xe9/0x250 lib/maple_tree.c:5764
vma_iter_store+0xcb/0xe0 mm/internal.h:1070
mmap_region+0xcd2/0x1490 mm/mmap.c:2717
do_mmap+0x67c/0xaa0 mm/mmap.c:1394
vm_mmap_pgoff+0x12f/0x240 mm/util.c:543
ksys_mmap_pgoff+0xc5/0x320 mm/mmap.c:1440
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881049cec10 of 8 bytes by task 3043 on cpu 0:
mtree_range_walk lib/maple_tree.c:2967 [inline]
mas_state_walk+0x2f3/0x5d0 lib/maple_tree.c:3881
mas_walk+0x1f/0xd0 lib/maple_tree.c:5109
lock_vma_under_rcu+0x89/0x2b0 mm/memory.c:5279
do_user_addr_fault arch/x86/mm/fault.c:1341 [inline]
handle_page_fault arch/x86/mm/fault.c:1534 [inline]
exc_page_fault+0x16e/0x790 arch/x86/mm/fault.c:1590
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0x000000000090bfff -> 0xffffffff84a7eeb0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3043 Comm: syz-fuzzer Not tainted 6.3.0-syzkaller-11025-g89d77f71f493 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/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 bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

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

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

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Feb 6, 2024, 9:05:21 AMFeb 6
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages