IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 ================================================================== BUG: KASAN: use-after-free in erspan_build_header+0x392/0x3b0 net/ipv4/ip_gre.c:706 Read of size 2 at addr ffff888096864a4b by task syz-executor990/7169 CPU: 1 PID: 7169 Comm: syz-executor990 Not tainted 4.14.111 #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x19c lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xaf/0x2b5 mm/kasan/report.c:393 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:440 erspan_build_header+0x392/0x3b0 net/ipv4/ip_gre.c:706 erspan_xmit net/ipv4/ip_gre.c:748 [inline] erspan_xmit+0x3ec/0x11c0 net/ipv4/ip_gre.c:725 __netdev_start_xmit include/linux/netdevice.h:4033 [inline] netdev_start_xmit include/linux/netdevice.h:4042 [inline] packet_direct_xmit+0x438/0x640 net/packet/af_packet.c:269 packet_snd net/packet/af_packet.c:2969 [inline] packet_sendmsg+0x31e1/0x5990 net/packet/af_packet.c:2994 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xd0/0x110 net/socket.c:656 ___sys_sendmsg+0x70c/0x850 net/socket.c:2062 __sys_sendmsg+0xb9/0x140 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2103 do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x441989 RSP: 002b:00007ffdccf778f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441989 RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 00000000004a9070 R08: 0000000001bbbbbb R09: 0000000001bbbbbb R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000402ed0 R13: 0000000000402f60 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 3896: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc+0x12e/0x780 mm/slab.c:3552 kmem_cache_zalloc include/linux/slab.h:651 [inline] fill_pool lib/debugobjects.c:110 [inline] __debug_object_init+0x5b8/0x8e0 lib/debugobjects.c:341 debug_object_init lib/debugobjects.c:393 [inline] debug_object_activate+0x277/0x460 lib/debugobjects.c:474 debug_rcu_head_queue kernel/rcu/rcu.h:152 [inline] __call_rcu.constprop.0+0x35/0x820 kernel/rcu/tree.c:3050 call_rcu+0x12/0x20 kernel/rcu/tree_plugin.h:730 file_free fs/file_table.c:56 [inline] __fput+0x458/0x7a0 fs/file_table.c:227 ____fput+0x16/0x20 fs/file_table.c:244 task_work_run+0x119/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1da/0x220 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:267 [inline] do_syscall_64+0x4a9/0x630 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 25: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kmem_cache_free+0x83/0x2b0 mm/slab.c:3758 free_obj_work+0x233/0x6d0 lib/debugobjects.c:207 process_one_work+0x868/0x1610 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x31c/0x430 kernel/kthread.c:232 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402 The buggy address belongs to the object at ffff888096864a48 which belongs to the cache debug_objects_cache of size 40 The buggy address is located 3 bytes inside of 40-byte region [ffff888096864a48, ffff888096864a70) The buggy address belongs to the page: page:ffffea00025a1900 count:1 mapcount:0 mapping:ffff888096864000 index:0xffff888096864fb9 flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffff888096864000 ffff888096864fb9 0000000100000004 raw: ffffea00023d6ba0 ffffea00029760a0 ffff8880aa810dc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888096864900: fb fb fb fb fc fc fb fb fb fb fb fc fc fb fb fb ffff888096864980: fb fb fc fc fb fb fb fb fb fc fc fb fb fb fb fb >ffff888096864a00: fc fc fb fb fb fb fb fc fc fb fb fb fb fb fc fc ^ ffff888096864a80: fb fb fb fb fb fc fc fb fb fb fb fb fc fc fb fb ffff888096864b00: fb fb fb fc fc fb fb fb fb fb fc fc fb fb fb fb ==================================================================