kthread+0x421/0x510 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
---[ end trace d875c30036f36f0d ]---
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:71 [inline]
BUG: KASAN: null-ptr-deref in atomic64_read include/linux/atomic/atomic-instrumented.h:605 [inline]
BUG: KASAN: null-ptr-deref in flush_tlb_func+0x43/0x550 arch/x86/mm/tlb.c:736
Read of size 8 at addr 0000000000000329 by task kworker/1:3/459
CPU: 1 PID: 459 Comm: kworker/1:3 Tainted: G W 5.15.149-syzkaller-00165-g85445b5a2107 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Workqueue: usb_hub_wq hub_event
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
__kasan_report mm/kasan/report.c:431 [inline]
kasan_report+0x16f/0x1c0 mm/kasan/report.c:444
kasan_check_range+0x293/0x2a0 mm/kasan/generic.c:189
__kasan_check_read+0x11/0x20 mm/kasan/shadow.c:31
instrument_atomic_read include/linux/instrumented.h:71 [inline]
atomic64_read include/linux/atomic/atomic-instrumented.h:605 [inline]
flush_tlb_func+0x43/0x550 arch/x86/mm/tlb.c:736
flush_smp_call_function_queue+0x222/0x6a0 kernel/smp.c:628
generic_smp_call_function_single_interrupt+0x13/0x20 kernel/smp.c:544
__sysvec_call_function_single+0x63/0x1b0 arch/x86/kernel/smp.c:248
sysvec_call_function_single+0x41/0xb0 arch/x86/kernel/smp.c:243
asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:646
RIP: 0010:find_stack lib/stackdepot.c:207 [inline]
RIP: 0010:__stack_depot_save+0x167/0x470 lib/stackdepot.c:304
Code: de eb 03 44 89 ff 48 8b 05 0e a5 ab 04 44 89 f1 81 e1 ff 0f 00 00 48 89 45 b0 48 89 4d b8 4c 8b 24 c8 4c 89 cb 41 89 df eb 04 <4d> 8b 24 24 4d 85 e4 74 2d 45 39 74 24 08 75 f0 41 39 5c 24 0c 75
RSP: 0018:ffffc900001d0478 EFLAGS: 00000287
RAX: ffff88823fe80000 RBX: 000000000000000b RCX: 0000000000000cb7
RDX: ffffc900001d0534 RSI: 0000000000000001 RDI: 0000000000000a20
RBP: ffffc900001d04d0 R08: 0000000000000001 R09: 000000000000000b
R10: ffffc900001d0450 R11: dffffc0000000001 R12: ffff8881183e8460
R13: ffffc900001d04e0 R14: 0000000011b34cb7 R15: 000000000000000b
kasan_save_stack mm/kasan/common.c:39 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:433 [inline]
__kasan_slab_alloc+0xc3/0xe0 mm/kasan/common.c:466
kasan_slab_alloc include/linux/kasan.h:217 [inline]
slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550
slab_alloc_node mm/slub.c:3240 [inline]
slab_alloc mm/slub.c:3248 [inline]
kmem_cache_alloc+0xf5/0x200 mm/slub.c:3253
__build_skb+0x2a/0x300 net/core/skbuff.c:242
build_skb+0x25/0x1f0 net/core/skbuff.c:259
page_to_skb+0x154/0xb40 drivers/net/virtio_net.c:440
receive_mergeable drivers/net/virtio_net.c:1070 [inline]
receive_buf+0xed6/0x5720 drivers/net/virtio_net.c:1180
virtnet_receive drivers/net/virtio_net.c:1472 [inline]
virtnet_poll+0x628/0x1260 drivers/net/virtio_net.c:1585
__napi_poll+0xc4/0x5a0 net/core/dev.c:7042
napi_poll net/core/dev.c:7109 [inline]
net_rx_action+0x47d/0xc50 net/core/dev.c:7196
__do_softirq+0x26d/0x5bf kernel/softirq.c:565
do_softirq+0xf6/0x150 kernel/softirq.c:452
__local_bh_enable_ip+0x75/0x80 kernel/softirq.c:379
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
_raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:210
sock_hash_delete_elem+0x2a2/0x2f0 net/core/sock_map.c:945
bpf_prog_bc4ba9860fbb0da4+0x3e/0x534
bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
__bpf_prog_run include/linux/filter.h:625 [inline]
bpf_prog_run include/linux/filter.h:632 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917
__bpf_trace_tlb_flush+0x23/0x30 include/trace/events/tlb.h:38
__traceiter_tlb_flush+0x77/0xd0 include/trace/events/tlb.h:38
trace_tlb_flush include/trace/events/tlb.h:38 [inline]
switch_mm_irqs_off+0x616/0x9b0 arch/x86/mm/tlb.c:629
context_switch kernel/sched/core.c:5137 [inline]
__schedule+0xb2b/0x1590 kernel/sched/core.c:6512
preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:6916
irqentry_exit_cond_resched+0x2a/0x30 kernel/entry/common.c:392
irqentry_exit+0x30/0x40 kernel/entry/common.c:426
sysvec_call_function_single+0x52/0xb0 arch/x86/kernel/smp.c:243
asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:646
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:114 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x17a/0x2a0 mm/kasan/generic.c:189
Code: 08 00 00 00 44 29 fb 49 01 d9 4d 29 ce 4d 89 f5 49 8d 5d 07 4d 85 ed 49 0f 49 dd 48 c1 eb 03 85 db 74 23 45 31 ff 4f 8b 34 39 <4d> 85 f6 75 48 49 83 c7 08 ff cb 75 ef 4d 29 ca 4d 29 fa 4d 01 da
RSP: 0018:ffffc90003db7270 EFLAGS: 00000202
RAX: 0000000000000101 RBX: 0000000000000004 RCX: ffffffff81b2435c
RDX: 0000000000000001 RSI: 0000000000000200 RDI: ffffc90003db72d0
RBP: ffffc90003db7298 R08: dffffc0000000000 R09: fffff520007b6e60
R10: 1ffff920007b6e99 R11: dffffc0000000001 R12: 1ffff920007b6e5a
R13: 000000000000003a R14: 0000000000000000 R15: 0000000000000018
memset+0x23/0x40 mm/kasan/shadow.c:44
kasan_save_stack mm/kasan/common.c:35 [inline]
kasan_set_track+0x3c/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1723 [inline]
slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
slab_free mm/slub.c:3519 [inline]
kfree+0xc8/0x220 mm/slub.c:4579
urb_destroy drivers/usb/core/urb.c:26 [inline]
kref_put include/linux/kref.h:65 [inline]
usb_free_urb+0xcf/0x110 drivers/usb/core/urb.c:96
usb_start_wait_urb+0x241/0x350 drivers/usb/core/message.c:80
usb_internal_control_msg drivers/usb/core/message.c:102 [inline]
usb_control_msg+0x2ad/0x4c0 drivers/usb/core/message.c:153
get_port_status drivers/usb/core/hub.c:592 [inline]
hub_ext_port_status+0xfe/0x6b0 drivers/usb/core/hub.c:609
hub_port_status drivers/usb/core/hub.c:631 [inline]
hub_port_debounce+0x2e8/0x470 drivers/usb/core/hub.c:4633
hub_port_debounce_be_stable drivers/usb/core/hub.h:170 [inline]
hub_port_connect drivers/usb/core/hub.c:5354 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5643 [inline]
port_event drivers/usb/core/hub.c:5793 [inline]
hub_event+0x1dd2/0x4770 drivers/usb/core/hub.c:5875
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
kthread+0x421/0x510 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
==================================================================
general protection fault, probably for non-canonical address 0xdffffc0000000065: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000328-0x000000000000032f]
CPU: 1 PID: 459 Comm: kworker/1:3 Tainted: G B W 5.15.149-syzkaller-00165-g85445b5a2107 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Workqueue: usb_hub_wq hub_event
RIP: 0010:arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline]
RIP: 0010:atomic64_read include/linux/atomic/atomic-instrumented.h:606 [inline]
RIP: 0010:flush_tlb_func+0x4a/0x550 arch/x86/mm/tlb.c:736
Code: 8b 35 2a 96 cd 7e 65 66 44 8b 25 31 96 cd 7e 49 8d 9e 28 03 00 00 48 89 df be 08 00 00 00 e8 fd 97 7c 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 07 96 7c 00 4c 8b 3b 66 44 89 65
RSP: 0018:ffffc900001d02a0 EFLAGS: 00010006
RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff888106fe4f00
RDX: 0000000080010104 RSI: 0000000000000096 RDI: 00000000ffffffff
RBP: ffffc900001d0310 R08: ffffffff8141701b R09: 0000000000000003
R10: fffffbfff0e5284c R11: dffffc0000000001 R12: 1ffff1103ee20000
R13: ffff8881f7037180 R14: 0000000000000001 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32833000 CR3: 0000000119185000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
flush_smp_call_function_queue+0x222/0x6a0 kernel/smp.c:628
generic_smp_call_function_single_interrupt+0x13/0x20 kernel/smp.c:544
__sysvec_call_function_single+0x63/0x1b0 arch/x86/kernel/smp.c:248
sysvec_call_function_single+0x41/0xb0 arch/x86/kernel/smp.c:243
asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:646
RIP: 0010:find_stack lib/stackdepot.c:207 [inline]
RIP: 0010:__stack_depot_save+0x167/0x470 lib/stackdepot.c:304
Code: de eb 03 44 89 ff 48 8b 05 0e a5 ab 04 44 89 f1 81 e1 ff 0f 00 00 48 89 45 b0 48 89 4d b8 4c 8b 24 c8 4c 89 cb 41 89 df eb 04 <4d> 8b 24 24 4d 85 e4 74 2d 45 39 74 24 08 75 f0 41 39 5c 24 0c 75
RSP: 0018:ffffc900001d0478 EFLAGS: 00000287
RAX: ffff88823fe80000 RBX: 000000000000000b RCX: 0000000000000cb7
RDX: ffffc900001d0534 RSI: 0000000000000001 RDI: 0000000000000a20
RBP: ffffc900001d04d0 R08: 0000000000000001 R09: 000000000000000b
R10: ffffc900001d0450 R11: dffffc0000000001 R12: ffff8881183e8460
R13: ffffc900001d04e0 R14: 0000000011b34cb7 R15: 000000000000000b
kasan_save_stack mm/kasan/common.c:39 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:433 [inline]
__kasan_slab_alloc+0xc3/0xe0 mm/kasan/common.c:466
kasan_slab_alloc include/linux/kasan.h:217 [inline]
slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550
slab_alloc_node mm/slub.c:3240 [inline]
slab_alloc mm/slub.c:3248 [inline]
kmem_cache_alloc+0xf5/0x200 mm/slub.c:3253
__build_skb+0x2a/0x300 net/core/skbuff.c:242
build_skb+0x25/0x1f0 net/core/skbuff.c:259
page_to_skb+0x154/0xb40 drivers/net/virtio_net.c:440
receive_mergeable drivers/net/virtio_net.c:1070 [inline]
receive_buf+0xed6/0x5720 drivers/net/virtio_net.c:1180
virtnet_receive drivers/net/virtio_net.c:1472 [inline]
virtnet_poll+0x628/0x1260 drivers/net/virtio_net.c:1585
__napi_poll+0xc4/0x5a0 net/core/dev.c:7042
napi_poll net/core/dev.c:7109 [inline]
net_rx_action+0x47d/0xc50 net/core/dev.c:7196
__do_softirq+0x26d/0x5bf kernel/softirq.c:565
do_softirq+0xf6/0x150 kernel/softirq.c:452
__local_bh_enable_ip+0x75/0x80 kernel/softirq.c:379
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
_raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:210
sock_hash_delete_elem+0x2a2/0x2f0 net/core/sock_map.c:945
bpf_prog_bc4ba9860fbb0da4+0x3e/0x534
bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
__bpf_prog_run include/linux/filter.h:625 [inline]
bpf_prog_run include/linux/filter.h:632 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917
__bpf_trace_tlb_flush+0x23/0x30 include/trace/events/tlb.h:38
__traceiter_tlb_flush+0x77/0xd0 include/trace/events/tlb.h:38
trace_tlb_flush include/trace/events/tlb.h:38 [inline]
switch_mm_irqs_off+0x616/0x9b0 arch/x86/mm/tlb.c:629
context_switch kernel/sched/core.c:5137 [inline]
__schedule+0xb2b/0x1590 kernel/sched/core.c:6512
preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:6916
irqentry_exit_cond_resched+0x2a/0x30 kernel/entry/common.c:392
irqentry_exit+0x30/0x40 kernel/entry/common.c:426
sysvec_call_function_single+0x52/0xb0 arch/x86/kernel/smp.c:243
asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:646
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:114 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x17a/0x2a0 mm/kasan/generic.c:189
Code: 08 00 00 00 44 29 fb 49 01 d9 4d 29 ce 4d 89 f5 49 8d 5d 07 4d 85 ed 49 0f 49 dd 48 c1 eb 03 85 db 74 23 45 31 ff 4f 8b 34 39 <4d> 85 f6 75 48 49 83 c7 08 ff cb 75 ef 4d 29 ca 4d 29 fa 4d 01 da
RSP: 0018:ffffc90003db7270 EFLAGS: 00000202
RAX: 0000000000000101 RBX: 0000000000000004 RCX: ffffffff81b2435c
RDX: 0000000000000001 RSI: 0000000000000200 RDI: ffffc90003db72d0
RBP: ffffc90003db7298 R08: dffffc0000000000 R09: fffff520007b6e60
R10: 1ffff920007b6e99 R11: dffffc0000000001 R12: 1ffff920007b6e5a
R13: 000000000000003a R14: 0000000000000000 R15: 0000000000000018
memset+0x23/0x40 mm/kasan/shadow.c:44
kasan_save_stack mm/kasan/common.c:35 [inline]
kasan_set_track+0x3c/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1723 [inline]
slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
slab_free mm/slub.c:3519 [inline]
kfree+0xc8/0x220 mm/slub.c:4579
urb_destroy drivers/usb/core/urb.c:26 [inline]
kref_put include/linux/kref.h:65 [inline]
usb_free_urb+0xcf/0x110 drivers/usb/core/urb.c:96
usb_start_wait_urb+0x241/0x350 drivers/usb/core/message.c:80
usb_internal_control_msg drivers/usb/core/message.c:102 [inline]
usb_control_msg+0x2ad/0x4c0 drivers/usb/core/message.c:153
get_port_status drivers/usb/core/hub.c:592 [inline]
hub_ext_port_status+0xfe/0x6b0 drivers/usb/core/hub.c:609
hub_port_status drivers/usb/core/hub.c:631 [inline]
hub_port_debounce+0x2e8/0x470 drivers/usb/core/hub.c:4633
hub_port_debounce_be_stable drivers/usb/core/hub.h:170 [inline]
hub_port_connect drivers/usb/core/hub.c:5354 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5643 [inline]
port_event drivers/usb/core/hub.c:5793 [inline]
hub_event+0x1dd2/0x4770 drivers/usb/core/hub.c:5875
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
kthread+0x421/0x510 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
Modules linked in:
---[ end trace d875c30036f36f0e ]---
RIP: 0010:arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline]
RIP: 0010:atomic64_read include/linux/atomic/atomic-instrumented.h:606 [inline]
RIP: 0010:flush_tlb_func+0x4a/0x550 arch/x86/mm/tlb.c:736
Code: 8b 35 2a 96 cd 7e 65 66 44 8b 25 31 96 cd 7e 49 8d 9e 28 03 00 00 48 89 df be 08 00 00 00 e8 fd 97 7c 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 07 96 7c 00 4c 8b 3b 66 44 89 65
RSP: 0018:ffffc900001d02a0 EFLAGS: 00010006
RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff888106fe4f00
RDX: 0000000080010104 RSI: 0000000000000096 RDI: 00000000ffffffff
RBP: ffffc900001d0310 R08: ffffffff8141701b R09: 0000000000000003
R10: fffffbfff0e5284c R11: dffffc0000000001 R12: 1ffff1103ee20000
R13: ffff8881f7037180 R14: 0000000000000001 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32833000 CR3: 0000000119185000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: de eb fsubrp %st,%st(3)
2: 03 44 89 ff add -0x1(%rcx,%rcx,4),%eax
6: 48 8b 05 0e a5 ab 04 mov 0x4aba50e(%rip),%rax # 0x4aba51b
d: 44 89 f1 mov %r14d,%ecx
10: 81 e1 ff 0f 00 00 and $0xfff,%ecx
16: 48 89 45 b0 mov %rax,-0x50(%rbp)
1a: 48 89 4d b8 mov %rcx,-0x48(%rbp)
1e: 4c 8b 24 c8 mov (%rax,%rcx,8),%r12
22: 4c 89 cb mov %r9,%rbx
25: 41 89 df mov %ebx,%r15d
28: eb 04 jmp 0x2e
* 2a: 4d 8b 24 24 mov (%r12),%r12 <-- trapping instruction
2e: 4d 85 e4 test %r12,%r12
31: 74 2d je 0x60
33: 45 39 74 24 08 cmp %r14d,0x8(%r12)
38: 75 f0 jne 0x2a
3a: 41 39 5c 24 0c cmp %ebx,0xc(%r12)
3f: 75 .byte 0x75