RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000016 R13: 00000000004bcb74 R14: 00000000004cabf0 R15: 0000000000000000 ------------[ cut here ]------------ heap->ops->map_kernel should return ERR_PTR on error WARNING: CPU: 1 PID: 17979 at drivers/staging/android/ion/ion.c:148 ion_buffer_kmap_get drivers/staging/android/ion/ion.c:147 [inline] WARNING: CPU: 1 PID: 17979 at drivers/staging/android/ion/ion.c:148 ion_dma_buf_begin_cpu_access+0x48e/0x5a0 drivers/staging/android/ion/ion.c:328 Node 0 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 17979 Comm: syz-executor5 Not tainted 4.18.0-rc2+ #125 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: DMA: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 panic+0x238/0x4e7 kernel/panic.c:184 1*4kB (U) __warn.cold.8+0x163/0x1ba kernel/panic.c:536 report_bug+0x252/0x2d0 lib/bug.c:186 0*8kB fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296 0*16kB do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 1*32kB invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992 RIP: 0010:ion_buffer_kmap_get drivers/staging/android/ion/ion.c:147 [inline] RIP: 0010:ion_dma_buf_begin_cpu_access+0x48e/0x5a0 drivers/staging/android/ion/ion.c:328 Code: (U) ff 41 bc ea ff ff ff 2*64kB 89 de e8 ce c0 b1 fb 84 (U) db 75 a8 e8 f5 bf b1 fb 1*128kB 48 c7 c7 00 e8 67 88 c6 (U) 05 5c 52 cf 03 01 e8 c2 1*256kB e2 7c fb <0f> 0b eb 8c 48 (U) c7 c7 c0 10 ef 88 e8 82 0*512kB 93 ef fb e9 15 ff ff ff 1*1024kB e8 RSP: 0018:ffff880182a3fae8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90006630000 RDX: 0000000000040000 RSI: ffffffff816318f1 RDI: ffff880182a3f7c0 RBP: ffff880182a3fb40 R08: ffff880195a02bf8 R09: 0000000000000006 (U) R10: ffff880195a023c0 R11: 0000000000000000 R12: 00000000ffffffea R13: ffff8801d3dd2888 R14: 0000000000000002 R15: ffffffff89727840 1*2048kB (M) dma_buf_begin_cpu_access+0x7f/0x160 drivers/dma-buf/dma-buf.c:823 dma_buf_ioctl+0x1af/0x250 drivers/dma-buf/dma-buf.c:314 3*4096kB vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:684 (M) = 15908kB Node 0 DMA32: ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 __do_sys_ioctl fs/ioctl.c:708 [inline] __se_sys_ioctl fs/ioctl.c:706 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 2*4kB (M) 6*8kB entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455a99 Code: (UM) 1d ba fb ff c3 66 4*16kB 2e 0f 1f 84 00 00 00 00 (UM) 00 66 90 48 89 f8 48 89 4*32kB f7 48 89 d6 48 89 ca 4d (M) 89 c2 4d 89 c8 4c 8b 4c 3*64kB 24 08 0f 05 <48> 3d 01 f0 (UM) ff ff 0f 83 eb b9 fb ff 2*128kB c3 66 2e 0f 1f 84 00 00 (M) 00 00 RSP: 002b:00007f07e8813c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f07e88146d4 RCX: 0000000000455a99 RDX: 0000000020000080 RSI: 0000000040086200 RDI: 0000000000000015 2*256kB RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000016 R13: 00000000004bcb74 R14: 00000000004cabf0 R15: 0000000000000000 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..