general protection fault, probably for non-canonical address 0xdffffc0000000017: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000b8-0x00000000000000bf] CPU: 0 PID: 1151 Comm: syz-executor.5 Not tainted 5.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:dma_buf_release+0x51/0x3f0 drivers/dma-buf/dma-buf.c:63 Code: 03 80 3c 02 00 0f 85 30 03 00 00 48 8b ad e8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bd b8 00 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e e3 02 00 00 8b 9d b8 00 00 00 RSP: 0018:ffffc900173f7b10 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffffffff847bf7e0 RCX: ffffc90014655000 RDX: 0000000000000017 RSI: ffffffff847bf7f0 RDI: 00000000000000b8 RBP: 0000000000000000 R08: 0000000000000001 R09: ffff88808f54bd0b R10: 0000000000000000 R11: 0000000000000000 R12: ffff888097d88df0 R13: ffff888097d88d78 R14: ffff888097d88dc0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae600000(0063) knlGS:00000000f5dcfb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000081585bc CR3: 0000000090a7c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __dentry_kill+0x42b/0x640 fs/dcache.c:584 dentry_kill fs/dcache.c:705 [inline] dput+0x725/0xbc0 fs/dcache.c:878 path_put+0x2d/0x60 fs/namei.c:496 alloc_file_pseudo+0x20d/0x250 fs/file_table.c:236 dma_buf_getfile drivers/dma-buf/dma-buf.c:441 [inline] dma_buf_export+0x5f7/0xb00 drivers/dma-buf/dma-buf.c:558 ion_alloc drivers/staging/android/ion/ion.c:386 [inline] ion_ioctl+0x560/0xd20 drivers/staging/android/ion/ion.c:495 compat_ptr_ioctl+0x67/0x90 fs/ioctl.c:794 __do_compat_sys_ioctl+0x1d3/0x230 fs/ioctl.c:847 do_syscall_32_irqs_on+0x3f/0x60 arch/x86/entry/common.c:428 __do_fast_syscall_32 arch/x86/entry/common.c:475 [inline] do_fast_syscall_32+0x7f/0x120 arch/x86/entry/common.c:503 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fd4569 Code: 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5dcf0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000c0184900 RDX: 00000000200001c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 760d0933fa5565e5 ]--- RIP: 0010:dma_buf_release+0x51/0x3f0 drivers/dma-buf/dma-buf.c:63 Code: 03 80 3c 02 00 0f 85 30 03 00 00 48 8b ad e8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bd b8 00 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e e3 02 00 00 8b 9d b8 00 00 00 RSP: 0018:ffffc900173f7b10 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffffffff847bf7e0 RCX: ffffc90014655000 RDX: 0000000000000017 RSI: ffffffff847bf7f0 RDI: 00000000000000b8 RBP: 0000000000000000 R08: 0000000000000001 R09: ffff88808f54bd0b R10: 0000000000000000 R11: 0000000000000000 R12: ffff888097d88df0 R13: ffff888097d88d78 R14: ffff888097d88dc0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae600000(0063) knlGS:00000000f5dcfb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007fa3ae5da000 CR3: 0000000090a7c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400