Unknown ioctl 1074310738 netlink: 20 bytes leftover after parsing attributes in process `syz-executor2'. ================================================================== BUG: KASAN: use-after-free in __dev_queue_xmit+0x33f9/0x3950 net/core/dev.c:3772 Read of size 8 at addr ffff8801861e6ec0 by task udevd/24455 CPU: 1 PID: 24455 Comm: udevd Not tainted 4.19.0-rc5-next-20180928+ #84 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/0x2c4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __dev_queue_xmit+0x33f9/0x3950 net/core/dev.c:3772 Unknown ioctl 1074310738 dev_queue_xmit+0x17/0x20 net/core/dev.c:3838 neigh_resolve_output+0x67e/0xae0 net/core/neighbour.c:1364 neigh_output include/net/neighbour.h:483 [inline] ip6_finish_output2+0xc91/0x27a0 net/ipv6/ip6_output.c:120 ip6_finish_output+0x4de/0xbc0 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:276 [inline] ip6_output+0x23e/0x9f0 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] NF_HOOK include/linux/netfilter.h:287 [inline] ndisc_send_skb+0x1005/0x1570 net/ipv6/ndisc.c:491 ndisc_send_rs+0x134/0x6e0 net/ipv6/ndisc.c:685 addrconf_rs_timer+0x314/0x690 net/ipv6/addrconf.c:3820 call_timer_fn+0x26d/0x920 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7e0/0xc60 kernel/time/timer.c:1682 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1695 __do_softirq+0x30b/0xb03 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x750 arch/x86/kernel/apic/apic.c:1061 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:804 RIP: 0010:unwind_next_frame.part.7+0x431/0x9e0 arch/x86/kernel/unwind_frame.c:319 Code: 89 fa 48 c7 43 38 00 00 00 00 48 c1 ea 03 80 3c 02 00 0f 85 b4 02 00 00 48 c7 43 48 00 00 00 00 b8 01 00 00 00 e9 07 ff ff ff <65> 48 8b 04 25 40 ee 01 00 4c 39 c8 0f 84 ff 00 00 00 48 8b 7b 38 RSP: 0018:ffff8801c6836830 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff8801c6837f30 RBX: ffff8801c6836948 RCX: ffff8801c68368f8 RDX: ffff8801c6836970 RSI: ffff8801c6837f58 RDI: ffff8801c6837f48 RBP: ffff8801c6836920 R08: ffff8801c6836980 R09: ffff88018a7582c0 R10: ffffed0038d06d33 R11: ffff8801c683699f R12: 1ffff10038d06d0b R13: 0000000000000000 R14: ffff8801c6836cd8 R15: ffff8801c6836998 unwind_next_frame+0x3e/0x50 arch/x86/kernel/unwind_frame.c:287 __save_stack_trace+0x7d/0xf0 arch/x86/kernel/stacktrace.c:44 save_stack_trace+0x1a/0x20 arch/x86/kernel/stacktrace.c:60 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 slab_post_alloc_hook mm/slab.h:444 [inline] slab_alloc mm/slab.c:3392 [inline] kmem_cache_alloc+0x11b/0x730 mm/slab.c:3552 anon_vma_chain_alloc mm/rmap.c:129 [inline] anon_vma_clone+0x140/0x710 mm/rmap.c:269 anon_vma_fork+0xf4/0x820 mm/rmap.c:332 dup_mmap kernel/fork.c:540 [inline] dup_mm kernel/fork.c:1318 [inline] copy_mm kernel/fork.c:1373 [inline] copy_process+0x47c6/0x8780 kernel/fork.c:1917 _do_fork+0x1cb/0x11c0 kernel/fork.c:2216 __do_sys_clone kernel/fork.c:2323 [inline] __se_sys_clone kernel/fork.c:2317 [inline] __x64_sys_clone+0xbf/0x150 kernel/fork.c:2317 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f68d23cdf46 Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 14 25 10 00 00 00 31 d2 49 81 c2 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 31 01 00 00 85 c0 41 89 c4 0f 85 3b 01 00 RSP: 002b:00007ffc87b5a110 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffc87b5a110 RCX: 00007f68d23cdf46 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffc87b5a170 R08: 0000000000005f87 R09: 0000000000005f87 R10: 00007f68d2ceaa70 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc87b5a130 R14: 0000000000000005 R15: 0000000000000005 Allocated by task 6057: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x47/0x70 mm/slab.c:3696 __kmalloc_reserve.isra.39+0x41/0xe0 net/core/skbuff.c:137 __alloc_skb+0x150/0x770 net/core/skbuff.c:205 alloc_skb_fclone include/linux/skbuff.h:1039 [inline] sk_stream_alloc_skb+0x13c/0x960 net/ipv4/tcp.c:874 tcp_sendmsg_locked+0xee4/0x3f90 net/ipv4/tcp.c:1286 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1443 inet_sendmsg+0x19c/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:632 sock_write_iter+0x35e/0x5c0 net/socket.c:901 call_write_iter include/linux/fs.h:1825 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6057: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3813 skb_free_head+0x99/0xc0 net/core/skbuff.c:550 skb_release_data+0x6a4/0x880 net/core/skbuff.c:570 skb_release_all+0x4a/0x60 net/core/skbuff.c:627 __kfree_skb net/core/skbuff.c:641 [inline] consume_skb+0x1a9/0x560 net/core/skbuff.c:701 __dev_kfree_skb_any+0xa7/0xd0 net/core/dev.c:2761 dev_consume_skb_any include/linux/netdevice.h:3548 [inline] free_old_xmit_skbs+0xc1/0x200 drivers/net/virtio_net.c:1340 start_xmit+0x1ba/0x18c0 drivers/net/virtio_net.c:1511 __netdev_start_xmit include/linux/netdevice.h:4322 [inline] netdev_start_xmit include/linux/netdevice.h:4331 [inline] xmit_one net/core/dev.c:3219 [inline] dev_hard_start_xmit+0x290/0xc90 net/core/dev.c:3235 sch_direct_xmit+0x48b/0x1130 net/sched/sch_generic.c:327 qdisc_restart net/sched/sch_generic.c:390 [inline] __qdisc_run+0x631/0x1980 net/sched/sch_generic.c:398 qdisc_run include/net/pkt_sched.h:121 [inline] __dev_xmit_skb net/core/dev.c:3414 [inline] __dev_queue_xmit+0x190b/0x3950 net/core/dev.c:3773 dev_queue_xmit+0x17/0x20 net/core/dev.c:3838 neigh_hh_output include/net/neighbour.h:473 [inline] neigh_output include/net/neighbour.h:481 [inline] ip_finish_output2+0x105c/0x1860 net/ipv4/ip_output.c:229 ip_finish_output+0x7f8/0xf90 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:276 [inline] ip_output+0x21d/0x8d0 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:444 [inline] ip_local_out+0xc5/0x1b0 net/ipv4/ip_output.c:124 __ip_queue_xmit+0x9af/0x1f30 net/ipv4/ip_output.c:505 ip_queue_xmit+0x56/0x70 include/net/ip.h:197 __tcp_transmit_skb+0x1bc5/0x3b00 net/ipv4/tcp_output.c:1179 tcp_transmit_skb net/ipv4/tcp_output.c:1195 [inline] tcp_write_xmit+0x15bf/0x5630 net/ipv4/tcp_output.c:2381 __tcp_push_pending_frames+0xb2/0x290 net/ipv4/tcp_output.c:2554 tcp_push+0x662/0x900 net/ipv4/tcp.c:735 tcp_sendmsg_locked+0x3296/0x3f90 net/ipv4/tcp.c:1406 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1443 inet_sendmsg+0x19c/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:632 sock_write_iter+0x35e/0x5c0 net/socket.c:901 call_write_iter include/linux/fs.h:1825 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 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 ffff8801861e6ec0 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 0 bytes inside of 2048-byte region [ffff8801861e6ec0, ffff8801861e76c0) The buggy address belongs to the page: page:ffffea0006187980 count:1 mapcount:0 mapping:ffff8801da800c40 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0006e52588 ffffea0007340e08 ffff8801da800c40 raw: 0000000000000000 ffff8801861e6640 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801861e6d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801861e6e00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8801861e6e80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff8801861e6f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801861e6f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================