bridge1: port 1(bridge_slave_0) entered blocking state
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 ffff88808f8b3f30 by task syz-executor.2/12060
CPU: 0 PID: 12060 Comm: syz-executor.2 Not tainted 4.19.82 #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
bridge1: port 1(bridge_slave_0) entered disabled state
__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
device bridge_slave_0 entered promiscuous mode
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:__rcu_read_unlock+0x103/0x170 kernel/rcu/tree_plugin.h:430
Code: 83 c0 03 38 d0 7c 04 84 d2 75 64 8b 83 74 03 00 00 85 c0 75 6b 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 0f b6 04 02 <84> c0 74 04 3c 03 7e 44 c7 83 70 03 00 00 00 00 00 00 e9 32 ff ff
RSP: 0018:ffff8880675ff660 EFLAGS: 00000a02 ORIG_RAX: ffffffffffffff13
selinux_nlmsg_perm: 35 callbacks suppressed
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
RAX: 0000000000000000 RBX: ffff888076092680 RCX: ffffffff815903c1
RDX: 1ffff1100ec1253e RSI: 0000000000000004 RDI: ffff8880760929f4
RBP: ffff8880675ff670 R08: 1ffff11015d04732 R09: ffffed1015d04733
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffff8880760929f0
R13: ffffea0001d473c8 R14: 0000000000000000 R15: dead000000000100
rcu_read_unlock include/linux/rcupdate.h:680 [inline]
__unlock_page_memcg+0x58/0x100 mm/memcontrol.c:1953
unlock_page_memcg+0x2c/0x40 mm/memcontrol.c:1962
page_remove_file_rmap mm/rmap.c:1249 [inline]
page_remove_rmap+0x57b/0x12c0 mm/rmap.c:1300
zap_pte_range mm/memory.c:1338 [inline]
zap_pmd_range mm/memory.c:1440 [inline]
zap_pud_range mm/memory.c:1469 [inline]
zap_p4d_range mm/memory.c:1490 [inline]
unmap_page_range+0xd80/0x1e70 mm/memory.c:1511
unmap_single_vma+0x19d/0x300 mm/memory.c:1556
unmap_vmas+0xae/0x180 mm/memory.c:1586
exit_mmap+0x2c2/0x530 mm/mmap.c:3097
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
__mmput kernel/fork.c:1010 [inline]
mmput+0x15f/0x4c0 kernel/fork.c:1031
exit_mm kernel/exit.c:546 [inline]
do_exit+0x899/0x2fa0 kernel/exit.c:863
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
do_group_exit+0x135/0x370 kernel/exit.c:979
get_signal+0x3ec/0x1fc0 kernel/signal.c:2574
do_signal+0x95/0x1960 arch/x86/kernel/signal.c:821
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
exit_to_usermode_loop+0x244/0x2c0 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:271 [inline]
do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45a219
Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc6711f2cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000075bf28 RCX: 000000000045a219
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000075bf28
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000075bf2c
R13: 00007ffcfded647f R14: 00007fc6711f39c0 R15: 000000000075bf2c
Allocated by task 12321:
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
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
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 12302:
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
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=12516 comm=syz-executor.1
__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 ffff88808f8b3740
which belongs to the cache kmalloc-2048 of size 2048
The buggy address is located 2032 bytes inside of
2048-byte region [ffff88808f8b3740, ffff88808f8b3f40)
The buggy address belongs to the page:
page:ffffea00023e2c80 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0x0 compound_mapcount: 0
kobject: 'tx-0' (0000000087830406): fill_kobj_path: path = '/devices/virtual/net/bridge2/queues/tx-0'
flags: 0x1fffc0000008100(slab|head)
raw: 01fffc0000008100 ffffea0001a70508 ffffea000285c908 ffff88812c3f0c40
raw: 0000000000000000 ffff88808f8b2640 0000000100000003 0000000000000000
page dumped because: kasan: bad access detected
kobject: 'brif' (0000000078e7083a): kobject_add_internal: parent: 'bridge2', set: ''
Memory state around the buggy address:
ffff88808f8b3e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88808f8b3e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88808f8b3f00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
kobject: 'batman_adv' (00000000d0552148): kobject_add_internal: parent: 'bridge2', set: ''
^
ffff88808f8b3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88808f8b4000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
kobject: 'loop5' (00000000e382657e): kobject_uevent_env
==================================================================
kobject: 'loop5' (00000000e382657e): fill_kobj_path: path = '/devices/virtual/block/loop5'
kobject: 'bridge3' (00000000c8c9d8de): kobject_add_internal: parent: 'net', set: 'devices'