page->mem_cgroup:ffff8801b3294380 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 getname_flags+0xd0/0x5a0 fs/namei.c:140 ------------[ cut here ]------------ getname+0x19/0x20 fs/namei.c:211 kernel BUG at mm/shmem.c:815! do_sys_open+0x3a2/0x720 fs/open.c:1100 invalid opcode: 0000 [#1] SMP KASAN CPU: 0 PID: 4496 Comm: syz-executor035 Not tainted 4.18.0-rc3-next-20180706+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:shmem_undo_range+0xdaa/0x29a0 mm/shmem.c:815 __do_sys_open fs/open.c:1124 [inline] __se_sys_open fs/open.c:1119 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1119 Code: do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 00 0f 85 bd 19 00 00 48 entry_SYSCALL_64_after_hwframe+0x49/0xbe 8d RIP: 0033:0x401cd0 65 Code: d8 01 5b f0 41 ff 5c ff 41 5d 0f 41 83 5e d0 41 0a 5f 00 5d 00 c3 c3 e8 66 a5 2e f0 0f d6 1f ff 84 48 00 00 c7 00 c6 00 e0 00 32 0f f1 87 1f 4c 44 89 00 e7 00 e8 83 16 3d 10 fd 05 69 00 2d <0f> 00 0b 00 e8 75 8f 14 f0 b8 d6 02 ff 00 49 00 8d 00 7c 0f 24 05 20 <48> 48 3d 89 01 f8 f0 48 ff c1 ff e8 0f 03 80 83 3c a4 18 0a 00 00 RSP: 0018:ffff8801ac4f6158 EFLAGS: 00010246 c3 48 83 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 ec RDX: 0000000000000000 RSI: ffffffff81aaab95 RDI: ffffed003589ec18 08 RBP: ffff8801ac4f68d0 R08: ffff8801b810c040 R09: fffffbfff11f1224 e8 R10: fffffbfff11f1224 R11: ffffffff88f89123 R12: ffffea0007032d80 5a R13: ffff8801ac4f68a8 R14: 0000000000000000 R15: 00000000000006d8 01 FS: 0000000000000000(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 00 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 00 CR2: 0000000001880fd0 CR3: 0000000008e6a000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 RSP: 002b:00007fff5cef0438 EFLAGS: 00000246 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ORIG_RAX: 0000000000000002 Call Trace: RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000401cd0 RDX: 00007fff5cef059a RSI: 0000000000000002 RDI: 00007fff5cef0590 RBP: 0000000000020000 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000075 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000 shmem_truncate_range+0x27/0xa0 mm/shmem.c:971 shmem_evict_inode+0x3b2/0xcb0 mm/shmem.c:1071 evict+0x4ae/0x990 fs/inode.c:558 iput_final fs/inode.c:1508 [inline] iput+0x635/0xaa0 fs/inode.c:1534 dentry_unlink_inode+0x4ae/0x640 fs/dcache.c:377 __dentry_kill+0x44c/0x7a0 fs/dcache.c:569 dentry_kill+0xc9/0x5a0 fs/dcache.c:688 dput.part.26+0x66b/0x7a0 fs/dcache.c:849 dput+0x15/0x20 fs/dcache.c:831 __fput+0x558/0x930 fs/file_table.c:235 ____fput+0x15/0x20 fs/file_table.c:251 task_work_run+0x1ec/0x2a0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x1b08/0x2750 kernel/exit.c:869 do_group_exit+0x177/0x440 kernel/exit.c:972 get_signal+0x88e/0x1970 kernel/signal.c:2467 do_signal+0x9c/0x21c0 arch/x86/kernel/signal.c:816 exit_to_usermode_loop+0x2e0/0x370 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x445ab7 Code: Bad RIP value. RSP: 002b:00007fff5cef0438 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 RAX: fffffffffffffff4 RBX: 0000000000000005 RCX: 0000000000445ab7 RDX: 0000000000000005 RSI: 0000000000004c00 RDI: 0000000000000006 RBP: 0000000000000006 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000075 R11: 0000000000000213 R12: ffffffffffffffff R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) ---[ end trace 090d00196035019d ]--- RIP: 0010:shmem_undo_range+0xdaa/0x29a0 mm/shmem.c:815 Code: 00 0f 85 bd 19 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 a5 f0 d6 ff 48 c7 c6 e0 32 f1 87 4c 89 e7 e8 16 10 05 00 <0f> 0b e8 8f f0 d6 ff 49 8d 7c 24 20 48 89 f8 48 c1 e8 03 80 3c 18 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 RSP: 0018:ffff8801ac4f6158 EFLAGS: 00010246 CPU: 1 PID: 4511 Comm: syz-executor035 Tainted: G D 4.18.0-rc3-next-20180706+ #1 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 RDX: 0000000000000000 RSI: ffffffff81aaab95 RDI: ffffed003589ec18 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x11 lib/fault-inject.c:149 RBP: ffff8801ac4f68d0 R08: ffff8801b810c040 R09: fffffbfff11f1224 R10: fffffbfff11f1224 R11: ffffffff88f89123 R12: ffffea0007032d80 R13: ffff8801ac4f68a8 R14: 0000000000000000 R15: 00000000000006d8 FS: 0000000000000000(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000445a8d CR3: 0000000008e6a000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 __should_failslab+0x124/0x180 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1557