SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pid=7928 comm=syz-executor.2 ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:183 [inline] BUG: KASAN: use-after-free in deliver_ptype_list_skb net/core/dev.c:1892 [inline] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2547/0x2c10 net/core/dev.c:4466 Read of size 8 at addr ffff88808cdc54a8 by task syz-executor.2/7918 CPU: 1 PID: 7918 Comm: syz-executor.2 Not tainted 4.14.184-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/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/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+0xa9/0x2b9 mm/kasan/report.c:393 __read_once_size include/linux/compiler.h:183 [inline] deliver_ptype_list_skb net/core/dev.c:1892 [inline] __netif_receive_skb_core+0x2547/0x2c10 net/core/dev.c:4466 __netif_receive_skb+0x27/0x1a0 net/core/dev.c:4516 process_backlog+0x20c/0x760 net/core/dev.c:5198 napi_poll net/core/dev.c:5599 [inline] net_rx_action+0x456/0xe80 net/core/dev.c:5665 __do_softirq+0x254/0x9bf kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x15b/0x1a0 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:648 [inline] smp_apic_timer_interrupt+0x141/0x5f0 arch/x86/kernel/apic/apic.c:1102 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xa3/0xe0 kernel/locking/spinlock.c:192 RSP: 0018:ffff88804fb56d10 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff0f62cd1 RBX: 0000000000000282 RCX: 1ffff11011a8ed2a RDX: dffffc0000000000 RSI: ffff88808d476958 RDI: 0000000000000282 RBP: ffffffff87b880a0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88808d476418 R14: 0000000000000000 R15: ffffffff87b86f68 rcu_read_unlock_special+0x89e/0xd50 kernel/rcu/tree_plugin.h:526 __rcu_read_unlock+0x158/0x160 kernel/rcu/update.c:260 rcu_read_unlock include/linux/rcupdate.h:684 [inline] is_bpf_text_address+0x86/0x120 kernel/bpf/core.c:458 kernel_text_address+0x6e/0xe0 kernel/extable.c:150 __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+0x7b/0xd0 arch/x86/kernel/stacktrace.c:45 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slab.c:3333 [inline] kmem_cache_alloc_node_trace+0x13d/0x400 mm/slab.c:3659 __do_kmalloc_node mm/slab.c:3681 [inline] __kmalloc_node_track_caller+0x38/0x70 mm/slab.c:3696 __kmalloc_reserve.isra.0+0x35/0xd0 net/core/skbuff.c:137 __alloc_skb+0xca/0x4c0 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:980 [inline] kobject_uevent_env+0x6d1/0xc50 lib/kobject_uevent.c:479 rx_queue_add_kobject net/core/net-sysfs.c:931 [inline] net_rx_queue_update_kobjects+0xcd/0x3e0 net/core/net-sysfs.c:953 register_queue_kobjects net/core/net-sysfs.c:1401 [inline] netdev_register_kobject+0x26e/0x390 net/core/net-sysfs.c:1612 register_netdevice+0x811/0xca0 net/core/dev.c:7663 hsr_dev_finalize+0x57b/0x7fe net/hsr/hsr_device.c:492 hsr_newlink+0x259/0x3a0 net/hsr/hsr_netlink.c:78 rtnl_newlink+0xecb/0x1720 net/core/rtnetlink.c:2728 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4315 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x64a/0xbb0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x70a/0x840 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45cba9 RSP: 002b:00007f7d2d8c8c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000504460 RCX: 000000000045cba9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000a8d R14: 00000000004cd624 R15: 00007f7d2d8c96d4 Allocated by task 7913: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 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:1467 sk_alloc+0x36/0xd30 net/core/sock.c:1521 packet_create+0xf5/0x7e0 net/packet/af_packet.c:3283 __sock_create+0x2f2/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 7911: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xaf/0x190 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 sk_prot_free net/core/sock.c:1504 [inline] __sk_destruct+0x4f5/0x640 net/core/sock.c:1581 sk_destruct+0x97/0xc0 net/core/sock.c:1596 __sk_free+0x4c/0x220 net/core/sock.c:1604 sk_free+0x2b/0x40 net/core/sock.c:1615 sock_put include/net/sock.h:1658 [inline] packet_release+0x8c4/0xb70 net/packet/af_packet.c:3112 __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+0x113/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 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 ffff88808cdc4cc0 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 2024 bytes inside of 2048-byte region [ffff88808cdc4cc0, ffff88808cdc54c0) The buggy address belongs to the page: page:ffffea0002337100 count:1 mapcount:0 mapping:ffff88808cdc4440 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff88808cdc4440 0000000000000000 0000000100000003 raw: ffffea00022b2920 ffffea00014a62a0 ffff8880aa800c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808cdc5380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808cdc5400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88808cdc5480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88808cdc5500: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff88808cdc5580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================