WARNING: CPU: 1 PID: 17012 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0x181/0x1f0 kernel/dma/mapping.c:188 Modules linked in: CPU: 1 PID: 17012 Comm: syz-executor.1 Not tainted 5.18.0-rc1-syzkaller-00016-g3e732ebf7316 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__dma_map_sg_attrs+0x181/0x1f0 kernel/dma/mapping.c:188 Code: 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 71 4c 8b 3d 00 1c bb 0d e9 db fe ff ff e8 f6 3b 13 00 0f 0b e8 ef 3b 13 00 <0f> 0b 45 31 e4 e9 54 ff ff ff e8 e0 3b 13 00 49 8d 7f 50 48 b8 00 RSP: 0018:ffffc90004d3fd68 EFLAGS: 00010212 RAX: 0000000000000feb RBX: 0000000000000000 RCX: ffffc9000ac09000 RDX: 0000000000040000 RSI: ffffffff8165e6d1 RDI: ffff888148e35408 RBP: ffff888148e35000 R08: 0000000000000002 R09: ffff88807bc1722f R10: ffffffff8165e5b2 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888075f01a00 R14: 0000000000000007 R15: 0000000000000000 FS: 00007f8f745e1700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0094c1020 CR3: 0000000022bc4000 CR4: 00000000003506e0 Call Trace: dma_map_sgtable+0x70/0xf0 kernel/dma/mapping.c:264 get_sg_table.isra.0+0xe0/0x160 drivers/dma-buf/udmabuf.c:72 begin_cpu_udmabuf+0x130/0x1d0 drivers/dma-buf/udmabuf.c:126 dma_buf_begin_cpu_access+0xfd/0x1d0 drivers/dma-buf/dma-buf.c:1164 dma_buf_ioctl+0x259/0x2b0 drivers/dma-buf/dma-buf.c:363 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+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f8f73489049 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8f745e1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8f7359bf60 RCX: 00007f8f73489049 RDX: 0000000020000100 RSI: 0000000040086200 RDI: 0000000000000006 RBP: 00007f8f734e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8f73acfb1f R14: 00007f8f745e1300 R15: 0000000000022000