__should_failslab+0x124/0x180 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] kmem_cache_alloc+0x2af/0x760 mm/slab.c:3552 kmem_cache_zalloc include/linux/slab.h:696 [inline] get_empty_filp+0x125/0x520 fs/file_table.c:122 BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 PGD 1d684f067 P4D 1d684f067 PUD 18c002067 PMD 0 alloc_file+0x24/0x3e0 fs/file_table.c:163 aio_private_file fs/aio.c:237 [inline] aio_setup_ring fs/aio.c:479 [inline] ioctx_alloc+0x868/0x2480 fs/aio.c:760 Oops: 0010 [#1] SMP KASAN CPU: 0 PID: 12427 Comm: syz-executor4 Not tainted 4.17.0+ #116 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010: (null) Code: Bad RIP value. RSP: 0018:ffff88018f68f470 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8801bc67f800 RCX: 1ffffffff10ea8e5 RDX: ffff88018f68f990 RSI: ffff8801b3309040 RDI: ffff88018be58ac0 RBP: ffff88018f68f5e0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff10031ed1e93 R13: ffff88018f68f990 R14: ffff8801bc67f812 R15: ffff8801bc67fc58 FS: 0000000000000000(0000) GS:ffff8801dae00000(0063) knlGS:00000000f5faeb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001a99e1000 CR4: 00000000001406f0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 __do_compat_sys_io_setup fs/aio.c:1341 [inline] __se_compat_sys_io_setup fs/aio.c:1324 [inline] __ia32_compat_sys_io_setup+0x109/0x4a0 fs/aio.c:1324 Call Trace: do_syscall_32_irqs_on arch/x86/entry/common.c:323 [inline] do_fast_syscall_32+0x345/0xf9b arch/x86/entry/common.c:394 sock_poll+0x1d1/0x710 net/socket.c:1156 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 vfs_poll+0x77/0x2a0 fs/select.c:40 do_pollfd fs/select.c:848 [inline] do_poll fs/select.c:896 [inline] do_sys_poll+0x6fd/0x1100 fs/select.c:990 RIP: 0023:0xf7f37cb9 Code: 55 08 8b 88 64 cd ff ff 8b 98 68 cd ff ff 89 c8 85 d2 74 02 89 0a 5b 5d c3 __do_compat_sys_ppoll fs/select.c:1425 [inline] __se_compat_sys_ppoll fs/select.c:1398 [inline] __ia32_compat_sys_ppoll+0x2f3/0x5f0 fs/select.c:1398 8b 04 24 c3 8b 1c do_syscall_32_irqs_on arch/x86/entry/common.c:323 [inline] do_fast_syscall_32+0x345/0xf9b arch/x86/entry/common.c:394 24 c3 51 52 55 89 e5 0f entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 34 cd 80 <5d> 5a 59 RIP: 0023:0xf7fb2cb9 c3 Code: 90 55 90 08 90 8b 90 88 eb 64 0d cd 90 ff ff 90 8b 90 98 90 68 cd 90 90 ff 90 ff 90 89 90 c8 90 85 90 d2 90 RSP: 002b:00000000f5f330ac EFLAGS: 00000282 74 ORIG_RAX: 00000000000000f5 02 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020cadffc 89 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 0a RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 5b R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 5d R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 c3 8b 04 24 c3 8b 1c 24 c3 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:00000000f5fae0ac EFLAGS: 00000282 ORIG_RAX: 0000000000000135 RAX: ffffffffffffffda RBX: 0000000020003c80 RCX: 0000000000000003 RDX: 0000000020005780 RSI: 00000000200057c0 RDI: 0000000000000008 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) CR2: 0000000000000000 ---[ end trace 72895e9e00cc8241 ]--- RIP: 0010: (null) Code: Bad RIP value. RSP: 0018:ffff88018f68f470 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8801bc67f800 RCX: 1ffffffff10ea8e5 RDX: ffff88018f68f990 RSI: ffff8801b3309040 RDI: ffff88018be58ac0 RBP: ffff88018f68f5e0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff10031ed1e93 R13: ffff88018f68f990 R14: ffff8801bc67f812 R15: ffff8801bc67fc58 FS: 0000000000000000(0000) GS:ffff8801dae00000(0063) knlGS:00000000f5faeb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001a99e1000 CR4: 00000000001406f0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600