------------[ cut here ]------------ kernel BUG at include/linux/scatterlist.h:171! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5107 Comm: syz.0.0 Not tainted 6.11.0-syzkaller-08068-g1ec6d097897a #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:sg_page include/linux/scatterlist.h:171 [inline] RIP: 0010:sg_phys include/linux/scatterlist.h:389 [inline] RIP: 0010:perf_trace_dma_unmap_sg+0x784/0x790 include/trace/events/dma.h:224 Code: 00 48 8b 54 24 08 e9 6b fe ff ff e8 06 7d 17 00 48 c7 c7 60 79 94 8e 4c 89 f6 e8 27 33 74 03 e9 5b fa ff ff e8 ed 7c 17 00 90 <0f> 0b e8 f5 ea 43 0a 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc90000007aa0 EFLAGS: 00010006 RAX: ffffffff817d37f3 RBX: ffff888035761788 RCX: ffff88801aaac880 RDX: 0000000000010000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000007bd0 R08: ffffffff817d34eb R09: 322e66313a30303a R10: dffffc0000000000 R11: fffff91ffff889e0 R12: 0000000000000008 R13: ffff88803d71f181 R14: ffff8880357617a8 R15: dffffc0000000000 FS: 00007f758198f6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7863e0b706 CR3: 000000003d38a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_dma_unmap_sg+0x1c2/0x230 include/trace/events/dma.h:224 dma_unmap_sg_attrs+0x49/0xe0 kernel/dma/mapping.c:308 ata_sg_clean drivers/ata/libata-core.c:4627 [inline] __ata_qc_complete+0x1ae/0x5b0 drivers/ata/libata-core.c:4720 ata_qc_complete_multiple+0x1a3/0x280 drivers/ata/libata-sata.c:789 ahci_qc_complete drivers/ata/libahci.c:1881 [inline] ahci_handle_port_interrupt+0x422/0x650 drivers/ata/libahci.c:1948 ahci_port_intr drivers/ata/libahci.c:1959 [inline] ahci_handle_port_intr+0x18e/0x2c0 drivers/ata/libahci.c:1990 ahci_single_level_irq_intr+0xa1/0xf0 drivers/ata/libahci.c:2024 __handle_irq_event_percpu+0x29a/0xa80 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x89/0x1f0 kernel/irq/handle.c:210 handle_edge_irq+0x25f/0xc20 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:247 [inline] call_irq_handler arch/x86/kernel/irq.c:259 [inline] __common_interrupt+0x136/0x230 arch/x86/kernel/irq.c:285 common_interrupt+0xb4/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202 Code: 90 f3 0f 1e fa 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 8a 5c a5 f5 48 89 df e8 02 a0 a6 f5 e8 9d 38 d1 f5 fb bf 01 00 00 00 32 22 98 f5 65 8b 05 c3 f6 38 74 85 c0 74 06 5b c3 cc cc cc cc RSP: 0000:ffffc9000179f3f0 EFLAGS: 00000286 RAX: 22aebfc86c397c00 RBX: ffff888031cd4d80 RCX: ffffffff81708a4a RDX: dffffc0000000000 RSI: ffffffff8c0aca40 RDI: 0000000000000001 RBP: ffffc9000179f590 R08: ffffffff942578bf R09: 1ffffffff284af17 R10: dffffc0000000000 R11: fffffbfff284af18 R12: 0000000000000000 R13: ffffc9000179f4e0 R14: 0000000000000000 R15: dffffc0000000000 spin_unlock_irq include/linux/spinlock.h:401 [inline] __filemap_add_folio+0xd31/0x1b90 mm/filemap.c:931 filemap_add_folio+0x157/0x650 mm/filemap.c:972 __filemap_get_folio+0x4df/0xbd0 mm/filemap.c:1960 grow_dev_folio fs/buffer.c:1043 [inline] grow_buffers fs/buffer.c:1109 [inline] __getblk_slow fs/buffer.c:1135 [inline] bdev_getblk+0x1d8/0x550 fs/buffer.c:1437 __bread_gfp+0x86/0x400 fs/buffer.c:1491 sb_bread include/linux/buffer_head.h:346 [inline] hfs_mdb_get+0x1036/0x21b0 fs/hfs/mdb.c:161 hfs_fill_super+0x107e/0x1790 fs/hfs/super.c:407 mount_bdev+0x20a/0x2d0 fs/super.c:1679 legacy_get_tree+0xee/0x190 fs/fs_context.c:662 vfs_get_tree+0x90/0x2b0 fs/super.c:1800 do_new_mount+0x2be/0xb40 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4055 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4032 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7580b7f69a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f758198ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f758198eef0 RCX: 00007f7580b7f69a RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007f758198eeb0 RBP: 0000000020000180 R08: 00007f758198eef0 R09: 0000000000208400 R10: 0000000000208400 R11: 0000000000000246 R12: 0000000020000040 R13: 00007f758198eeb0 R14: 00000000000002db R15: 0000000020000500 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:sg_page include/linux/scatterlist.h:171 [inline] RIP: 0010:sg_phys include/linux/scatterlist.h:389 [inline] RIP: 0010:perf_trace_dma_unmap_sg+0x784/0x790 include/trace/events/dma.h:224 Code: 00 48 8b 54 24 08 e9 6b fe ff ff e8 06 7d 17 00 48 c7 c7 60 79 94 8e 4c 89 f6 e8 27 33 74 03 e9 5b fa ff ff e8 ed 7c 17 00 90 <0f> 0b e8 f5 ea 43 0a 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc90000007aa0 EFLAGS: 00010006 RAX: ffffffff817d37f3 RBX: ffff888035761788 RCX: ffff88801aaac880 RDX: 0000000000010000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000007bd0 R08: ffffffff817d34eb R09: 322e66313a30303a R10: dffffc0000000000 R11: fffff91ffff889e0 R12: 0000000000000008 R13: ffff88803d71f181 R14: ffff8880357617a8 R15: dffffc0000000000 FS: 00007f758198f6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7863e0b706 CR3: 000000003d38a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 90 nop 1: f3 0f 1e fa endbr64 5: 53 push %rbx 6: 48 89 fb mov %rdi,%rbx 9: 48 83 c7 18 add $0x18,%rdi d: 48 8b 74 24 08 mov 0x8(%rsp),%rsi 12: e8 8a 5c a5 f5 call 0xf5a55ca1 17: 48 89 df mov %rbx,%rdi 1a: e8 02 a0 a6 f5 call 0xf5a6a021 1f: e8 9d 38 d1 f5 call 0xf5d138c1 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 32 22 98 f5 call 0xf5982261 <-- trapping instruction 2f: 65 8b 05 c3 f6 38 74 mov %gs:0x7438f6c3(%rip),%eax # 0x7438f6f9 36: 85 c0 test %eax,%eax 38: 74 06 je 0x40 3a: 5b pop %rbx 3b: c3 ret 3c: cc int3 3d: cc int3 3e: cc int3 3f: cc int3