netlink: 'syz-executor4': attribute type 8 has an invalid length. IPVS: Unknown mcast interface: syzkaller1 ================================================================== BUG: KASAN: slab-out-of-bounds in find_first_bit+0xf7/0x100 lib/find_bit.c:107 ------------[ cut here ]------------ Read of size 8 at addr ffff8801ce75df50 by task kswapd0/1530 kernel BUG at mm/vmscan.c:593! invalid opcode: 0000 [#1] SMP KASAN CPU: 0 PID: 1530 Comm: kswapd0 Not tainted 4.18.0-rc3-next-20180706+ #1 CPU: 1 PID: 12369 Comm: syz-executor1 Not tainted 4.18.0-rc3-next-20180706+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 RIP: 0010:shrink_slab_memcg mm/vmscan.c:593 [inline] RIP: 0010:shrink_slab+0xb3e/0xdb0 mm/vmscan.c:672 Code: 8d a8 fd ff print_address_description+0x6c/0x20b mm/kasan/report.c:256 ff f0 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412 48 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 0f b3 find_first_bit+0xf7/0x100 lib/find_bit.c:107 08 shrink_slab_memcg mm/vmscan.c:580 [inline] shrink_slab+0x5d0/0xdb0 mm/vmscan.c:672 e8 3d b8 da ff 48 8b shrink_node+0x429/0x16a0 mm/vmscan.c:2736 85 c0 fd ff ff c7 00 f8 f8 f8 kswapd_shrink_node mm/vmscan.c:3458 [inline] balance_pgdat+0x7ca/0x1010 mm/vmscan.c:3568 f8 c6 40 04 kswapd+0x82e/0x12f0 mm/vmscan.c:3790 f8 e9 5d fb ff ff e8 22 b8 da ff kthread+0x345/0x410 kernel/kthread.c:246 <0f> 0b e8 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 1b b8 Allocated by task 6846: da save_stack+0x43/0xd0 mm/kasan/kasan.c:448 ff set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 48 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node+0x47/0x70 mm/slab.c:3689 8b kmalloc_node include/linux/slab.h:555 [inline] kvmalloc_node+0x65/0xf0 mm/util.c:423 9d 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 d8 prealloc_memcg_shrinker mm/vmscan.c:185 [inline] prealloc_shrinker+0x29e/0x450 mm/vmscan.c:366 fd alloc_super+0x8dd/0xb10 fs/super.c:264 ff sget_userns+0x276/0x860 fs/super.c:615 ff sget+0x10b/0x150 fs/super.c:667 31 mount_bdev+0x115/0x3e0 fs/super.c:1325 ff msdos_mount+0x3c/0x50 fs/fat/namei_msdos.c:659 48 legacy_get_tree+0x118/0x440 fs/fs_context.c:659 89 vfs_get_tree+0x1cb/0x5c0 fs/super.c:1751 de do_new_mount fs/namespace.c:2567 [inline] do_mount+0x6c1/0x1fb0 fs/namespace.c:2889 e8 ksys_mount+0x12d/0x140 fs/namespace.c:3105 3a __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 b9 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RSP: 0018:ffff88019f7e6260 EFLAGS: 00010293 Freed by task 2854: RAX: ffff8801c881e640 RBX: ffff88019f7e64b0 RCX: ffffffff81a1bf32 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 RDX: 0000000000000000 RSI: ffffffff81a1c23e RDI: 0000000000000007 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 RBP: ffff88019f7e64d8 R08: ffff8801c881e640 R09: ffffed0039829dd8 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 R10: ffffed0039829dd8 R11: ffff8801cc14eec7 R12: dffffc0000000000 __cache_free mm/slab.c:3498 [inline] kfree+0xd9/0x260 mm/slab.c:3813 R13: ffff8801cc31d1f0 R14: 0000000000000000 R15: ffff88019f7e62f0 single_release+0x8f/0xb0 fs/seq_file.c:596 FS: 0000000002368940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 __fput+0x35d/0x930 fs/file_table.c:215 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 ____fput+0x15/0x20 fs/file_table.c:251 CR2: 000000c421dfb000 CR3: 0000000195430000 CR4: 00000000001406e0 task_work_run+0x1ec/0x2a0 kernel/task_work.c:113 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 tracehook_notify_resume include/linux/tracehook.h:192 [inline] exit_to_usermode_loop+0x313/0x370 arch/x86/entry/common.c:166 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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 Call Trace: entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8801ce75df40 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 16 bytes inside of 32-byte region [ffff8801ce75df40, ffff8801ce75df60) The buggy address belongs to the page: page:ffffea000739d740 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801ce75dfc1 flags: 0x2fffc0000000100(slab) shrink_node+0x429/0x16a0 mm/vmscan.c:2736 raw: 02fffc0000000100 ffffea00075224c8 ffffea00075c9588 ffff8801da8001c0 raw: ffff8801ce75dfc1 ffff8801ce75d000 0000000100000037 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801ce75de00: 05 fc fc fc fc fc fc fc 00 00 06 fc fc fc fc fc ffff8801ce75de80: 05 fc fc fc fc fc fc fc 05 fc fc fc fc fc fc fc >ffff8801ce75df00: fb fb fb fb fc fc fc fc 00 00 06 fc fc fc fc fc ^ ffff8801ce75df80: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff8801ce75e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 shrink_zones mm/vmscan.c:2965 [inline] do_try_to_free_pages+0x3e7/0x1290 mm/vmscan.c:3027 ==================================================================