------------[ cut here ]------------ WARNING: CPU: 0 PID: 4076 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0xdb/0x1b0 kernel/dma/mapping.c:186 Modules linked in: CPU: 1 PID: 4076 Comm: syz-executor.0 Not tainted 5.18.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__dma_map_sg_attrs+0xdb/0x1b0 kernel/dma/mapping.c:188 Code: 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 8d 00 00 00 83 f9 02 48 8b 1d 2d 1a b3 0c 0f 86 6c ff ff ff 0f 0b <0f> 0b 31 c0 eb a4 48 8d 7b 50 48 b8 00 00 00 00 00 fc ff df 48 89 RSP: 0018:ffffc90002d4fd70 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000002 RDX: 1ffff11003533c81 RSI: ffff888018e25c40 RDI: ffff88801a99e408 RBP: ffff88801a99e000 R08: 0000000000000000 R09: ffff888015046b4f R10: ffffed1002a08d69 R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000 FS: 00007fc08633f700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdc00969d8 CR3: 000000007e86d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dma_map_sgtable+0x66/0xd0 kernel/dma/mapping.c:264 get_sg_table.isra.0+0xc4/0x140 drivers/dma-buf/udmabuf.c:72 begin_cpu_udmabuf+0x10b/0x1d0 drivers/dma-buf/udmabuf.c:126 dma_buf_begin_cpu_access+0xe2/0x180 drivers/dma-buf/dma-buf.c:1164 dma_buf_ioctl+0x1bb/0x210 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+0x11f/0x190 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fc085289059 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:00007fc08633f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc08539bf60 RCX: 00007fc085289059 RDX: 0000000020000200 RSI: 0000000040086200 RDI: 0000000000000008 RBP: 00007fc0852e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9041fcdf R14: 00007fc08633f300 R15: 0000000000022000