==================================================================
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 syz-executor.3/11892
CPU: 1 PID: 11892 Comm: syz-executor.3 Tainted: G W 5.15.149-syzkaller-00131-g79bd336c7a94 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x57/0x80 kernel/locking/spinlock.c:194
Code: 8d 86 e8 ec 45 e9 fc 48 83 3d 2c 2b c4 01 00 74 35 48 89 df e8 5e bc 8b fc 66 90 41 f7 c6 00 02 00 00 74 01 fb bf 01 00 00 00 b4 ff 82 fc 65 8b 05 b5 43 39 7b 85 c0 74 05 5b 41 5e 5d c3 e8
RSP: 0018:ffffc900001d0d70 EFLAGS: 00000206
RAX: 0000000000000001 RBX: ffffffff869ab120 RCX: dffffc0000000000
RDX: ffffc900000e7d68 RSI: 0000000000000246 RDI: 0000000000000001
RBP: ffffc900001d0d80 R08: dffffc0000000000 R09: ffffed1021eac4f1
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc900000e7d68 R14: 0000000000000246 R15: ffffffff869ab120
swake_up_one+0x152/0x170 kernel/sched/swait.c:54
rcu_gp_kthread_wake kernel/rcu/tree.c:1481 [inline]
rcu_report_qs_rsp kernel/rcu/tree.c:2171 [inline]
rcu_report_qs_rnp+0x381/0x390 kernel/rcu/tree.c:2242
rcu_report_qs_rdp kernel/rcu/tree.c:2329 [inline]
rcu_check_quiescent_state kernel/rcu/tree.c:2366 [inline]
rcu_core+0xae2/0x1020 kernel/rcu/tree.c:2747
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/0xc40
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_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_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:206
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 83 f8
RSP: 0018:ffffc90000d17728 EFLAGS: 00050206
RAX: ffffffff82639401 RBX: 0000000020718ed4 RCX: 0000000000002ed4
RDX: 0000000000008000 RSI: 0000000020716000 RDI: ffff88810f24512c
RBP: ffffc90000d177a8 R08: dffffc0000000000 R09: ffffed1021e49000
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000008000
R13: ffff88810f240000 R14: 0000000000008000 R15: 0000000020710ed4
skb_copy_datagram_from_iter+0x2f3/0x6d0 net/core/datagram.c:579
unix_stream_sendmsg+0x78f/0x1060 net/unix/af_unix.c:2093
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431
___sys_sendmsg+0x252/0x2e0 net/socket.c:2485
__sys_sendmsg net/socket.c:2514 [inline]
__do_sys_sendmsg net/socket.c:2523 [inline]
__se_sys_sendmsg+0x19a/0x260 net/socket.c:2521
__x64_sys_sendmsg+0x7b/0x90 net/socket.c:2521
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f1a11dc5ea9
Code: Unable to access opcode bytes at RIP 0x7f1a11dc5e7f.
RSP: 002b:00007f1a111400c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f1a11efcf80 RCX: 00007f1a11dc5ea9
RDX: 0000000000000000 RSI: 0000000020001580 RDI: 0000000000000009
RBP: 00007f1a11e34ff4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f1a11efcf80 R15: 00007fff8a912168
==================================================================
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: 11892 Comm: syz-executor.3 Tainted: G B W 5.15.149-syzkaller-00131-g79bd336c7a94 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
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 6a 97 cd 7e 65 66 44 8b 25 71 97 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:ffffc900001d0ba0 EFLAGS: 00010006
RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff888116dfbb40
RDX: 0000000080010105 RSI: 0000000000000096 RDI: 00000000ffffffff
RBP: ffffc900001d0c10 R08: ffffffff81416edb R09: 0000000000000003
R10: fffffbfff0e5284c R11: dffffc0000000001 R12: 1ffff1103ee20000
R13: ffff8881f7037180 R14: 0000000000000001 R15: dffffc0000000000
FS: 00007f1a111406c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000010e6fc000 CR4: 00000000003506a0
DR0: 0000000020000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x57/0x80 kernel/locking/spinlock.c:194
Code: 8d 86 e8 ec 45 e9 fc 48 83 3d 2c 2b c4 01 00 74 35 48 89 df e8 5e bc 8b fc 66 90 41 f7 c6 00 02 00 00 74 01 fb bf 01 00 00 00 b4 ff 82 fc 65 8b 05 b5 43 39 7b 85 c0 74 05 5b 41 5e 5d c3 e8
RSP: 0018:ffffc900001d0d70 EFLAGS: 00000206
RAX: 0000000000000001 RBX: ffffffff869ab120 RCX: dffffc0000000000
RDX: ffffc900000e7d68 RSI: 0000000000000246 RDI: 0000000000000001
RBP: ffffc900001d0d80 R08: dffffc0000000000 R09: ffffed1021eac4f1
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc900000e7d68 R14: 0000000000000246 R15: ffffffff869ab120
swake_up_one+0x152/0x170 kernel/sched/swait.c:54
rcu_gp_kthread_wake kernel/rcu/tree.c:1481 [inline]
rcu_report_qs_rsp kernel/rcu/tree.c:2171 [inline]
rcu_report_qs_rnp+0x381/0x390 kernel/rcu/tree.c:2242
rcu_report_qs_rdp kernel/rcu/tree.c:2329 [inline]
rcu_check_quiescent_state kernel/rcu/tree.c:2366 [inline]
rcu_core+0xae2/0x1020 kernel/rcu/tree.c:2747
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/0xc40
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_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_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:206
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 83 f8
RSP: 0018:ffffc90000d17728 EFLAGS: 00050206
RAX: ffffffff82639401 RBX: 0000000020718ed4 RCX: 0000000000002ed4
RDX: 0000000000008000 RSI: 0000000020716000 RDI: ffff88810f24512c
RBP: ffffc90000d177a8 R08: dffffc0000000000 R09: ffffed1021e49000
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000008000
R13: ffff88810f240000 R14: 0000000000008000 R15: 0000000020710ed4
skb_copy_datagram_from_iter+0x2f3/0x6d0 net/core/datagram.c:579
unix_stream_sendmsg+0x78f/0x1060 net/unix/af_unix.c:2093
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431
___sys_sendmsg+0x252/0x2e0 net/socket.c:2485
__sys_sendmsg net/socket.c:2514 [inline]
__do_sys_sendmsg net/socket.c:2523 [inline]
__se_sys_sendmsg+0x19a/0x260 net/socket.c:2521
__x64_sys_sendmsg+0x7b/0x90 net/socket.c:2521
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f1a11dc5ea9
Code: Unable to access opcode bytes at RIP 0x7f1a11dc5e7f.
RSP: 002b:00007f1a111400c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f1a11efcf80 RCX: 00007f1a11dc5ea9
RDX: 0000000000000000 RSI: 0000000020001580 RDI: 0000000000000009
RBP: 00007f1a11e34ff4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f1a11efcf80 R15: 00007fff8a912168
Modules linked in:
---[ end trace e80ae4a2a04fba93 ]---
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 6a 97 cd 7e 65 66 44 8b 25 71 97 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:ffffc900001d0ba0 EFLAGS: 00010006
RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff888116dfbb40
RDX: 0000000080010105 RSI: 0000000000000096 RDI: 00000000ffffffff
RBP: ffffc900001d0c10 R08: ffffffff81416edb R09: 0000000000000003
R10: fffffbfff0e5284c R11: dffffc0000000001 R12: 1ffff1103ee20000
R13: ffff8881f7037180 R14: 0000000000000001 R15: dffffc0000000000
FS: 00007f1a111406c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000010e6fc000 CR4: 00000000003506a0
DR0: 0000000020000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
0: 8d 86 e8 ec 45 e9 lea -0x16ba1318(%rsi),%eax
6: fc cld
7: 48 83 3d 2c 2b c4 01 cmpq $0x0,0x1c42b2c(%rip) # 0x1c42b3b
e: 00
f: 74 35 je 0x46
11: 48 89 df mov %rbx,%rdi
14: e8 5e bc 8b fc call 0xfc8bbc77
19: 66 90 xchg %ax,%ax
1b: 41 f7 c6 00 02 00 00 test $0x200,%r14d
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 b4 ff 82 fc call 0xfc82ffe3 <-- trapping instruction
2f: 65 8b 05 b5 43 39 7b mov %gs:0x7b3943b5(%rip),%eax # 0x7b3943eb
36: 85 c0 test %eax,%eax
38: 74 05 je 0x3f
3a: 5b pop %rbx
3b: 41 5e pop %r14
3d: 5d pop %rbp
3e: c3 ret
3f: e8 .byte 0xe8