netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. REISERFS warning (device loop3): super-6507 reiserfs_parse_options: bad value 0¨zM~à)צ©ƒ·2(ŽP¬ -óöß—„=iàíy[] I©Šn for -oresize ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:185 [inline] BUG: KASAN: use-after-free in dev_queue_xmit_nit+0x7b5/0x950 net/core/dev.c:1925 Read of size 8 at addr ffff8880422c16e8 by task syz-executor.0/9827 CPU: 0 PID: 9827 Comm: syz-executor.0 Not tainted 4.14.259-syzkaller #0 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+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 __read_once_size include/linux/compiler.h:185 [inline] dev_queue_xmit_nit+0x7b5/0x950 net/core/dev.c:1925 xmit_one net/core/dev.c:3001 [inline] dev_hard_start_xmit+0xaa/0x890 net/core/dev.c:3021 __dev_queue_xmit+0x1d7f/0x2480 net/core/dev.c:3521 neigh_output include/net/neighbour.h:500 [inline] ip6_finish_output2+0xf48/0x1f10 net/ipv6/ip6_output.c:120 ip6_finish_output+0x5c6/0xd50 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:239 [inline] ip6_output+0x1c5/0x660 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:470 [inline] NF_HOOK include/linux/netfilter.h:250 [inline] ndisc_send_skb+0x82a/0x1390 net/ipv6/ndisc.c:483 ndisc_send_rs+0x125/0x630 net/ipv6/ndisc.c:677 addrconf_rs_timer+0x2bb/0x5a0 net/ipv6/addrconf.c:3769 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319 __run_timers kernel/time/timer.c:1637 [inline] run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x193/0x240 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793 RIP: 0010:preempt_schedule_irq+0xa6/0x140 kernel/sched/core.c:3614 RSP: 0018:ffff8880aa377380 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff11e127b RBX: dffffc0000000000 RCX: 1ffff110156cb532 RDX: 0000000000000000 RSI: ffff8880ab65a998 RDI: ffff8880ab65a944 RBP: ffffed10156cb418 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ab65a0c0 R13: ffffffff88f093d8 R14: 0000000000000000 R15: 0000000000000000 retint_kernel+0x1b/0x2d RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline] RIP: 0010:rcu_read_unlock_special+0x452/0xdd0 kernel/rcu/tree_plugin.h:542 RSP: 0018:ffff8880aa377450 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff02 RAX: 1ffffffff11e1279 RBX: ffff8880ab65a0c0 RCX: 1ffff110156cb532 RDX: dffffc0000000000 RSI: ffff8880ab65a998 RDI: 0000000000000286 RBP: ffff8880ab65a444 R08: ffff8880ba534cb0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286 R13: ffff8880ab65a446 R14: ffff8880ab65a445 R15: 0000000000000000 __rcu_read_unlock+0x158/0x160 kernel/rcu/update.c:260 rcu_read_unlock include/linux/rcupdate.h:684 [inline] is_bpf_text_address+0x9b/0x150 kernel/bpf/core.c:459 kernel_text_address kernel/extable.c:150 [inline] kernel_text_address+0xbd/0xf0 kernel/extable.c:120 __kernel_text_address+0x9/0x30 kernel/extable.c:105 unwind_get_return_address arch/x86/kernel/unwind_orc.c:252 [inline] unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:247 __save_stack_trace+0xa0/0x160 arch/x86/kernel/stacktrace.c:45 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 kmem_cache_alloc+0x124/0x3c0 mm/slab.c:3552 kmem_cache_zalloc include/linux/slab.h:651 [inline] __kernfs_new_node+0x6f/0x470 fs/kernfs/dir.c:632 kernfs_new_node+0x7b/0xe0 fs/kernfs/dir.c:677 __kernfs_create_file+0x3d/0x320 fs/kernfs/file.c:989 sysfs_add_file_mode_ns+0x1e1/0x450 fs/sysfs/file.c:308 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x22b/0x710 fs/sysfs/group.c:134 sysfs_create_group fs/sysfs/group.c:156 [inline] sysfs_create_groups fs/sysfs/group.c:183 [inline] sysfs_create_groups+0x92/0x130 fs/sysfs/group.c:173 device_add_groups drivers/base/core.c:1064 [inline] device_add_attrs drivers/base/core.c:1212 [inline] device_add+0x7e5/0x15c0 drivers/base/core.c:1902 netdev_register_kobject+0x181/0x410 net/core/net-sysfs.c:1627 register_netdevice+0x955/0xe40 net/core/dev.c:7668 __ip_tunnel_create+0x338/0x4a0 net/ipv4/ip_tunnel.c:280 ip_tunnel_init_net+0x247/0x4f0 net/ipv4/ip_tunnel.c:1037 ops_init+0xaa/0x3e0 net/core/net_namespace.c:118 setup_net+0x22f/0x530 net/core/net_namespace.c:296 copy_net_ns+0x19b/0x440 net/core/net_namespace.c:420 create_new_namespaces+0x375/0x720 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xa1/0x1d0 kernel/nsproxy.c:206 SYSC_unshare kernel/fork.c:2413 [inline] SyS_unshare+0x308/0x7f0 kernel/fork.c:2363 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f1d64144e99 RSP: 002b:00007f1d62aba168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007f1d64257f60 RCX: 00007f1d64144e99 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000042000000 RBP: 00007f1d6419eff1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1bac2a8f R14: 00007f1d62aba300 R15: 0000000000022000 Allocated by task 9897: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] sk_prot_alloc+0x1ba/0x290 net/core/sock.c:1484 sk_alloc+0x36/0xcd0 net/core/sock.c:1538 packet_create+0xf5/0x7f0 net/packet/af_packet.c:3295 __sock_create+0x303/0x620 net/socket.c:1275 sock_create net/socket.c:1315 [inline] SYSC_socket net/socket.c:1345 [inline] SyS_socket+0xd1/0x1b0 net/socket.c:1325 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 9897: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 sk_prot_free net/core/sock.c:1521 [inline] __sk_destruct+0x5e3/0x760 net/core/sock.c:1600 sk_destruct net/core/sock.c:1615 [inline] __sk_free+0xd9/0x2d0 net/core/sock.c:1623 sk_free+0x2b/0x40 net/core/sock.c:1634 sock_put include/net/sock.h:1664 [inline] packet_release+0x837/0xa80 net/packet/af_packet.c:3124 __sock_release+0xcd/0x2b0 net/socket.c:602 sock_close+0x15/0x20 net/socket.c:1139 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xa44/0x2850 kernel/exit.c:868 do_group_exit+0x100/0x2e0 kernel/exit.c:965 get_signal+0x38d/0x1ca0 kernel/signal.c:2412 do_signal+0x7c/0x1550 arch/x86/kernel/signal.c:792 exit_to_usermode_loop+0x160/0x200 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff8880422c0ec0 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 2088 bytes inside of 4096-byte region [ffff8880422c0ec0, ffff8880422c1ec0) The buggy address belongs to the page: page:ffffea000108b000 count:1 mapcount:0 mapping:ffff8880422c0ec0 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff8880422c0ec0 0000000000000000 0000000100000001 raw: ffffea00028bbfa0 ffffea000108b0a0 ffff88813fe74dc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880422c1580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880422c1600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880422c1680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880422c1700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880422c1780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================