tmpfs: No value for mount option '/dev/uinput' ================================================================== BUG: KASAN: slab-out-of-bounds in find_first_bit+0xf7/0x100 lib/find_bit.c:107 kasan: CONFIG_KASAN_INLINE enabled Read of size 8 at addr ffff8801d7e551d0 by task kswapd0/1533 kasan: GPF could be caused by NULL-ptr deref or user memory access CPU: 0 PID: 1533 Comm: kswapd0 Not tainted 4.18.0-rc4-next-20180710+ #3 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 general protection fault: 0000 [#1] SMP KASAN CPU: 1 PID: 15455 Comm: syz-executor2 Not tainted 4.18.0-rc4-next-20180710+ #3 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 print_address_description+0x6c/0x20b mm/kasan/report.c:256 RIP: 0010:__x86_indirect_thunk_rax+0x10/0x20 arch/x86/lib/retpoline.S:32 Code: kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412 90 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 90 find_first_bit+0xf7/0x100 lib/find_bit.c:107 90 shrink_slab_memcg mm/vmscan.c:580 [inline] shrink_slab+0x5d0/0xdb0 mm/vmscan.c:672 90 90 90 90 90 90 shrink_node+0x429/0x16a0 mm/vmscan.c:2736 90 90 90 90 90 90 90 90 90 kswapd_shrink_node mm/vmscan.c:3458 [inline] balance_pgdat+0x7ca/0x1010 mm/vmscan.c:3568 90 90 90 90 kswapd+0x82e/0x12f0 mm/vmscan.c:3790 90 90 90 90 e8 07 00 00 00 f3 90 kthread+0x345/0x410 kernel/kthread.c:246 0f ae ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 e8 eb Allocated by task 8007: f9 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 48 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node+0x47/0x70 mm/slab.c:3689 89 kmalloc_node include/linux/slab.h:555 [inline] kvmalloc_node+0x65/0xf0 mm/util.c:423 04 kvmalloc include/linux/mm.h:557 [inline] memcg_expand_one_shrinker_map mm/memcontrol.c:341 [inline] memcg_expand_shrinker_maps+0x1b1/0x3c0 mm/memcontrol.c:416 24 prealloc_memcg_shrinker mm/vmscan.c:185 [inline] prealloc_shrinker+0x29e/0x450 mm/vmscan.c:366 alloc_super+0x8dd/0xb10 fs/super.c:264 0f sget_userns+0x276/0x860 fs/super.c:607 1f sget+0x10b/0x150 fs/super.c:659 mount_bdev+0x115/0x3e0 fs/super.c:1317 44 vfat_mount+0x3c/0x50 fs/fat/namei_vfat.c:1056 legacy_get_tree+0x118/0x440 fs/fs_context.c:659 00 vfs_get_tree+0x1cb/0x5c0 fs/super.c:1743 00 do_new_mount fs/namespace.c:2567 [inline] do_mount+0x6c1/0x1fb0 fs/namespace.c:2889 66 ksys_mount+0x12d/0x140 fs/namespace.c:3105 __do_sys_mount fs/namespace.c:3119 [inline] __se_sys_mount fs/namespace.c:3116 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3116 2e do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 0f entry_SYSCALL_64_after_hwframe+0x49/0xbe 1f 84 Freed by task 2896: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 00 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 00 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xd9/0x260 mm/slab.c:3813 00 single_release+0x8f/0xb0 fs/seq_file.c:596 00 __fput+0x35d/0x930 fs/file_table.c:252 00 ____fput+0x15/0x20 fs/file_table.c:288 e8 task_work_run+0x1ec/0x2a0 kernel/task_work.c:113 07 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 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 00 entry_SYSCALL_64_after_hwframe+0x49/0xbe 00 The buggy address belongs to the object at ffff8801d7e551c0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 16 bytes inside of 32-byte region [ffff8801d7e551c0, ffff8801d7e551e0) 00 The buggy address belongs to the page: f3 page:ffffea00075f9540 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801d7e55fc1 RSP: 0018:ffff880192da5cb8 EFLAGS: 00010246 flags: 0x2fffc0000000100(slab) RAX: ee2e18a3c9b7451a RBX: dffffc0000000000 RCX: ffffc90002c5b000 raw: 02fffc0000000100 ffffea00075aa0c8 ffffea00075a1908 ffff8801da8001c0 RDX: 1ffff10039866e56 RSI: ffff880192da5f50 RDI: ffff8801cc3372b0 raw: ffff8801d7e55fc1 ffff8801d7e55000 0000000100000025 0000000000000000 RBP: ffff880192da5eb0 R08: ffff8801ae9b0580 R09: ffffed0039844748 R10: ffffed0039844748 R11: ffff8801cc223a47 R12: ffff880192da5f50 page dumped because: kasan: bad access detected R13: ffff8801cc3372b0 R14: ffff8801cc3372d8 R15: a0ec3a5077f989f8 Memory state around the buggy address: FS: 00007fc736d58700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 ffff8801d7e55080: 00 00 06 fc fc fc fc fc fb fb fb fb fc fc fc fc CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000704914 CR3: 00000001cff31000 CR4: 00000000001406e0 ffff8801d7e55100: fb fb fb fb fc fc fc fc 00 00 06 fc fc fc fc fc DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 >ffff8801d7e55180: fb fb fb fb fc fc fc fc 00 00 06 fc fc fc fc fc DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ^ Call Trace: ffff8801d7e55200: 00 00 06 fc fc fc fc fc 00 00 06 fc fc fc fc fc ffff8801d7e55280: 00 00 06 fc fc fc fc fc 00 00 06 fc fc fc fc fc ==================================================================