================================================================== 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/0:3/292 CPU: 0 PID: 292 Comm: kworker/0:3 Not tainted 5.15.150-syzkaller-00330-g9044d25b8ff5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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:update_stack_state+0x26a/0x460 arch/x86/kernel/unwind_frame.c:224 Code: ff ff 48 8b 45 d0 4c 8d 70 40 4d 89 f4 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df 41 80 3c 04 00 74 08 4c 89 f7 e8 a6 94 7d 00 <49> 83 3e 00 48 8b 45 a8 4c 8b ad 78 ff ff ff 74 22 44 3b 7d a4 75 RSP: 0018:ffffc90000007610 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffffc90000007788 RCX: ffffc90000a47f58 RDX: 1ffff92000000eee RSI: ffffc90000a47f48 RDI: ffffc900000077b8 RBP: ffffc900000076c8 R08: ffffc90000007848 R09: 0000000000000020 R10: ffffc90000007850 R11: dffffc0000000001 R12: 1ffff92000000ef4 R13: ffffc90000a48000 R14: ffffc900000077a0 R15: 0000000000000001 unwind_next_frame+0x3cb/0x700 arch/x86/kernel/unwind_frame.c:305 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/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] kmem_cache_free+0x116/0x2e0 mm/slub.c:3535 file_free_rcu+0x9f/0xb0 fs/file_table.c:50 rcu_do_batch+0x57a/0xc10 kernel/rcu/tree.c:2523 rcu_core+0x517/0x1020 kernel/rcu/tree.c:2763 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776 __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_map_delete net/core/sock_map.c:426 [inline] sock_map_delete_elem+0xcb/0x130 net/core/sock_map.c:448 bpf_prog_2c29ac5cdc6b1842+0x3a/0xf7c 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 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_common+0x9b/0xf0 kernel/sched/core.c:6688 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6713 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34 vprintk_emit+0x32f/0x340 kernel/printk/printk.c:2289 dev_vprintk_emit+0x2ad/0x326 drivers/base/core.c:4605 dev_printk_emit+0xd9/0x118 drivers/base/core.c:4616 __dev_printk+0x17d/0x1b0 drivers/base/core.c:4628 _dev_info+0x11e/0x165 drivers/base/core.c:4674 hub_port_init+0x18e3/0x2760 drivers/usb/core/hub.c:4928 hub_port_connect drivers/usb/core/hub.c:5432 [inline] hub_port_connect_change drivers/usb/core/hub.c:5643 [inline] port_event drivers/usb/core/hub.c:5793 [inline] hub_event+0x29b9/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: 0 PID: 292 Comm: kworker/0:3 Tainted: G B 5.15.150-syzkaller-00330-g9044d25b8ff5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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 7d 98 7c 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 87 96 7c 00 4c 8b 3b 66 44 89 65 RSP: 0018:ffffc90000007440 EFLAGS: 00010006 RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff88811d253b40 RDX: 0000000080010104 RSI: 0000000000000096 RDI: 00000000ffffffff RBP: ffffc900000074b0 R08: ffffffff8141701b R09: 0000000000000003 R10: fffffbfff0e5284c R11: dffffc0000000001 R12: 1ffff1103ee00000 R13: ffff8881f7137180 R14: 0000000000000001 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200bd038 CR3: 000000010e969000 CR4: 00000000003506b0 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:update_stack_state+0x26a/0x460 arch/x86/kernel/unwind_frame.c:224 Code: ff ff 48 8b 45 d0 4c 8d 70 40 4d 89 f4 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df 41 80 3c 04 00 74 08 4c 89 f7 e8 a6 94 7d 00 <49> 83 3e 00 48 8b 45 a8 4c 8b ad 78 ff ff ff 74 22 44 3b 7d a4 75 RSP: 0018:ffffc90000007610 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffffc90000007788 RCX: ffffc90000a47f58 RDX: 1ffff92000000eee RSI: ffffc90000a47f48 RDI: ffffc900000077b8 RBP: ffffc900000076c8 R08: ffffc90000007848 R09: 0000000000000020 R10: ffffc90000007850 R11: dffffc0000000001 R12: 1ffff92000000ef4 R13: ffffc90000a48000 R14: ffffc900000077a0 R15: 0000000000000001 unwind_next_frame+0x3cb/0x700 arch/x86/kernel/unwind_frame.c:305 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/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] kmem_cache_free+0x116/0x2e0 mm/slub.c:3535 file_free_rcu+0x9f/0xb0 fs/file_table.c:50 rcu_do_batch+0x57a/0xc10 kernel/rcu/tree.c:2523 rcu_core+0x517/0x1020 kernel/rcu/tree.c:2763 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776 __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_map_delete net/core/sock_map.c:426 [inline] sock_map_delete_elem+0xcb/0x130 net/core/sock_map.c:448 bpf_prog_2c29ac5cdc6b1842+0x3a/0xf7c 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 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_common+0x9b/0xf0 kernel/sched/core.c:6688 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6713 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34 vprintk_emit+0x32f/0x340 kernel/printk/printk.c:2289 dev_vprintk_emit+0x2ad/0x326 drivers/base/core.c:4605 dev_printk_emit+0xd9/0x118 drivers/base/core.c:4616 __dev_printk+0x17d/0x1b0 drivers/base/core.c:4628 _dev_info+0x11e/0x165 drivers/base/core.c:4674 hub_port_init+0x18e3/0x2760 drivers/usb/core/hub.c:4928 hub_port_connect drivers/usb/core/hub.c:5432 [inline] hub_port_connect_change drivers/usb/core/hub.c:5643 [inline] port_event drivers/usb/core/hub.c:5793 [inline] hub_event+0x29b9/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 c5388e52bf1783ae ]--- 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 7d 98 7c 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 87 96 7c 00 4c 8b 3b 66 44 89 65 RSP: 0018:ffffc90000007440 EFLAGS: 00010006 RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff88811d253b40 RDX: 0000000080010104 RSI: 0000000000000096 RDI: 00000000ffffffff RBP: ffffc900000074b0 R08: ffffffff8141701b R09: 0000000000000003 R10: fffffbfff0e5284c R11: dffffc0000000001 R12: 1ffff1103ee00000 R13: ffff8881f7137180 R14: 0000000000000001 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200bd038 CR3: 000000010e969000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: ff 48 8b decl -0x75(%rax) 3: 45 d0 4c 8d 70 rex.RB rorb 0x70(%r13,%rcx,4) 8: 40 rex 9: 4d 89 f4 mov %r14,%r12 c: 49 c1 ec 03 shr $0x3,%r12 10: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 17: fc ff df 1a: 41 80 3c 04 00 cmpb $0x0,(%r12,%rax,1) 1f: 74 08 je 0x29 21: 4c 89 f7 mov %r14,%rdi 24: e8 a6 94 7d 00 call 0x7d94cf * 29: 49 83 3e 00 cmpq $0x0,(%r14) <-- trapping instruction 2d: 48 8b 45 a8 mov -0x58(%rbp),%rax 31: 4c 8b ad 78 ff ff ff mov -0x88(%rbp),%r13 38: 74 22 je 0x5c 3a: 44 3b 7d a4 cmp -0x5c(%rbp),%r15d 3e: 75 .byte 0x75