==================================================================
BUG: KASAN: stack-out-of-bounds in profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42
Read of size 8 at addr ffffc90001a2f2a0 by task kworker/u4:3/54
CPU: 0 PID: 54 Comm: kworker/u4:3 Not tainted 5.17.0-rc7-syzkaller-00020-gea4424be1688 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106
print_address_description+0x65/0x3a0 mm/kasan/report.c:255
__kasan_report mm/kasan/report.c:442 [inline]
kasan_report+0x19a/0x1f0 mm/kasan/report.c:459
profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42
profile_tick+0xcd/0x120 kernel/profile.c:336
tick_sched_handle kernel/time/tick-sched.c:227 [inline]
tick_sched_timer+0x287/0x420 kernel/time/tick-sched.c:1428
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
__sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1103
sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 c2 49 b4 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 27 f1 3c f7 65 8b 05 88 67 e4 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc90001a2f2a0 EFLAGS: 00000206
RAX: a5201d48926b6400 RBX: 1ffff92000345e58 RCX: ffffffff81674de1
RDX: dffffc0000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: ffffc90001a2f330 R08: dffffc0000000000 R09: fffffbfff1ffbbc9
R10: fffffbfff1ffbbc9 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff92000345e54 R14: ffffc90001a2f2c0 R15: 0000000000000246
spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
get_partial_node+0x218/0x250 mm/slub.c:2182
get_partial mm/slub.c:2262 [inline]
___slab_alloc+0x386/0xc30 mm/slub.c:3013
__slab_alloc mm/slub.c:3105 [inline]
slab_alloc_node mm/slub.c:3196 [inline]
slab_alloc mm/slub.c:3238 [inline]
kmem_cache_alloc_trace+0x28c/0x330 mm/slub.c:3255
kmalloc include/linux/slab.h:581 [inline]
netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:643 [inline]
netdevice_event+0x3af/0x970 drivers/infiniband/core/roce_gid_mgmt.c:802
notifier_call_chain kernel/notifier.c:84 [inline]
raw_notifier_call_chain+0xe7/0x170 kernel/notifier.c:392
call_netdevice_notifiers_info net/core/dev.c:1919 [inline]
call_netdevice_notifiers_extack net/core/dev.c:1931 [inline]
call_netdevice_notifiers net/core/dev.c:1945 [inline]
unregister_netdevice_many+0xfae/0x19e0 net/core/dev.c:10415
unregister_netdevice_queue+0x2e6/0x350 net/core/dev.c:10349
unregister_netdevice include/linux/netdevice.h:2902 [inline]
nsim_destroy+0x44/0x140 drivers/net/netdevsim/netdev.c:382
__nsim_dev_port_del+0x152/0x1b0 drivers/net/netdevsim/dev.c:1429
nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1442 [inline]
nsim_dev_reload_destroy+0x2e1/0x500 drivers/net/netdevsim/dev.c:1650
nsim_dev_reload_down+0xfb/0x150 drivers/net/netdevsim/dev.c:964
devlink_reload+0x200/0x6d0 net/core/devlink.c:4072
devlink_pernet_pre_exit+0x1ab/0x350 net/core/devlink.c:11424
ops_pre_exit_list net/core/net_namespace.c:158 [inline]
cleanup_net+0x608/0xc70 net/core/net_namespace.c:585
process_one_work+0x86c/0x1190 kernel/workqueue.c:2307
worker_thread+0xab1/0x1300 kernel/workqueue.c:2454
kthread+0x2a3/0x2d0 kernel/kthread.c:377
ret_from_fork+0x1f/0x30
addr ffffc90001a2f2a0 is located in stack of task kworker/u4:3/54 at offset 0 in frame:
_raw_spin_unlock_irqrestore+0x0/0x130 kernel/locking/spinlock.c:187
this frame has 1 object:
[32, 40) 'flags.i.i.i.i'
Memory state around the buggy address:
ffffc90001a2f180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90001a2f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90001a2f280: 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 00 00 00 00
^
ffffc90001a2f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90001a2f380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: 9c pushfq
1: 8f 44 24 20 popq 0x20(%rsp)
5: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1)
a: 74 08 je 0x14
c: 4c 89 f7 mov %r14,%rdi
f: e8 c2 49 b4 f7 callq 0xf7b449d6
14: f6 44 24 21 02 testb $0x2,0x21(%rsp)
19: 75 4e jne 0x69
1b: 41 f7 c7 00 02 00 00 test $0x200,%r15d
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 27 f1 3c f7 callq 0xf73cf156 <-- trapping instruction
2f: 65 8b 05 88 67 e4 75 mov %gs:0x75e46788(%rip),%eax # 0x75e467be
36: 85 c0 test %eax,%eax
38: 74 3f je 0x79
3a: 48 rex.W
3b: c7 .byte 0xc7
3c: 04 24 add $0x24,%al
3e: 0e (bad)
3f: 36 ss