------------[ cut here ]------------ WARNING: CPU: 0 PID: 4822 at kernel/dma/mapping.c:188 dma_map_sgtable+0x203/0x260 kernel/dma/mapping.c:264 Modules linked in: CPU: 0 PID: 4822 Comm: syz-executor.5 Not tainted 5.19.0-rc3-syzkaller-00027-g78ca55889a54 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__dma_map_sg_attrs kernel/dma/mapping.c:188 [inline] RIP: 0010:dma_map_sgtable+0x203/0x260 kernel/dma/mapping.c:264 Code: 75 15 e8 80 c1 14 00 eb cb e8 79 c1 14 00 eb c4 e8 72 c1 14 00 eb bd e8 6b c1 14 00 0f 0b bd fb ff ff ff eb af e8 5d c1 14 00 <0f> 0b 31 ed 48 bb 00 00 00 00 00 fc ff df e9 7b ff ff ff 89 e9 80 RSP: 0018:ffffc900044afd40 EFLAGS: 00010283 RAX: ffffffff8172e6b3 RBX: dffffc0000000000 RCX: 0000000000040000 RDX: ffffc9000ddc0000 RSI: 00000000000007f1 RDI: 00000000000007f2 RBP: ffff88814745d378 R08: ffffffff8172e583 R09: ffffed100eebd56e R10: ffffed100eebd56e R11: 1ffff1100eebd56c R12: ffff88814745d000 R13: ffff8880775eab60 R14: 0000000000000000 R15: 0000000000000002 FS: 00007f4d1ac78700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f323000 CR3: 00000000208c6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: get_sg_table+0xf9/0x150 drivers/dma-buf/udmabuf.c:75 begin_cpu_udmabuf+0xf5/0x160 drivers/dma-buf/udmabuf.c:129 dma_buf_begin_cpu_access+0xd8/0x170 drivers/dma-buf/dma-buf.c:1186 dma_buf_ioctl+0x2a0/0x2f0 drivers/dma-buf/dma-buf.c:364 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f4d19a89109 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:00007f4d1ac78168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4d19b9bf60 RCX: 00007f4d19a89109 RDX: 00000000200001c0 RSI: 0000000040086200 RDI: 0000000000000009 RBP: 00007f4d19ae305d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeeb9993cf R14: 00007f4d1ac78300 R15: 0000000000022000