==================================================================
BUG: KASAN: use-after-free in sk_psock_verdict_data_ready+0x133/0x1d0 net/core/skmsg.c:1256
Read of size 8 at addr ffff888111a4ec20 by task syz.3.169/917
CPU: 0 PID: 917 Comm: syz.3.169 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0xf1/0x140 mm/kasan/report.c:444
__asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309
sk_psock_verdict_data_ready+0x133/0x1d0 net/core/skmsg.c:1256
unix_stream_sendmsg+0x7d1/0xc90 net/unix/af_unix.c:2117
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2435
___sys_sendmsg+0x236/0x2e0 net/socket.c:2489
__sys_sendmsg net/socket.c:2518 [inline]
__do_sys_sendmsg net/socket.c:2527 [inline]
__se_sys_sendmsg net/socket.c:2525 [inline]
__x64_sys_sendmsg+0x206/0x2f0 net/socket.c:2525
x64_sys_call+0x4b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fce113db799
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fce0fe36028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fce11654fa0 RCX: 00007fce113db799
RDX: 0000000000000020 RSI: 0000200000000980 RDI: 0000000000000004
RBP: 00007fce11471bd9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fce11655038 R14: 00007fce11654fa0 R15: 00007ffd94771288
Allocated by task 917:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:433 [inline]
__kasan_slab_alloc+0xbd/0xf0 mm/kasan/common.c:466
kasan_slab_alloc include/linux/kasan.h:217 [inline]
slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550
slab_alloc_node mm/slub.c:3245 [inline]
slab_alloc mm/slub.c:3255 [inline]
kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260
sock_alloc_inode+0x1b/0xb0 net/socket.c:303
alloc_inode fs/inode.c:264 [inline]
new_inode_pseudo+0x62/0x210 fs/inode.c:1011
sock_alloc net/socket.c:626 [inline]
__sock_create+0x12c/0x7a0 net/socket.c:1449
sock_create net/socket.c:1541 [inline]
__sys_socketpair+0x218/0x590 net/socket.c:1645
__do_sys_socketpair net/socket.c:1694 [inline]
__se_sys_socketpair net/socket.c:1691 [inline]
__x64_sys_socketpair+0x9b/0xb0 net/socket.c:1691
x64_sys_call+0x36/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:54
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
Freed by task 943:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4a/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x125/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:1728 [inline]
slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754
slab_free mm/slub.c:3526 [inline]
kmem_cache_free+0x100/0x320 mm/slub.c:3544
sock_free_inode+0x20/0x30 net/socket.c:324
i_callback+0x4c/0x70 fs/inode.c:253
rcu_do_batch+0x532/0xbe0 kernel/rcu/tree.c:2523
rcu_core+0x5ee/0xf80 kernel/rcu/tree.c:2763
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
Last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
__call_rcu_common kernel/rcu/tree.c:3011 [inline]
call_rcu+0x10b/0xf80 kernel/rcu/tree.c:3129
destroy_inode fs/inode.c:319 [inline]
evict+0x834/0x8d0 fs/inode.c:665
iput_final fs/inode.c:1779 [inline]
iput+0x635/0x7c0 fs/inode.c:1805
dentry_unlink_inode+0x32f/0x3e0 fs/dcache.c:380
__dentry_kill+0x44f/0x650 fs/dcache.c:586
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x47/0x90 fs/dcache.c:893
__fput+0x580/0x8b0 fs/file_table.c:319
____fput+0x15/0x20 fs/file_table.c:339
task_work_run+0x127/0x190 kernel/task_work.c:188
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0xd0/0xe0 kernel/entry/common.c:181
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
Second to last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
__call_rcu_common kernel/rcu/tree.c:3011 [inline]
call_rcu+0x10b/0xf80 kernel/rcu/tree.c:3129
destroy_inode fs/inode.c:319 [inline]
evict+0x834/0x8d0 fs/inode.c:665
iput_final fs/inode.c:1779 [inline]
iput+0x635/0x7c0 fs/inode.c:1805
__sock_release net/socket.c:661 [inline]
sock_release+0x111/0x140 net/socket.c:677
inet_ctl_sock_destroy include/net/inet_common.h:65 [inline]
icmp_sk_exit+0x12c/0x220 net/ipv4/icmp.c:1459
ops_exit_list net/core/net_namespace.c:172 [inline]
cleanup_net+0x593/0xae0 net/core/net_namespace.c:599
process_one_work+0x6be/0xba0 kernel/workqueue.c:2325
worker_thread+0xa59/0x1200 kernel/workqueue.c:2472
kthread+0x411/0x500 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
The buggy address belongs to the object at ffff888111a4ec00
which belongs to the cache sock_inode_cache of size 896
The buggy address is located 32 bytes inside of
896-byte region [ffff888111a4ec00, ffff888111a4ef80)
The buggy address belongs to the page:
page:ffffea0004469300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111a4c
head:ffffea0004469300 order:2 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 dead000000000100 dead000000000122 ffff8881081aa000
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 282, ts 19578851189, free_ts 0
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605
prep_new_page+0x1c/0x110 mm/page_alloc.c:2611
get_page_from_freelist+0x2d3a/0x2dc0 mm/page_alloc.c:4485
__alloc_pages+0x1a2/0x460 mm/page_alloc.c:5808
alloc_slab_page mm/slub.c:-1 [inline]
allocate_slab mm/slub.c:1937 [inline]
new_slab+0xa1/0x4d0 mm/slub.c:2000
___slab_alloc+0x381/0x810 mm/slub.c:3033
__slab_alloc+0x49/0x90 mm/slub.c:3120
slab_alloc_node mm/slub.c:3211 [inline]
slab_alloc mm/slub.c:3255 [inline]
kmem_cache_alloc+0x138/0x260 mm/slub.c:3260
sock_alloc_inode+0x1b/0xb0 net/socket.c:303
alloc_inode fs/inode.c:264 [inline]
new_inode_pseudo+0x62/0x210 fs/inode.c:1011
sock_alloc net/socket.c:626 [inline]
sock_create_lite+0x8b/0x4f0 net/socket.c:1284
__netlink_kernel_create+0x11c/0x950 net/netlink/af_netlink.c:2045
netlink_kernel_create include/linux/netlink.h:62 [inline]
diag_net_init+0xb9/0x140 net/core/sock_diag.c:318
ops_init+0x1ba/0x4a0 net/core/net_namespace.c:138
setup_net+0x34d/0xaa0 net/core/net_namespace.c:332
copy_net_ns+0x355/0x5c0 net/core/net_namespace.c:476
page_owner free stack trace missing
Memory state around the buggy address:
ffff888111a4eb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888111a4eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888111a4ec00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888111a4ec80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888111a4ed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
general protection fault, probably for non-canonical address 0xdffffc0000000018: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7]
CPU: 1 PID: 917 Comm: syz.3.169 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:sk_psock_verdict_data_ready+0x143/0x1d0 net/core/skmsg.c:1256
Code: 24 50 48 c7 44 24 48 01 00 00 00 43 80 3c 2e 00 74 08 4c 89 ff e8 5d fc d0 fd 41 bc c0 00 00 00 4d 03 27 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 3e fc d0 fd 48 8b 7c 24 18 48 8d
RSP: 0018:ffffc90000fe77e0 EFLAGS: 00010206
RAX: 0000000000000018 RBX: 1ffff920001fcf00 RCX: 0000000000080000
RDX: ffffc90002790000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000fe78b0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0e18a4c R12: 00000000000000c0
R13: dffffc0000000000 R14: 1ffff11022349d84 R15: ffff888111a4ec20
FS: 00007fce0fe366c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc393385ff8 CR3: 000000012d08b000 CR4: 00000000003506a0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
unix_stream_sendmsg+0x7d1/0xc90 net/unix/af_unix.c:2117
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2435
___sys_sendmsg+0x236/0x2e0 net/socket.c:2489
__sys_sendmsg net/socket.c:2518 [inline]
__do_sys_sendmsg net/socket.c:2527 [inline]
__se_sys_sendmsg net/socket.c:2525 [inline]
__x64_sys_sendmsg+0x206/0x2f0 net/socket.c:2525
x64_sys_call+0x4b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fce113db799
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fce0fe36028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fce11654fa0 RCX: 00007fce113db799
RDX: 0000000000000020 RSI: 0000200000000980 RDI: 0000000000000004
RBP: 00007fce11471bd9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fce11655038 R14: 00007fce11654fa0 R15: 00007ffd94771288
Modules linked in:
---[ end trace 7543fe679974736e ]---
RIP: 0010:sk_psock_verdict_data_ready+0x143/0x1d0 net/core/skmsg.c:1256
Code: 24 50 48 c7 44 24 48 01 00 00 00 43 80 3c 2e 00 74 08 4c 89 ff e8 5d fc d0 fd 41 bc c0 00 00 00 4d 03 27 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 3e fc d0 fd 48 8b 7c 24 18 48 8d
RSP: 0018:ffffc90000fe77e0 EFLAGS: 00010206
RAX: 0000000000000018 RBX: 1ffff920001fcf00 RCX: 0000000000080000
RDX: ffffc90002790000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000fe78b0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0e18a4c R12: 00000000000000c0
R13: dffffc0000000000 R14: 1ffff11022349d84 R15: ffff888111a4ec20
FS: 00007fce0fe366c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000012d08b000 CR4: 00000000003506b0
DR0: 0000200000000300 DR1: 0000200000000300 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff1 DR7: 0000000000000600
----------------
Code disassembly (best guess):
0: 24 50 and $0x50,%al
2: 48 c7 44 24 48 01 00 movq $0x1,0x48(%rsp)
9: 00 00
b: 43 80 3c 2e 00 cmpb $0x0,(%r14,%r13,1)
10: 74 08 je 0x1a
12: 4c 89 ff mov %r15,%rdi
15: e8 5d fc d0 fd call 0xfdd0fc77
1a: 41 bc c0 00 00 00 mov $0xc0,%r12d
20: 4d 03 27 add (%r15),%r12
23: 4c 89 e0 mov %r12,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 4c 89 e7 mov %r12,%rdi
34: e8 3e fc d0 fd call 0xfdd0fc77
39: 48 8b 7c 24 18 mov 0x18(%rsp),%rdi
3e: 48 rex.W
3f: 8d .byte 0x8d