==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:68 [inline]
BUG: KASAN: null-ptr-deref in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline]
BUG: KASAN: null-ptr-deref in smc_tcp_syn_recv_sock+0x92/0x420 net/smc/af_smc.c:131
Read of size 4 at addr 00000000000009dc by task syz.4.60/6147
CPU: 1 UID: 0 PID: 6147 Comm: syz.4.60 Not tainted 6.15.0-syzkaller-09161-g0f70f5b08a47 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
kasan_report+0x118/0x150 mm/kasan/report.c:634
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:189
instrument_atomic_read include/linux/instrumented.h:68 [inline]
atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline]
smc_tcp_syn_recv_sock+0x92/0x420 net/smc/af_smc.c:131
tcp_check_req+0xf0e/0x1800 net/ipv4/tcp_minisocks.c:874
tcp_v4_rcv+0x184f/0x2f00 net/ipv4/tcp_ipv4.c:2283
ip_protocol_deliver_rcu+0x221/0x440 net/ipv4/ip_input.c:205
ip_local_deliver_finish+0x2fb/0x580 net/ipv4/ip_input.c:233
NF_HOOK+0x30c/0x3a0 include/linux/netfilter.h:317
NF_HOOK+0x30c/0x3a0 include/linux/netfilter.h:317
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x143/0x380 net/core/dev.c:6090
process_backlog+0x60e/0x14f0 net/core/dev.c:6442
__napi_poll+0xc4/0x480 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x707/0xe30 net/core/dev.c:7605
handle_softirqs+0x283/0x870 kernel/softirq.c:579
do_softirq+0xec/0x180 kernel/softirq.c:480
__local_bh_enable_ip+0x17d/0x1c0 kernel/softirq.c:407
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:910 [inline]
__dev_queue_xmit+0x1cd7/0x3a70 net/core/dev.c:4740
dev_queue_xmit include/linux/netdevice.h:3355 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip_finish_output2+0xd03/0x1160 net/ipv4/ip_output.c:235
ip_local_out net/ipv4/ip_output.c:129 [inline]
__ip_queue_xmit+0x1101/0x1b00 net/ipv4/ip_output.c:527
__tcp_transmit_skb+0x225c/0x36c0 net/ipv4/tcp_output.c:1479
tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:6619 [inline]
tcp_rcv_state_process+0x2aa3/0x4150 net/ipv4/tcp_input.c:6813
tcp_v4_do_rcv+0x3f2/0xce0 net/ipv4/tcp_ipv4.c:1948
sk_backlog_rcv include/net/sock.h:1148 [inline]
__release_sock+0x21c/0x350 net/core/sock.c:3213
release_sock+0x5f/0x1f0 net/core/sock.c:3767
mptcp_connect+0x81a/0xc10 net/mptcp/protocol.c:3695
__inet_stream_connect+0x298/0xf10 net/ipv4/af_inet.c:677
inet_stream_connect+0x66/0xa0 net/ipv4/af_inet.c:748
__sys_connect_file net/socket.c:2038 [inline]
__sys_connect+0x313/0x440 net/socket.c:2057
__do_sys_connect net/socket.c:2063 [inline]
__se_sys_connect net/socket.c:2060 [inline]
__ia32_sys_connect+0x7a/0x90 net/socket.c:2060
do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline]
__do_fast_syscall_32+0xb6/0x2b0 arch/x86/entry/syscall_32.c:306
do_fast_syscall_32+0x34/0x80 arch/x86/entry/syscall_32.c:331
entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf70ce539
Code: 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 002b:00000000f50be55c EFLAGS: 00000206 ORIG_RAX: 000000000000016a
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 0000000080000000
RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
==================================================================
----------------
Code disassembly (best guess):
0: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi
4: 10 07 adc %al,(%rdi)
6: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi
a: 10 08 adc %cl,(%rax)
c: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi
20: 00 51 52 add %dl,0x52(%rcx)
23: 55 push %rbp
24: 89 e5 mov %esp,%ebp
26: 0f 34 sysenter
28: cd 80 int $0x80
* 2a: 5d pop %rbp <-- trapping instruction
2b: 5a pop %rdx
2c: 59 pop %rcx
2d: c3 ret
2e: 90 nop
2f: 90 nop
30: 90 nop
31: 90 nop
32: 90 nop
33: 90 nop
34: 90 nop
35: 90 nop
36: 90 nop
37: 90 nop
38: 90 nop
39: 90 nop
3a: 90 nop
3b: 90 nop
3c: 90 nop
3d: 90 nop
3e: 90 nop
3f: 90 nop