IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 ================================================================== BUG: KASAN: slab-out-of-bounds in batadv_interface_tx+0x160a/0x18b0 net/batman-adv/soft-interface.c:226 Read of size 2 at addr ffff88809b68678b by task syz-executor924/7406 CPU: 0 PID: 7406 Comm: syz-executor924 Not tainted 4.20.0-rc7-next-20181224 #189 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+0x1d3/0x2c6 lib/dump_stack.c:113 print_address_description.cold.5+0x9/0x1ff mm/kasan/report.c:187 kasan_report.cold.6+0x1b/0x39 mm/kasan/report.c:317 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/generic_report.c:145 batadv_interface_tx+0x160a/0x18b0 net/batman-adv/soft-interface.c:226 __netdev_start_xmit include/linux/netdevice.h:4382 [inline] netdev_start_xmit include/linux/netdevice.h:4391 [inline] dev_direct_xmit+0x36c/0x6a0 net/core/dev.c:3930 packet_direct_xmit+0xfb/0x170 net/packet/af_packet.c:246 packet_snd net/packet/af_packet.c:2932 [inline] packet_sendmsg+0x298a/0x6ad0 net/packet/af_packet.c:2957 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 __sys_sendto+0x3d7/0x670 net/socket.c:1788 __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto net/socket.c:1796 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1796 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x441619 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 3b 0b fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe77622568 EFLAGS: 00000216 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441619 RDX: 000000000000000e RSI: 0000000020000180 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004025e0 R13: 0000000000402670 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 7150: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] kasan_kmalloc+0xcb/0xd0 mm/kasan/common.c:482 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:397 kmem_cache_alloc+0x130/0x730 mm/slab.c:3541 ptlock_alloc+0x20/0x80 mm/memory.c:4572 ptlock_init include/linux/mm.h:1997 [inline] pgtable_page_ctor include/linux/mm.h:2024 [inline] pte_alloc_one+0x6b/0x1a0 arch/x86/mm/pgtable.c:38 __pte_alloc+0x20/0x300 mm/memory.c:406 do_anonymous_page mm/memory.c:2904 [inline] handle_pte_fault mm/memory.c:3779 [inline] __handle_mm_fault+0x43d8/0x55f0 mm/memory.c:3905 handle_mm_fault+0x54f/0xc70 mm/memory.c:3942 faultin_page mm/gup.c:535 [inline] __get_user_pages+0xa1b/0x1e90 mm/gup.c:738 __get_user_pages_locked mm/gup.c:914 [inline] get_user_pages_remote+0x21a/0x440 mm/gup.c:1106 get_arg_page fs/exec.c:216 [inline] copy_strings.isra.23+0x430/0xa90 fs/exec.c:558 copy_strings_kernel+0xa5/0x110 fs/exec.c:603 __do_execve_file.isra.33+0x1510/0x2820 fs/exec.c:1802 do_execveat_common fs/exec.c:1864 [inline] do_execve fs/exec.c:1881 [inline] __do_sys_execve fs/exec.c:1962 [inline] __se_sys_execve fs/exec.c:1957 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1957 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7150: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:444 kasan_slab_free+0xe/0x10 mm/kasan/common.c:452 __cache_free mm/slab.c:3485 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3747 ptlock_free+0x38/0x42 mm/memory.c:4581 pgtable_page_dtor include/linux/mm.h:2033 [inline] ___pte_free_tlb+0x1e/0x160 arch/x86/mm/pgtable.c:64 __pte_free_tlb arch/x86/include/asm/pgalloc.h:73 [inline] free_pte_range mm/memory.c:198 [inline] free_pmd_range mm/memory.c:216 [inline] free_pud_range mm/memory.c:250 [inline] free_p4d_range mm/memory.c:284 [inline] free_pgd_range+0x9ef/0xea0 mm/memory.c:364 shift_arg_pages+0x2a7/0x470 fs/exec.c:672 setup_arg_pages+0x6a9/0x830 fs/exec.c:765 load_elf_binary+0xcb6/0x5620 fs/binfmt_elf.c:887 search_binary_handler+0x17d/0x570 fs/exec.c:1655 exec_binprm fs/exec.c:1697 [inline] __do_execve_file.isra.33+0x17c8/0x2820 fs/exec.c:1817 do_execveat_common fs/exec.c:1864 [inline] do_execve fs/exec.c:1881 [inline] __do_sys_execve fs/exec.c:1962 [inline] __se_sys_execve fs/exec.c:1957 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1957 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88809b686738 which belongs to the cache page->ptl of size 56 The buggy address is located 27 bytes to the right of 56-byte region [ffff88809b686738, ffff88809b686770) The buggy address belongs to the page: page:ffffea00026da180 count:1 mapcount:0 mapping:ffff88812c3eb0c0 index:0xffff88809b686a50 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea000276b008 ffffea00025cbf08 ffff88812c3eb0c0 raw: ffff88809b686a50 ffff88809b686000 0000000100000016 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809b686680: fc fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb ffff88809b686700: fb fb fb fc fc fc fc fb fb fb fb fb fb fb fc fc >ffff88809b686780: fc fc fb fb fb fb fb fb fb fc fc fc fc fb fb fb ^ ffff88809b686800: fb fb fb fb fc fc fc fc fb fb fb fb fb fb fb fc ffff88809b686880: fc fc fc fb fb fb fb fb fb fb fc fc fc fc fb fb ==================================================================