==================================================================
BUG: KASAN: slab-use-after-free in list_empty include/linux/list.h:381 [inline]
BUG: KASAN: slab-use-after-free in waitqueue_active include/linux/wait.h:127 [inline]
BUG: KASAN: slab-use-after-free in wq_has_sleeper include/linux/wait.h:161 [inline]
BUG: KASAN: slab-use-after-free in skwq_has_sleeper include/net/sock.h:2407 [inline]
BUG: KASAN: slab-use-after-free in sock_def_readable+0x1cb/0x550 net/core/sock.c:3613
Read of size 8 at addr ffff888059e624c0 by task syz.4.10728/29136
CPU: 0 UID: 0 PID: 29136 Comm: syz.4.10728 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0xba/0x230 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
list_empty include/linux/list.h:381 [inline]
waitqueue_active include/linux/wait.h:127 [inline]
wq_has_sleeper include/linux/wait.h:161 [inline]
skwq_has_sleeper include/net/sock.h:2407 [inline]
sock_def_readable+0x1cb/0x550 net/core/sock.c:3613
send_to_lecd+0x3e7/0x830 net/atm/lec.c:559
lec_arp_expire_arp+0x150/0x280 net/atm/lec.c:-1
call_timer_fn+0x192/0x5e0 kernel/time/timer.c:1748
expire_timers kernel/time/timer.c:1799 [inline]
__run_timers kernel/time/timer.c:2374 [inline]
__run_timer_base+0x652/0x8b0 kernel/time/timer.c:2386
run_timer_base kernel/time/timer.c:2395 [inline]
run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2405
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0xca/0x220 kernel/softirq.c:735
irq_exit_rcu+0x9/0x30 kernel/softirq.c:752
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1061
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:finish_task_switch+0x427/0xbe0 kernel/sched/core.c:5239
Code: 41 c7 84 24 e0 0d 00 00 00 00 00 00 0f 1f 44 00 00 49 83 c4 48 4c 89 e7 e8 86 f4 20 0a e8 21 6d 38 00 fb 49 8d bd a8 16 00 00 <48> 89 f8 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 7b 03 00 00 41 80
RSP: 0018:ffffc90004af7090 EFLAGS: 00000206
RAX: 0000000000000177 RBX: 1ffff110170c7784 RCX: 0000000080000001
RDX: 0000000000000007 RSI: ffffffff8dfb65fa RDI: ffff888029683568
RBP: ffffc90004af70f0 R08: ffffffff903215b7 R09: 1ffffffff20642b6
R10: dffffc0000000000 R11: fffffbfff20642b7 R12: ffff8880b863ae88
R13: ffff888029681ec0 R14: ffff8880277c8000 R15: dffffc0000000000
context_switch kernel/sched/core.c:5385 [inline]
__schedule+0x17bc/0x5680 kernel/sched/core.c:7183
preempt_schedule_common+0x82/0xd0 kernel/sched/core.c:7364
preempt_schedule_thunk+0x16/0x30 arch/x86/entry/thunk.S:12
__raw_spin_unlock include/linux/spinlock_api_smp.h:169 [inline]
_raw_spin_unlock+0x3f/0x50 kernel/locking/spinlock.c:190
spin_unlock include/linux/spinlock.h:390 [inline]
zap_pte_range mm/memory.c:1959 [inline]
zap_pmd_range mm/memory.c:2021 [inline]
zap_pud_range mm/memory.c:2049 [inline]
zap_p4d_range mm/memory.c:2070 [inline]
unmap_page_range+0x3b71/0x48f0 mm/memory.c:2091
unmap_single_vma mm/memory.c:2133 [inline]
unmap_vmas+0x48f/0x6a0 mm/memory.c:2171
exit_mmap+0x280/0x9e0 mm/mmap.c:1302
__mmput+0x118/0x430 kernel/fork.c:1177
exit_mm+0x18e/0x250 kernel/exit.c:581
do_exit+0x6a2/0x23c0 kernel/exit.c:965
do_group_exit+0x21b/0x2d0 kernel/exit.c:1119
get_signal+0x1284/0x1330 kernel/signal.c:3039
arch_do_signal_or_restart+0xbc/0x830 arch/x86/kernel/signal.c:337
__exit_to_user_mode_loop kernel/entry/common.c:64 [inline]
exit_to_user_mode_loop+0x86/0x480 kernel/entry/common.c:98
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:328 [inline]
do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f401859c819
Code: Unable to access opcode bytes at 0x7f401859c7ef.
RSP: 002b:00007f4019444028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: fffffffffffffe00 RBX: 00007f4018816090 RCX: 00007f401859c819
RDX: 0000000000000001 RSI: 0000200000000400 RDI: 0000000000000003
RBP: 00007f4018632c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000040000021 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4018816128 R14: 00007f4018816090 R15: 00007ffdbdfb7d58
Allocated by task 29096:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:340 [inline]
__kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4538 [inline]
slab_alloc_node mm/slub.c:4866 [inline]
kmem_cache_alloc_lru_noprof+0x2b8/0x640 mm/slub.c:4885
sock_alloc_inode+0x2c/0x190 net/socket.c:328
alloc_inode+0x6a/0x1b0 fs/inode.c:345
new_inode_pseudo include/linux/fs.h:3014 [inline]
sock_alloc net/socket.c:697 [inline]
__sock_create+0x12d/0x9d0 net/socket.c:1628
sock_create net/socket.c:1722 [inline]
__sys_socket_create net/socket.c:1759 [inline]
__sys_socket+0xd6/0x1b0 net/socket.c:1806
__do_sys_socket net/socket.c:1820 [inline]
__se_sys_socket net/socket.c:1818 [inline]
__x64_sys_socket+0x7a/0x90 net/socket.c:1818
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 29110:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2685 [inline]
slab_free mm/slub.c:6165 [inline]
kmem_cache_free+0x180/0x630 mm/slub.c:6295
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
do_softirq+0x76/0xd0 kernel/softirq.c:523
__local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450
spin_unlock_bh include/linux/spinlock.h:396 [inline]
hash_ipport4_add+0x154c/0x2130 net/netfilter/ipset/ip_set_hash_gen.h:996
hash_ipport4_uadt+0xaaf/0xde0 net/netfilter/ipset/ip_set_hash_ipport.c:199
call_ad+0x398/0xb60 net/netfilter/ipset/ip_set_core.c:1751
ip_set_ad+0x824/0x9d0 net/netfilter/ipset/ip_set_core.c:1841
nfnetlink_rcv_msg+0xc03/0x12c0 net/netfilter/nfnetlink.c:300
netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550
nfnetlink_rcv+0x2c0/0x27b0 net/netfilter/nfnetlink.c:667
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x75c/0x8e0 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:787 [inline]
__sock_sendmsg net/socket.c:802 [inline]
____sys_sendmsg+0x972/0x9f0 net/socket.c:2698
___sys_sendmsg+0x2a5/0x360 net/socket.c:2752
__sys_sendmsg net/socket.c:2784 [inline]
__do_sys_sendmsg net/socket.c:2789 [inline]
__se_sys_sendmsg net/socket.c:2787 [inline]
__x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2787
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Last potentially related work creation:
kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57
kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556
__call_rcu_common kernel/rcu/tree.c:3131 [inline]
call_rcu+0xee/0x890 kernel/rcu/tree.c:3251
destroy_inode fs/inode.c:399 [inline]
evict+0x95b/0xb10 fs/inode.c:865
__dentry_kill+0x1a2/0x5e0 fs/dcache.c:670
finish_dput+0xc9/0x480 fs/dcache.c:879
__fput+0x691/0xa60 fs/file_table.c:518
task_work_run+0x1d9/0x270 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:328 [inline]
do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff888059e62400
which belongs to the cache sock_inode_cache of size 1408
The buggy address is located 192 bytes inside of
freed 1408-byte region [ffff888059e62400, ffff888059e62980)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888059e60600 pfn:0x59e60
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888059e67e01
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff888140ec0c80 ffffea0001e2cc10 ffffea0001e2ce10
raw: ffff888059e60600 0000000800150013 00000000f5000000 ffff888059e67e01
head: 00fff00000000240 ffff888140ec0c80 ffffea0001e2cc10 ffffea0001e2ce10
head: ffff888059e60600 0000000800150013 00000000f5000000 ffff888059e67e01
head: 00fff00000000003 ffffea0001679801 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_RECLAIMABLE|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5829, tgid 5829 (syz-executor), ts 79361223706, free_ts 22652567333
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889
prep_new_page mm/page_alloc.c:1897 [inline]
get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3962
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250
alloc_slab_page mm/slub.c:3292 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3481
new_slab mm/slub.c:3539 [inline]
refill_objects+0x331/0x3c0 mm/slub.c:7175
refill_sheaf mm/slub.c:2812 [inline]
__pcs_replace_empty_main+0x2e6/0x730 mm/slub.c:4615
alloc_from_pcs mm/slub.c:4717 [inline]
slab_alloc_node mm/slub.c:4851 [inline]
kmem_cache_alloc_lru_noprof+0x37c/0x640 mm/slub.c:4885
sock_alloc_inode+0x2c/0x190 net/socket.c:328
alloc_inode+0x6a/0x1b0 fs/inode.c:345
new_inode_pseudo include/linux/fs.h:3014 [inline]
sock_alloc net/socket.c:697 [inline]
__sock_create+0x12d/0x9d0 net/socket.c:1628
sock_create net/socket.c:1722 [inline]
__sys_socket_create net/socket.c:1759 [inline]
__sys_socket+0xd6/0x1b0 net/socket.c:1806
__do_sys_socket net/socket.c:1820 [inline]
__se_sys_socket net/socket.c:1818 [inline]
__x64_sys_socket+0x7a/0x90 net/socket.c:1818
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 1 tgid 1 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1433 [inline]
__free_frozen_pages+0xc2b/0xdb0 mm/page_alloc.c:2978
__free_pages mm/page_alloc.c:5369 [inline]
free_contig_range+0xbb/0x170 mm/page_alloc.c:7374
destroy_args+0x4e5/0x570 mm/debug_vm_pgtable.c:993
debug_vm_pgtable+0x3f8/0x410 mm/debug_vm_pgtable.c:1368
do_one_initcall+0x250/0x870 init/main.c:1392
do_initcall_level+0x104/0x190 init/main.c:1454
do_initcalls+0x59/0xa0 init/main.c:1470
kernel_init_freeable+0x2a6/0x3e0 init/main.c:1703
kernel_init+0x1d/0x1d0 init/main.c:1593
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888059e62380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888059e62400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888059e62480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888059e62500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888059e62580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 41 c7 84 24 e0 0d 00 movl $0x0,0xde0(%r12)
7: 00 00 00 00 00
c: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
11: 49 83 c4 48 add $0x48,%r12
15: 4c 89 e7 mov %r12,%rdi
18: e8 86 f4 20 0a call 0xa20f4a3
1d: e8 21 6d 38 00 call 0x386d43
22: fb sti
23: 49 8d bd a8 16 00 00 lea 0x16a8(%r13),%rdi
* 2a: 48 89 f8 mov %rdi,%rax <-- trapping instruction
2d: 48 c1 e8 03 shr $0x3,%rax
31: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax
36: 84 c0 test %al,%al
38: 0f 85 7b 03 00 00 jne 0x3b9
3e: 41 rex.B
3f: 80 .byte 0x80