------------[ cut here ]------------ !iommu_table->driver_ops || !iommu_table->driver_ops->change_top || !iommu_table->driver_ops->get_top_lock WARNING: drivers/iommu/generic_pt/fmt/../iommu_pt.h:1249 at pt_iommu_amdv1_init+0xa10/0xb20 drivers/iommu/generic_pt/iommu_pt.h:1249, CPU#2: syz.1.571/7608 Modules linked in: CPU: 2 UID: 0 PID: 7608 Comm: syz.1.571 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:pt_iommu_amdv1_init+0xa10/0xb20 drivers/iommu/generic_pt/iommu_pt.h:1249 Code: e8 f5 56 e7 fc e9 aa f6 ff ff e8 3b c9 7a fc 89 ab 94 00 00 00 e9 15 ff ff ff e8 2b c9 7a fc e9 e4 fd ff ff e8 21 c9 7a fc 90 <0f> 0b 90 e9 19 ff ff ff bd a1 ff ff ff e9 cc fd ff ff 4c 89 cf 4c RSP: 0018:ffffc9000363fa68 EFLAGS: 00010287 RAX: 0000000000000828 RBX: ffff88805cb44d00 RCX: ffffc90007651000 RDX: 0000000000080000 RSI: ffffffff858e33ff RDI: ffff888037090000 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000034 R11: 0000000000000000 R12: 0000000000000034 R13: 0000000000000040 R14: 0000000000000000 R15: 0000000000000034 FS: 00007fd886caf6c0(0000) GS:ffff8880d653c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8c349da414 CR3: 00000000273a6000 CR4: 0000000000352ef0 Call Trace: mock_domain_alloc_pgtable drivers/iommu/iommufd/selftest.c:491 [inline] mock_domain_alloc_paging_flags+0x29b/0x680 drivers/iommu/iommufd/selftest.c:548 iommufd_hwpt_paging_alloc+0x393/0xb20 drivers/iommu/iommufd/hw_pagetable.c:149 iommufd_hwpt_alloc+0xb46/0x1af0 drivers/iommu/iommufd/hw_pagetable.c:369 iommufd_fops_ioctl+0x358/0x520 drivers/iommu/iommufd/main.c:533 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd885d9c819 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd886caf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd886016090 RCX: 00007fd885d9c819 RDX: 0000200000000200 RSI: 0000000000003b89 RDI: 0000000000000004 RBP: 00007fd885e32c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd886016128 R14: 00007fd886016090 R15: 00007ffdb9050f98