FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5341 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x414/0x560 lib/fault-inject.c:174 prepare_alloc_pages+0x22b/0x650 mm/page_alloc.c:4985 __alloc_frozen_pages_noprof+0x123/0x370 mm/page_alloc.c:5199 __alloc_pages_noprof mm/page_alloc.c:5244 [inline] __folio_alloc_noprof+0x18/0x120 mm/page_alloc.c:5254 __folio_alloc_node_noprof include/linux/gfp.h:296 [inline] iommu_alloc_pages_node_sz+0x152/0x320 drivers/iommu/iommu-pages.c:66 _table_alloc drivers/iommu/generic_pt/iommu_pt.h:373 [inline] table_alloc drivers/iommu/generic_pt/iommu_pt.h:408 [inline] pt_iommu_new_table drivers/iommu/generic_pt/iommu_pt.h:424 [inline] __map_range+0x1f2/0xa80 drivers/iommu/generic_pt/iommu_pt.h:584 pt_descend drivers/iommu/generic_pt/pt_iter.h:391 [inline] __map_range+0x511/0xa80 drivers/iommu/generic_pt/iommu_pt.h:619 pt_descend drivers/iommu/generic_pt/pt_iter.h:391 [inline] __map_range+0x511/0xa80 drivers/iommu/generic_pt/iommu_pt.h:619 pt_iommu_vtdss_map_pages+0x6a3/0x960 drivers/iommu/generic_pt/iommu_pt.h:905 iommu_map_nosync+0x30a/0x840 drivers/iommu/iommu.c:2549 iommu_map_sg+0x579/0xae0 drivers/iommu/iommu.c:2721 iommu_dma_map_sg+0x908/0x1000 drivers/iommu/dma-iommu.c:1493 __dma_map_sg_attrs+0xd0/0x520 kernel/dma/mapping.c:245 dma_map_sgtable+0x67/0xf0 kernel/dma/mapping.c:323 drm_gem_map_dma_buf+0xfd/0x170 drivers/gpu/drm/drm_prime.c:683 dma_buf_map_attachment+0x1dc/0x480 drivers/dma-buf/dma-buf.c:1118 dma_buf_map_attachment_unlocked+0x97/0x110 drivers/dma-buf/dma-buf.c:1188 drm_gem_prime_import_dev+0x182/0x360 drivers/gpu/drm/drm_prime.c:996 virtgpu_gem_prime_import+0x1bb/0x740 drivers/gpu/drm/virtio/virtgpu_prime.c:316 drm_gem_prime_fd_to_handle+0x18d/0x490 drivers/gpu/drm/drm_prime.c:314 drm_ioctl_kernel+0x2cf/0x390 drivers/gpu/drm/drm_ioctl.c:804 drm_ioctl+0x67f/0xb10 drivers/gpu/drm/drm_ioctl.c:901 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f15f818f7c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f15f9056038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f15f83e5fa0 RCX: 00007f15f818f7c9 RDX: 0000200000000800 RSI: 00000000c00c642e RDI: 0000000000000003 RBP: 00007f15f9056090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f15f83e6038 R14: 00007f15f83e5fa0 R15: 00007fff8f1d2908 ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5341 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__phys_addr+0x16b/0x180 arch/x86/mm/physaddr.c:28 Code: 96 b3 00 e9 45 ff ff ff e8 d2 b0 4b 00 48 c7 c7 10 34 fb 8d 48 89 de 4c 89 f2 e8 50 a0 53 03 e9 4d ff ff ff e8 b6 b0 4b 00 90 <0f> 0b e8 ae b0 4b 00 90 0f 0b e8 a6 b0 4b 00 90 0f 0b 0f 1f 00 90 RSP: 0018:ffffc9000d57ef40 EFLAGS: 00010293 RAX: ffffffff8176113a RBX: 0000778000000000 RCX: ffff88801162c980 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000778000000000 RBP: ffffc9000d57f0f0 R08: ffffffff8e26c4f3 R09: 1ffffffff1c4d89e R10: dffffc0000000000 R11: fffffbfff1c4d89f R12: 0000000000000011 R13: dffffc0000000000 R14: 0000000080000000 R15: dffffc0000000000 FS: 00007f15f90566c0(0000) GS:ffff88808d22a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f960061168 CR3: 0000000035b07000 CR4: 0000000000352ef0 Call Trace: virt_to_folio include/linux/mm.h:1432 [inline] virt_to_ioptdesc drivers/iommu/iommu-pages.h:49 [inline] iommu_pages_start_incoherent+0x52/0x310 drivers/iommu/iommu-pages.c:148 _table_alloc drivers/iommu/generic_pt/iommu_pt.h:377 [inline] table_alloc drivers/iommu/generic_pt/iommu_pt.h:408 [inline] pt_iommu_new_table drivers/iommu/generic_pt/iommu_pt.h:424 [inline] __map_range+0x270/0xa80 drivers/iommu/generic_pt/iommu_pt.h:584 pt_descend drivers/iommu/generic_pt/pt_iter.h:391 [inline] __map_range+0x511/0xa80 drivers/iommu/generic_pt/iommu_pt.h:619 pt_descend drivers/iommu/generic_pt/pt_iter.h:391 [inline] __map_range+0x511/0xa80 drivers/iommu/generic_pt/iommu_pt.h:619 pt_iommu_vtdss_map_pages+0x6a3/0x960 drivers/iommu/generic_pt/iommu_pt.h:905 iommu_map_nosync+0x30a/0x840 drivers/iommu/iommu.c:2549 iommu_map_sg+0x579/0xae0 drivers/iommu/iommu.c:2721 iommu_dma_map_sg+0x908/0x1000 drivers/iommu/dma-iommu.c:1493 __dma_map_sg_attrs+0xd0/0x520 kernel/dma/mapping.c:245 dma_map_sgtable+0x67/0xf0 kernel/dma/mapping.c:323 drm_gem_map_dma_buf+0xfd/0x170 drivers/gpu/drm/drm_prime.c:683 dma_buf_map_attachment+0x1dc/0x480 drivers/dma-buf/dma-buf.c:1118 dma_buf_map_attachment_unlocked+0x97/0x110 drivers/dma-buf/dma-buf.c:1188 drm_gem_prime_import_dev+0x182/0x360 drivers/gpu/drm/drm_prime.c:996 virtgpu_gem_prime_import+0x1bb/0x740 drivers/gpu/drm/virtio/virtgpu_prime.c:316 drm_gem_prime_fd_to_handle+0x18d/0x490 drivers/gpu/drm/drm_prime.c:314 drm_ioctl_kernel+0x2cf/0x390 drivers/gpu/drm/drm_ioctl.c:804 drm_ioctl+0x67f/0xb10 drivers/gpu/drm/drm_ioctl.c:901 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f15f818f7c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f15f9056038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f15f83e5fa0 RCX: 00007f15f818f7c9 RDX: 0000200000000800 RSI: 00000000c00c642e RDI: 0000000000000003 RBP: 00007f15f9056090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f15f83e6038 R14: 00007f15f83e5fa0 R15: 00007fff8f1d2908 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__phys_addr+0x16b/0x180 arch/x86/mm/physaddr.c:28 Code: 96 b3 00 e9 45 ff ff ff e8 d2 b0 4b 00 48 c7 c7 10 34 fb 8d 48 89 de 4c 89 f2 e8 50 a0 53 03 e9 4d ff ff ff e8 b6 b0 4b 00 90 <0f> 0b e8 ae b0 4b 00 90 0f 0b e8 a6 b0 4b 00 90 0f 0b 0f 1f 00 90 RSP: 0018:ffffc9000d57ef40 EFLAGS: 00010293 RAX: ffffffff8176113a RBX: 0000778000000000 RCX: ffff88801162c980 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000778000000000 RBP: ffffc9000d57f0f0 R08: ffffffff8e26c4f3 R09: 1ffffffff1c4d89e R10: dffffc0000000000 R11: fffffbfff1c4d89f R12: 0000000000000011 R13: dffffc0000000000 R14: 0000000080000000 R15: dffffc0000000000 FS: 00007f15f90566c0(0000) GS:ffff88808d22a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f960061168 CR3: 0000000035b07000 CR4: 0000000000352ef0