==================================================================
BUG: KASAN: slab-out-of-bounds in taprio_dequeue_from_txq+0x83e/0x940 net/sched/sch_taprio.c:712
Read of size 8 at addr ffff88801d2ca980 by task kworker/0:1/14
CPU: 0 PID: 14 Comm: kworker/0:1 Not tainted 6.3.0-rc6-syzkaller-00138-g44149752e998 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Workqueue: rcu_gp wait_rcu_exp_gp
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:319
print_report mm/kasan/report.c:430 [inline]
kasan_report+0x11c/0x130 mm/kasan/report.c:536
taprio_dequeue_from_txq+0x83e/0x940 net/sched/sch_taprio.c:712
taprio_dequeue_tc_priority+0x277/0x450 net/sched/sch_taprio.c:793
taprio_dequeue+0x12c/0x5e0 net/sched/sch_taprio.c:860
dequeue_skb net/sched/sch_generic.c:292 [inline]
qdisc_restart net/sched/sch_generic.c:397 [inline]
__qdisc_run+0x1b2/0x1650 net/sched/sch_generic.c:415
qdisc_run include/net/pkt_sched.h:126 [inline]
qdisc_run include/net/pkt_sched.h:123 [inline]
net_tx_action+0x6e3/0xc20 net/core/dev.c:5077
__do_softirq+0x1d4/0x905 kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x114/0x190 kernel/softirq.c:650
irq_exit_rcu+0x9/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194
Code: 74 24 10 e8 c6 6c 61 f7 48 89 ef e8 5e d9 61 f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 3f 11 54 f7 65 8b 05 00 7d 00 76 85 c0 74 0a 5b 5d c3 e8 ec 37
RSP: 0018:ffffc90000137af0 EFLAGS: 00000206
RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff229b4b6
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffffff8c7a0408 R08: 0000000000000001 R09: ffffffff914d2b97
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000246
spin_unlock_irqrestore include/linux/spinlock.h:405 [inline]
__wake_up_common_lock+0xe2/0x140 kernel/sched/wait.c:140
rcu_exp_wait_wake+0x1a5/0x1620 kernel/rcu/tree_exp.h:710
process_one_work+0x991/0x15c0 kernel/workqueue.c:2390
worker_thread+0x669/0x1090 kernel/workqueue.c:2537
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
Allocated by task 5647:
kasan_save_stack+0x22/0x40 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
____kasan_kmalloc mm/kasan/common.c:333 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:967 [inline]
__kmalloc+0x5e/0x190 mm/slab_common.c:980
kmalloc_array include/linux/slab.h:636 [inline]
kcalloc include/linux/slab.h:667 [inline]
taprio_init+0x319/0x8c0 net/sched/sch_taprio.c:2046
qdisc_create+0x4d1/0x1040 net/sched/sch_api.c:1295
tc_modify_qdisc+0x488/0x1a40 net/sched/sch_api.c:1680
rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6181
netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2577
netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365
netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942
sock_sendmsg_nosec net/socket.c:724 [inline]
sock_sendmsg+0xde/0x190 net/socket.c:747
____sys_sendmsg+0x71c/0x900 net/socket.c:2501
___sys_sendmsg+0x110/0x1b0 net/socket.c:2555
__sys_sendmsg+0xf7/0x1c0 net/socket.c:2584
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88801d2ca900
which belongs to the cache kmalloc-128 of size 128
The buggy address is located 0 bytes to the right of
allocated 128-byte region [ffff88801d2ca900, ffff88801d2ca980)
The buggy address belongs to the physical page:
page:ffffea000074b280 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1d2ca
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 ffff8880124418c0 dead000000000122 0000000000000000
raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 5547, tgid 5547 (syz-executor.0), ts 87494360726, free_ts 87493847201
prep_new_page mm/page_alloc.c:2553 [inline]
get_page_from_freelist+0x1190/0x2e20 mm/page_alloc.c:4326
__alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:5592
alloc_pages+0x1aa/0x270 mm/mempolicy.c:2283
alloc_slab_page mm/slub.c:1851 [inline]
allocate_slab+0x25f/0x390 mm/slub.c:1998
new_slab mm/slub.c:2051 [inline]
___slab_alloc+0xa91/0x1400 mm/slub.c:3193
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3292
__slab_alloc_node mm/slub.c:3345 [inline]
slab_alloc_node mm/slub.c:3442 [inline]
__kmem_cache_alloc_node+0x136/0x320 mm/slub.c:3491
kmalloc_trace+0x26/0xe0 mm/slab_common.c:1061
kmalloc include/linux/slab.h:580 [inline]
__hw_addr_create net/core/dev_addr_lists.c:60 [inline]
__hw_addr_add_ex+0x22d/0x7f0 net/core/dev_addr_lists.c:118
__dev_mc_add net/core/dev_addr_lists.c:867 [inline]
dev_mc_add+0xc1/0x110 net/core/dev_addr_lists.c:885
ip_mc_filter_add net/ipv4/igmp.c:1152 [inline]
igmp_group_added+0x766/0x930 net/ipv4/igmp.c:1341
____ip_mc_inc_group+0x5d6/0xd30 net/ipv4/igmp.c:1475
__ip_mc_inc_group net/ipv4/igmp.c:1484 [inline]
ip_mc_inc_group net/ipv4/igmp.c:1490 [inline]
ip_mc_up+0x14f/0x3a0 net/ipv4/igmp.c:1789
inetdev_event+0xbed/0x1720 net/ipv4/devinet.c:1578
notifier_call_chain+0xb5/0x200 kernel/notifier.c:87
call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1937
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1454 [inline]
free_pcp_prepare+0x5d5/0xa50 mm/page_alloc.c:1504
free_unref_page_prepare mm/page_alloc.c:3388 [inline]
free_unref_page+0x1d/0x490 mm/page_alloc.c:3483
qlink_free mm/kasan/quarantine.c:168 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187
kasan_quarantine_reduce+0x192/0x220 mm/kasan/quarantine.c:294
__kasan_slab_alloc+0x63/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:186 [inline]
slab_post_alloc_hook mm/slab.h:769 [inline]
slab_alloc_node mm/slub.c:3452 [inline]
__kmem_cache_alloc_node+0x17c/0x320 mm/slub.c:3491
kmalloc_trace+0x26/0xe0 mm/slab_common.c:1061
kmalloc include/linux/slab.h:580 [inline]
netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:643 [inline]
netdevice_event+0x368/0x8f0 drivers/infiniband/core/roce_gid_mgmt.c:802
notifier_call_chain+0xb5/0x200 kernel/notifier.c:87
call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1937
call_netdevice_notifiers_extack net/core/dev.c:1975 [inline]
call_netdevice_notifiers net/core/dev.c:1989 [inline]
__dev_notify_flags+0x120/0x2d0 net/core/dev.c:8567
dev_change_flags+0x11b/0x170 net/core/dev.c:8605
do_setlink+0x9f4/0x3d30 net/core/rtnetlink.c:2833
__rtnl_newlink+0xd69/0x1840 net/core/rtnetlink.c:3623
rtnl_newlink+0x68/0xa0 net/core/rtnetlink.c:3670
rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6181
Memory state around the buggy address:
ffff88801d2ca880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88801d2ca900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88801d2ca980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88801d2caa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88801d2caa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 24 10 and $0x10,%al
2: e8 c6 6c 61 f7 callq 0xf7616ccd
7: 48 89 ef mov %rbp,%rdi
a: e8 5e d9 61 f7 callq 0xf761d96d
f: 81 e3 00 02 00 00 and $0x200,%ebx
15: 75 25 jne 0x3c
17: 9c pushfq
18: 58 pop %rax
19: f6 c4 02 test $0x2,%ah
1c: 75 2d jne 0x4b
1e: 48 85 db test %rbx,%rbx
21: 74 01 je 0x24
23: fb sti
24: bf 01 00 00 00 mov $0x1,%edi
* 29: e8 3f 11 54 f7 callq 0xf754116d <-- trapping instruction
2e: 65 8b 05 00 7d 00 76 mov %gs:0x76007d00(%rip),%eax # 0x76007d35
35: 85 c0 test %eax,%eax
37: 74 0a je 0x43
39: 5b pop %rbx
3a: 5d pop %rbp
3b: c3 retq
3c: e8 .byte 0xe8
3d: ec in (%dx),%al
3e: 37 (bad)