protocol 88fb is buggy, dev hsr_slave_0 ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:193 [inline] BUG: KASAN: use-after-free in dev_queue_xmit_nit+0x896/0xa10 net/core/dev.c:2007 Read of size 8 at addr ffff888057bdbe30 by task syz-executor.1/26972 CPU: 1 PID: 26972 Comm: syz-executor.1 Not tainted 4.19.80 #0 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __read_once_size include/linux/compiler.h:193 [inline] dev_queue_xmit_nit+0x896/0xa10 net/core/dev.c:2007 xmit_one net/core/dev.c:3253 [inline] dev_hard_start_xmit+0xa7/0x980 net/core/dev.c:3273 __dev_queue_xmit+0x2704/0x2fe0 net/core/dev.c:3843 dev_queue_xmit+0x18/0x20 net/core/dev.c:3876 hsr_xmit net/hsr/hsr_forward.c:237 [inline] hsr_forward_do net/hsr/hsr_forward.c:295 [inline] hsr_forward_skb+0xd2e/0x1c10 net/hsr/hsr_forward.c:373 send_hsr_supervision_frame+0x8c8/0xf30 net/hsr/hsr_device.c:319 hsr_announce+0x12f/0x3b0 net/hsr/hsr_device.c:348 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:rcu_read_unlock_special+0x7a3/0xea0 kernel/rcu/tree_plugin.h:601 Code: 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 6d 06 00 00 48 83 3d 91 81 19 07 00 0f 84 21 02 00 00 48 8b 7d d0 57 9d <0f> 1f 44 00 00 48 83 c4 48 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 a4 RSP: 0018:ffff88805a407880 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff10e48c9 RBX: ffff8880ae92cfc0 RCX: 1ffff11013172551 RDX: dffffc0000000000 RSI: ffff888098b92a68 RDI: 0000000000000282 RBP: ffff88805a4078f0 R08: ffff888098b921c0 R09: ffff888098b92a88 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888098b921c0 R13: ffff888098b92534 R14: 0000000000000000 R15: ffff888098b92536 __rcu_read_unlock+0x161/0x170 kernel/rcu/tree_plugin.h:428 rcu_read_unlock include/linux/rcupdate.h:680 [inline] dput+0x2c5/0x670 fs/dcache.c:839 path_put fs/namei.c:484 [inline] put_link fs/namei.c:885 [inline] step_into fs/namei.c:1772 [inline] walk_component+0x9a8/0x2000 fs/namei.c:1829 link_path_walk.part.0+0x594/0x1330 fs/namei.c:2138 link_path_walk fs/namei.c:2072 [inline] path_parentat.isra.0+0x51/0x160 fs/namei.c:2366 filename_parentat.isra.0+0x19c/0x410 fs/namei.c:2388 filename_create+0xb3/0x4f0 fs/namei.c:3618 user_path_create fs/namei.c:3693 [inline] do_mkdirat+0xb5/0x2a0 fs/namei.c:3831 __do_sys_mkdirat fs/namei.c:3850 [inline] __se_sys_mkdirat fs/namei.c:3848 [inline] __x64_sys_mkdirat+0x76/0xb0 fs/namei.c:3848 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459cd9 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb6cec66c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459cd9 RDX: 00000000000001ff RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb6cec676d4 R13: 00000000004c63b3 R14: 00000000004db558 R15: 00000000ffffffff Allocated by task 26983: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15d/0x750 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] sk_prot_alloc+0x19c/0x2e0 net/core/sock.c:1466 sk_alloc+0x39/0xf70 net/core/sock.c:1520 packet_create+0x11e/0x860 net/packet/af_packet.c:3228 __sock_create+0x3d8/0x730 net/socket.c:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0x103/0x220 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1353 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 26982: save_stack+0x45/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:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 sk_prot_free net/core/sock.c:1503 [inline] __sk_destruct+0x4a2/0x680 net/core/sock.c:1583 sk_destruct+0xc8/0x100 net/core/sock.c:1598 __sk_free+0xce/0x300 net/core/sock.c:1609 sk_free+0x42/0x50 net/core/sock.c:1620 sock_put include/net/sock.h:1702 [inline] packet_release+0x927/0xc60 net/packet/af_packet.c:3057 __sock_release+0xce/0x2a0 net/socket.c:579 sock_close+0x1b/0x30 net/socket.c:1140 __fput+0x2dd/0x8b0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x145/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888057bdb640 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 2032 bytes inside of 2048-byte region [ffff888057bdb640, ffff888057bdbe40) The buggy address belongs to the page: page:ffffea00015ef680 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0xffff888057bdadc0 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffffea000286fd08 ffffea0001682a08 ffff88812c3f0c40 raw: ffff888057bdadc0 ffff888057bda540 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888057bdbd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888057bdbd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888057bdbe00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff888057bdbe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888057bdbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================