syzbot


WARNING in iommufd_hw_pagetable_detach

Status: auto-obsoleted due to no activity on 2023/07/04 21:33
Subsystems: iommu
[Documentation on labels]
Reported-by: syzbot+3b81771e32dd5b2f9931@syzkaller.appspotmail.com
First crash: 392d, last: 366d
Cause bisection: introduced by (bisect log) :
commit 9d05029acd4e4c0a85e412bf955dfc5526b9a6c1
Author: Jason Gunthorpe <jgg@nvidia.com>
Date: Mon Mar 27 18:37:57 2023 +0000

  iommufd: Replace the hwpt->devices list with iommufd_group

Crash: WARNING in iommufd_hw_pagetable_detach (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly iommu report (May 2023) 1 (2) 2023/05/15 12:55
[syzbot] [iommu?] WARNING in iommufd_hw_pagetable_detach 0 (1) 2023/04/01 03:36
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/07/04 21:09 22m retest repro linux-next OK log
2023/04/01 06:49 19m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 4b0f4525dc4f OK log

Sample crash report:
iommufd_mock iommufd_mock0: Adding to iommu group 0
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5081 at drivers/iommu/iommufd/device.c:344 iommufd_hw_pagetable_detach+0x2cb/0x480 drivers/iommu/iommufd/device.c:344
Modules linked in:
CPU: 0 PID: 5081 Comm: syz-executor226 Not tainted 6.3.0-rc4-next-20230331-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:iommufd_hw_pagetable_detach+0x2cb/0x480 drivers/iommu/iommufd/device.c:344
Code: f2 fc 49 8d 7d 70 be ff ff ff ff e8 cf 2f 76 05 31 ff 41 89 c5 89 c6 e8 63 6d f2 fc 45 85 ed 0f 85 ee fd ff ff e8 35 71 f2 fc <0f> 0b e9 e2 fd ff ff e8 29 71 f2 fc 49 8d bd a0 00 00 00 48 b8 00
RSP: 0018:ffffc90003b0fb30 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88801676da00 RCX: 0000000000000000
RDX: ffff8880279c8000 RSI: ffffffff8490a01b RDI: 0000000000000005
RBP: ffff88801676dab0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88801676dc00
R13: 0000000000000000 R14: 0000000000000001 R15: ffff88801676dcc0
FS:  0000555555fa9300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000188 CR3: 000000002ba93000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 iommufd_hw_pagetable_alloc+0x646/0x800 drivers/iommu/iommufd/hw_pagetable.c:114
 iommufd_device_auto_get_domain drivers/iommu/iommufd/device.c:500 [inline]
 iommufd_device_change_pt+0x570/0xb30 drivers/iommu/iommufd/device.c:553
 iommufd_device_attach+0x27/0xd0 drivers/iommu/iommufd/device.c:591
 iommufd_test_mock_domain drivers/iommu/iommufd/selftest.c:439 [inline]
 iommufd_test+0x81c/0x2ef0 drivers/iommu/iommufd/selftest.c:987
 iommufd_fops_ioctl+0x317/0x4b0 drivers/iommu/iommufd/main.c:351
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6a1d59bc89
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe55301508 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6a1d59bc89
RDX: 00000000200000c0 RSI: 0000000000003ba0 RDI: 0000000000000003
RBP: 00007f6a1d55fe30 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6a1d55fec0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (67):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/31 15:26 linux-next 4b0f4525dc4f f325deb0 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/25 20:46 linux-next f600e0bbde85 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/23 08:35 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/23 03:51 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/22 15:32 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/22 08:34 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/20 03:37 linux-next 3cdbc01c40e3 a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/16 20:10 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/16 05:42 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/16 02:53 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/15 21:42 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/15 15:28 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/15 02:55 linux-next d3f2cd248191 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/14 20:15 linux-next d3f2cd248191 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/14 16:55 linux-next e3342532ecd3 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/14 10:25 linux-next e3342532ecd3 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/14 03:05 linux-next e3342532ecd3 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/13 04:52 linux-next 7d8214bba44c 82d5e53e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/09 11:10 linux-next e134c93f788f 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/09 01:59 linux-next e134c93f788f 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/08 13:10 linux-next e134c93f788f 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/07 07:40 linux-next e134c93f788f 00ce4c67 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/07 02:46 linux-next e134c93f788f 00ce4c67 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/06 15:10 linux-next e134c93f788f 08707520 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/05 12:13 linux-next 8417c8f5007b 831373d3 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/04 16:13 linux-next 6a53bda3aaf3 928dd177 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/04 02:29 linux-next 31bd35b66249 7db618d0 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/04 00:40 linux-next 31bd35b66249 7db618d0 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/03 23:07 linux-next 31bd35b66249 7db618d0 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/03 21:13 linux-next 31bd35b66249 7db618d0 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/03 17:05 linux-next 31bd35b66249 41147e3e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/03 16:47 linux-next 31bd35b66249 41147e3e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/03 07:53 linux-next 4b0f4525dc4f 41147e3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/03 00:54 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/02 23:28 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/02 15:01 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/02 13:33 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/02 11:25 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/02 09:21 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/02 03:24 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/01 18:38 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/01 16:54 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/01 10:46 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/01 10:46 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/04/01 06:47 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 23:17 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 19:56 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 19:55 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 19:55 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 19:55 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 19:39 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 19:27 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 18:58 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 17:11 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 15:45 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 15:37 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 13:53 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 12:48 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 12:40 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 11:23 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 11:17 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 10:51 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 10:24 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 09:21 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
2023/03/31 05:51 linux-next 4b0f4525dc4f f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in iommufd_hw_pagetable_detach
* Struck through repros no longer work on HEAD.