From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F729369D67 for ; Mon, 27 Jul 2026 14:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785162483; cv=none; b=lF2AYOKabH+ITtlzwGyknN7BxoyIivZBOGbmymJvhvdO03U1pKt02tKCKEbVsJxXnFUilGhjaIYnPc8lqoOIZZ9sJmHsgiuADpQyIIpjcYhG5EoqYkmFeBmhJos8tgeNKqeNtG4phF2apGne2s3xMNz8RYbMgl9VbQ3jBE5Y14k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785162483; c=relaxed/simple; bh=NncLBHrzmE4L4yXnzA8kD7Oc3aQPvZozSU9BzyPpLVM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=rmWqD7FElHWNKETDSt1N4F+JUlztdkpwcRzKghKr6+rWb8Z0/EJxXazRReFiYfcyrzS+Gtw70/dyg8oj+scFwEQl6Lva0DDXvJw3UHMO1upcA4WkPIiD9XXTtHJg1QVHkF3hjDOwHtLDAvOyPeRt480aiQe2WQqD5GNQt5gC/X0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lNydqpzy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lNydqpzy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDBB01F000E9; Mon, 27 Jul 2026 14:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785162482; bh=hlcswisJJDUElFL9uXtYgMlsIUzKH7Z7Ae5dn4mnxvw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=lNydqpzyMYxCowFkt4jygVz+9mqQn7460W2B2n9jrBwQJ2IP3Y9UnlC6Tdtmebjyf nvbMdOaQyOM2/m18DHdp1WI4vxb5U27H9Qiy3DTWliIZi1nTqLZ0PEtc5DH7GIDpaU GT9MB/ot0Z2PWDKs5TrRS8DumISFA/T3d38XnCRVxravehNzd/9du99ln2C78TMnxz 1Y2yhJl9d75Wd0agLOUTKMjGm4BWYffl+1RfrcKYbr0BuEvTA2Zgt1p9cEyJUSZpFm eis/5wSBMtpksGtE3cYR7Ni30jt53wGOpnPDwc2s6GQRxA9SrM8fAgnephT7k+6533 ID/KVnYJHfXoQ== From: Thomas Gleixner To: syzbot , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Cc: Liam R. Howlett , Alice Ryhl , Andrew Ballance , maple-tree@lists.infradead.org Subject: Re: [syzbot] [kernel?] KCSAN: data-race in mas_wr_store_entry / mtree_load In-Reply-To: <6a65ac92.70955b6c.323240.002e.GAE@google.com> References: <6a65ac92.70955b6c.323240.002e.GAE@google.com> Date: Mon, 27 Jul 2026 16:27:59 +0200 Message-ID: <87fr14ik28.ffs@fw13> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain CC+ maple_tree wizards and leaving the quote intact for them On Sat, Jul 25 2026 at 23:43, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 0ce37745d4bf Merge tag 'block-7.2-20260724' of git://git.k.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13c6909e580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=84b3039e8461eef5 > dashboard link: https://syzkaller.appspot.com/bug?extid=caa2ebc5f1f594970675 > compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8 > > Unfortunately, I don't have any reproducer for this issue yet. > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/82454ebb316b/disk-0ce37745.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/728ae5f54b86/vmlinux-0ce37745.xz > kernel image: https://storage.googleapis.com/syzbot-assets/4ce26f3067dd/bzImage-0ce37745.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+caa2ebc5f1f594970675@syzkaller.appspotmail.com > > virtio_scsi virtio0: 1/0/0 default/read/poll queues > ================================================================== > BUG: KCSAN: data-race in mas_wr_store_entry / mtree_load > > write to 0xffff88810cd6dc00 of 8 bytes by task 3544 on cpu 1: > mte_set_node_dead lib/maple_tree.c:299 [inline] > mas_put_in_tree lib/maple_tree.c:1579 [inline] > mas_replace_node lib/maple_tree.c:1594 [inline] > mas_wr_node_store lib/maple_tree.c:3201 [inline] > mas_wr_store_entry+0x3b95/0x5a90 lib/maple_tree.c:3531 > mas_store_gfp+0x5cd/0x6c0 lib/maple_tree.c:4905 > irq_insert_desc kernel/irq/irqdesc.c:195 [inline] > alloc_descs kernel/irq/irqdesc.c:531 [inline] > __irq_alloc_descs+0x361/0x4d0 kernel/irq/irqdesc.c:922 > irq_domain_alloc_descs kernel/irq/irqdomain.c:-1 [inline] > irq_domain_alloc_irqs_locked+0x89/0x6d0 kernel/irq/irqdomain.c:1639 > __irq_domain_alloc_irqs+0x80/0xd0 kernel/irq/irqdomain.c:1711 > __msi_domain_alloc_irqs+0x435/0xa00 kernel/irq/msi.c:1336 > __msi_domain_alloc_locked kernel/irq/msi.c:1393 [inline] > msi_domain_alloc_locked+0x357/0x3e0 kernel/irq/msi.c:1398 > msi_domain_alloc_irqs_all_locked+0xd2/0x110 kernel/irq/msi.c:1474 > pci_msi_setup_msi_irqs+0x7a/0x90 drivers/pci/msi/irqdomain.c:17 > __msix_setup_interrupts drivers/pci/msi/msi.c:687 [inline] > msix_setup_interrupts drivers/pci/msi/msi.c:708 [inline] > msix_capability_init+0x566/0x960 drivers/pci/msi/msi.c:748 > __pci_enable_msix_range+0x41d/0x4b0 drivers/pci/msi/msi.c:856 > pci_alloc_irq_vectors_affinity+0xac/0x1e0 drivers/pci/msi/api.c:268 > vp_request_msix_vectors drivers/virtio/virtio_pci_common.c:157 [inline] > vp_find_vqs_msix+0x3f0/0x8b0 drivers/virtio/virtio_pci_common.c:414 > vp_find_vqs+0x4a/0x490 drivers/virtio/virtio_pci_common.c:524 > virtio_find_vqs include/linux/virtio_config.h:298 [inline] > virtio_find_single_vq include/linux/virtio_config.h:309 [inline] > probe_common+0x1e8/0x3c0 drivers/char/hw_random/virtio-rng.c:177 > virtrng_restore+0x1a/0xc0 drivers/char/hw_random/virtio-rng.c:243 > virtio_device_restore_priv+0x23c/0x410 drivers/virtio/virtio.c:633 > virtio_device_restore+0x1a/0x30 drivers/virtio/virtio.c:680 > virtio_pci_restore drivers/virtio/virtio_pci_common.c:621 [inline] > virtio_pci_resume+0xfa/0x140 drivers/virtio/virtio_pci_common.c:648 > pci_pm_resume+0x160/0x340 drivers/pci/pci-driver.c:1042 > dpm_run_callback+0x53/0x2f0 drivers/base/power/main.c:510 > device_resume+0x76f/0x7a0 drivers/base/power/main.c:1178 > async_resume+0x2c/0x40 drivers/base/power/main.c:1201 > async_run_entry_fn+0x52/0x180 kernel/async.c:129 > process_one_work kernel/workqueue.c:3322 [inline] > process_scheduled_works+0x4d4/0x9a0 kernel/workqueue.c:3405 > worker_thread+0x569/0x750 kernel/workqueue.c:3486 > kthread+0x221/0x270 kernel/kthread.c:436 > ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158 > ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 > > read to 0xffff88810cd6dc00 of 8 bytes by task 5229 on cpu 0: > ma_dead_node lib/maple_tree.c:544 [inline] > mtree_lookup_walk lib/maple_tree.c:2988 [inline] > mtree_load+0x3fd/0x600 lib/maple_tree.c:5668 > irq_to_desc+0x1a/0x30 kernel/irq/irqdesc.c:414 > irq_get_irq_data+0x13/0x30 kernel/irq/chip.c:140 > irq_domain_get_irq_data+0x18/0x70 kernel/irq/irqdomain.c:1506 > msi_init_virq kernel/irq/msi.c:1237 [inline] > __msi_domain_alloc_irqs+0x492/0xa00 kernel/irq/msi.c:1345 > __msi_domain_alloc_locked kernel/irq/msi.c:1393 [inline] > msi_domain_alloc_locked+0x357/0x3e0 kernel/irq/msi.c:1398 > msi_domain_alloc_irqs_all_locked+0xd2/0x110 kernel/irq/msi.c:1474 > pci_msi_setup_msi_irqs+0x7a/0x90 drivers/pci/msi/irqdomain.c:17 > __msix_setup_interrupts drivers/pci/msi/msi.c:687 [inline] > msix_setup_interrupts drivers/pci/msi/msi.c:708 [inline] > msix_capability_init+0x566/0x960 drivers/pci/msi/msi.c:748 > __pci_enable_msix_range+0x41d/0x4b0 drivers/pci/msi/msi.c:856 > pci_alloc_irq_vectors_affinity+0xac/0x1e0 drivers/pci/msi/api.c:268 > vp_request_msix_vectors drivers/virtio/virtio_pci_common.c:157 [inline] > vp_find_vqs_msix+0x3f0/0x8b0 drivers/virtio/virtio_pci_common.c:414 > vp_find_vqs+0x4a/0x490 drivers/virtio/virtio_pci_common.c:524 > virtio_find_vqs include/linux/virtio_config.h:298 [inline] > virtscsi_init+0x50b/0x8b0 drivers/scsi/virtio_scsi.c:886 > virtscsi_restore+0x3a/0xf0 drivers/scsi/virtio_scsi.c:1025 > virtio_device_restore_priv+0x23c/0x410 drivers/virtio/virtio.c:633 > virtio_device_restore+0x1a/0x30 drivers/virtio/virtio.c:680 > virtio_pci_restore drivers/virtio/virtio_pci_common.c:621 [inline] > virtio_pci_resume+0xfa/0x140 drivers/virtio/virtio_pci_common.c:648 > pci_pm_resume+0x160/0x340 drivers/pci/pci-driver.c:1042 > dpm_run_callback+0x53/0x2f0 drivers/base/power/main.c:510 > device_resume+0x76f/0x7a0 drivers/base/power/main.c:1178 > async_resume+0x2c/0x40 drivers/base/power/main.c:1201 > async_run_entry_fn+0x52/0x180 kernel/async.c:129 > process_one_work kernel/workqueue.c:3322 [inline] > process_scheduled_works+0x4d4/0x9a0 kernel/workqueue.c:3405 > worker_thread+0x569/0x750 kernel/workqueue.c:3486 > kthread+0x221/0x270 kernel/kthread.c:436 > ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158 > ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 > > value changed: 0xffff888104bd130e -> 0xffff88810cd6dc00 > > Reported by Kernel Concurrency Sanitizer on: > CPU: 0 UID: 0 PID: 5229 Comm: kworker/u8:174 Not tainted syzkaller #0 PREEMPT(lazy) > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 > Workqueue: async async_run_entry_fn > ================================================================== > usb usb1: PM: dpm_run_callback(): usb_dev_resume returns -107 > usb usb1: PM: failed to resume async: error -107 > > > --- > 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 syzkaller@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