==================================================================
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+0xa7/0x4b0 net/smc/af_smc.c:131
Read of size 4 at addr 00000000000009d4 by task syz.3.146/6503
CPU: 1 UID: 0 PID: 6503 Comm: syz.3.146 Not tainted 6.14.0-rc1-syzkaller-00235-g9946eaf552b1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
kasan_report+0xd9/0x110 mm/kasan/report.c:602
check_region_inline mm/kasan/generic.c:183 [inline]
kasan_check_range+0xef/0x1a0 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+0xa7/0x4b0 net/smc/af_smc.c:131
tcp_check_req+0x9ae/0x1fb0 net/ipv4/tcp_minisocks.c:867
tcp_v4_rcv+0x1800/0x4380 net/ipv4/tcp_ipv4.c:2274
ip_protocol_deliver_rcu+0xba/0x4c0 net/ipv4/ip_input.c:205
ip_local_deliver_finish+0x316/0x570 net/ipv4/ip_input.c:233
NF_HOOK include/linux/netfilter.h:314 [inline]
NF_HOOK include/linux/netfilter.h:308 [inline]
ip_local_deliver+0x18e/0x1f0 net/ipv4/ip_input.c:254
dst_input include/net/dst.h:469 [inline]
ip_rcv_finish net/ipv4/ip_input.c:447 [inline]
NF_HOOK include/linux/netfilter.h:314 [inline]
NF_HOOK include/linux/netfilter.h:308 [inline]
ip_rcv+0x2c3/0x5d0 net/ipv4/ip_input.c:567
__netif_receive_skb_one_core+0x199/0x1e0 net/core/dev.c:5828
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5941
process_backlog+0x443/0x15f0 net/core/dev.c:6289
__napi_poll.constprop.0+0xba/0x550 net/core/dev.c:7106
napi_poll net/core/dev.c:7175 [inline]
net_rx_action+0xa94/0x1010 net/core/dev.c:7297
handle_softirqs+0x216/0x8f0 kernel/softirq.c:561
do_softirq kernel/softirq.c:462 [inline]
do_softirq+0xb2/0xf0 kernel/softirq.c:449
__local_bh_enable_ip+0x100/0x120 kernel/softirq.c:389
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:919 [inline]
__dev_queue_xmit+0x8b0/0x43e0 net/core/dev.c:4611
dev_queue_xmit include/linux/netdevice.h:3305 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip_finish_output2+0xc34/0x2180 net/ipv4/ip_output.c:236
__ip_finish_output net/ipv4/ip_output.c:314 [inline]
__ip_finish_output+0x49e/0x950 net/ipv4/ip_output.c:296
ip_finish_output+0x35/0x380 net/ipv4/ip_output.c:324
NF_HOOK_COND include/linux/netfilter.h:303 [inline]
ip_output+0x13b/0x2a0 net/ipv4/ip_output.c:434
dst_output include/net/dst.h:459 [inline]
ip_local_out net/ipv4/ip_output.c:130 [inline]
__ip_queue_xmit+0x19e0/0x2070 net/ipv4/ip_output.c:528
__tcp_transmit_skb+0x2b39/0x3ec0 net/ipv4/tcp_output.c:1471
__tcp_send_ack.part.0+0x390/0x6f0 net/ipv4/tcp_output.c:4275
__tcp_send_ack net/ipv4/tcp_output.c:4281 [inline]
tcp_send_ack+0x82/0xa0 net/ipv4/tcp_output.c:4281
tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:6594 [inline]
tcp_rcv_state_process+0x4095/0x4c40 net/ipv4/tcp_input.c:6788
tcp_v4_do_rcv+0x1ad/0xa90 net/ipv4/tcp_ipv4.c:1941
sk_backlog_rcv include/net/sock.h:1122 [inline]
__release_sock+0x31b/0x400 net/core/sock.c:3106
release_sock+0x5a/0x220 net/core/sock.c:3660
mptcp_connect+0xc14/0xee0 net/mptcp/protocol.c:3810
__inet_stream_connect+0x3ca/0x1020 net/ipv4/af_inet.c:677
inet_stream_connect+0x57/0xa0 net/ipv4/af_inet.c:748
__sys_connect_file+0x141/0x1a0 net/socket.c:2045
__sys_connect+0x14f/0x170 net/socket.c:2064
__do_sys_connect net/socket.c:2070 [inline]
__se_sys_connect net/socket.c:2067 [inline]
__x64_sys_connect+0x72/0xb0 net/socket.c:2067
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe8d258cde9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe8d3372038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007fe8d27a5fa0 RCX: 00007fe8d258cde9
RDX: 0000000000000010 RSI: 0000400000000000 RDI: 0000000000000004
RBP: 00007fe8d260e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe8d27a5fa0 R15: 00007fff2a2610e8
==================================================================
vkms_vblank_simulate: vblank timer overrun
Oops: general protection fault, probably for non-canonical address 0xdffffc000000013a: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x00000000000009d0-0x00000000000009d7]
CPU: 1 UID: 0 PID: 6503 Comm: syz.3.146 Tainted: G B 6.14.0-rc1-syzkaller-00235-g9946eaf552b1 #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline]
RIP: 0010:raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline]
RIP: 0010:atomic_read include/linux/atomic/atomic-instrumented.h:33 [inline]
RIP: 0010:smc_tcp_syn_recv_sock+0xb8/0x4b0 net/smc/af_smc.c:131
Code: ad d4 09 00 00 be 04 00 00 00 44 8b bb 1c 04 00 00 4c 89 ef e8 f9 d7 1e f7 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 34
RSP: 0018:ffffc90000a18790 EFLAGS: 00010217
RAX: dffffc0000000000 RBX: ffff888012560d80 RCX: ffffffff817a24ff
RDX: 000000000000013a RSI: ffffffff821bee5e RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 6e696c6261736944 R12: 0000000000000000
R13: 00000000000009d4 R14: ffffc90000a18860 R15: 0000000000000000
FS: 00007fe8d33726c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30619ff8 CR3: 000000007d292000 CR4: 0000000000350ef0
Call Trace:
tcp_check_req+0x9ae/0x1fb0 net/ipv4/tcp_minisocks.c:867
tcp_v4_rcv+0x1800/0x4380 net/ipv4/tcp_ipv4.c:2274
ip_protocol_deliver_rcu+0xba/0x4c0 net/ipv4/ip_input.c:205
ip_local_deliver_finish+0x316/0x570 net/ipv4/ip_input.c:233
NF_HOOK include/linux/netfilter.h:314 [inline]
NF_HOOK include/linux/netfilter.h:308 [inline]
ip_local_deliver+0x18e/0x1f0 net/ipv4/ip_input.c:254
dst_input include/net/dst.h:469 [inline]
ip_rcv_finish net/ipv4/ip_input.c:447 [inline]
NF_HOOK include/linux/netfilter.h:314 [inline]
NF_HOOK include/linux/netfilter.h:308 [inline]
ip_rcv+0x2c3/0x5d0 net/ipv4/ip_input.c:567
__netif_receive_skb_one_core+0x199/0x1e0 net/core/dev.c:5828
__netif_receive_skb+0x1d/0x160 net/core/dev.c:5941
process_backlog+0x443/0x15f0 net/core/dev.c:6289
__napi_poll.constprop.0+0xba/0x550 net/core/dev.c:7106
napi_poll net/core/dev.c:7175 [inline]
net_rx_action+0xa94/0x1010 net/core/dev.c:7297
handle_softirqs+0x216/0x8f0 kernel/softirq.c:561
do_softirq kernel/softirq.c:462 [inline]
do_softirq+0xb2/0xf0 kernel/softirq.c:449
__local_bh_enable_ip+0x100/0x120 kernel/softirq.c:389
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:919 [inline]
__dev_queue_xmit+0x8b0/0x43e0 net/core/dev.c:4611
dev_queue_xmit include/linux/netdevice.h:3305 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip_finish_output2+0xc34/0x2180 net/ipv4/ip_output.c:236
__ip_finish_output net/ipv4/ip_output.c:314 [inline]
__ip_finish_output+0x49e/0x950 net/ipv4/ip_output.c:296
ip_finish_output+0x35/0x380 net/ipv4/ip_output.c:324
NF_HOOK_COND include/linux/netfilter.h:303 [inline]
ip_output+0x13b/0x2a0 net/ipv4/ip_output.c:434
dst_output include/net/dst.h:459 [inline]
ip_local_out net/ipv4/ip_output.c:130 [inline]
__ip_queue_xmit+0x19e0/0x2070 net/ipv4/ip_output.c:528
__tcp_transmit_skb+0x2b39/0x3ec0 net/ipv4/tcp_output.c:1471
__tcp_send_ack.part.0+0x390/0x6f0 net/ipv4/tcp_output.c:4275
__tcp_send_ack net/ipv4/tcp_output.c:4281 [inline]
tcp_send_ack+0x82/0xa0 net/ipv4/tcp_output.c:4281
tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:6594 [inline]
tcp_rcv_state_process+0x4095/0x4c40 net/ipv4/tcp_input.c:6788
tcp_v4_do_rcv+0x1ad/0xa90 net/ipv4/tcp_ipv4.c:1941
sk_backlog_rcv include/net/sock.h:1122 [inline]
__release_sock+0x31b/0x400 net/core/sock.c:3106
release_sock+0x5a/0x220 net/core/sock.c:3660
mptcp_connect+0xc14/0xee0 net/mptcp/protocol.c:3810
__inet_stream_connect+0x3ca/0x1020 net/ipv4/af_inet.c:677
inet_stream_connect+0x57/0xa0 net/ipv4/af_inet.c:748
__sys_connect_file+0x141/0x1a0 net/socket.c:2045
__sys_connect+0x14f/0x170 net/socket.c:2064
__do_sys_connect net/socket.c:2070 [inline]
__se_sys_connect net/socket.c:2067 [inline]
__x64_sys_connect+0x72/0xb0 net/socket.c:2067
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe8d258cde9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe8d3372038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007fe8d27a5fa0 RCX: 00007fe8d258cde9
RDX: 0000000000000010 RSI: 0000400000000000 RDI: 0000000000000004
RBP: 00007fe8d260e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe8d27a5fa0 R15: 00007fff2a2610e8
Modules linked in:
vkms_vblank_simulate: vblank timer overrun
---[ end trace 0000000000000000 ]---
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline]
RIP: 0010:raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline]
RIP: 0010:atomic_read include/linux/atomic/atomic-instrumented.h:33 [inline]
RIP: 0010:smc_tcp_syn_recv_sock+0xb8/0x4b0 net/smc/af_smc.c:131
Code: ad d4 09 00 00 be 04 00 00 00 44 8b bb 1c 04 00 00 4c 89 ef e8 f9 d7 1e f7 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 34
RSP: 0018:ffffc90000a18790 EFLAGS: 00010217
RAX: dffffc0000000000 RBX: ffff888012560d80 RCX: ffffffff817a24ff
RDX: 000000000000013a RSI: ffffffff821bee5e RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 6e696c6261736944 R12: 0000000000000000
R13: 00000000000009d4 R14: ffffc90000a18860 R15: 0000000000000000
FS: 00007fe8d33726c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30619ff8 CR3: 000000007d292000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess), 2 bytes skipped:
0: 09 00 or %eax,(%rax)
2: 00 be 04 00 00 00 add %bh,0x4(%rsi)
8: 44 8b bb 1c 04 00 00 mov 0x41c(%rbx),%r15d
f: 4c 89 ef mov %r13,%rdi
12: e8 f9 d7 1e f7 call 0xf71ed810
17: 4c 89 ea mov %r13,%rdx
1a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
21: fc ff df
24: 48 c1 ea 03 shr $0x3,%rdx
* 28: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction
2c: 4c 89 e8 mov %r13,%rax
2f: 83 e0 07 and $0x7,%eax
32: 83 c0 03 add $0x3,%eax
35: 38 d0 cmp %dl,%al
37: 7c 08 jl 0x41
39: 84 d2 test %dl,%dl
3b: 0f .byte 0xf
3c: 85 .byte 0x85
3d: 34 .byte 0x34