==================================================================
BUG: KASAN: slab-out-of-bounds in sg_assign_page include/linux/scatterlist.h:131 [inline]
BUG: KASAN: slab-out-of-bounds in sg_set_page include/linux/scatterlist.h:162 [inline]
BUG: KASAN: slab-out-of-bounds in af_alg_pull_tsgl+0x8fb/0xa80 crypto/af_alg.c:711
Read of size 8 at addr ffff888059c91b60 by task syz.9.2952/17898
CPU: 0 UID: 0 PID: 17898 Comm: syz.9.2952 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x156/0x4c9 mm/kasan/report.c:482
kasan_report+0xdf/0x1e0 mm/kasan/report.c:595
sg_assign_page include/linux/scatterlist.h:131 [inline]
sg_set_page include/linux/scatterlist.h:162 [inline]
af_alg_pull_tsgl+0x8fb/0xa80 crypto/af_alg.c:711
_skcipher_recvmsg crypto/algif_skcipher.c:152 [inline]
skcipher_recvmsg+0x512/0x1020 crypto/algif_skcipher.c:221
sock_recvmsg_nosec net/socket.c:1078 [inline]
sock_recvmsg+0x1a4/0x1f0 net/socket.c:1100
____sys_recvmsg+0x218/0x640 net/socket.c:2812
___sys_recvmsg+0x16a/0x1a0 net/socket.c:2854
do_recvmmsg+0x301/0x760 net/socket.c:2949
__sys_recvmmsg net/socket.c:3023 [inline]
__do_sys_recvmmsg net/socket.c:3046 [inline]
__se_sys_recvmmsg net/socket.c:3039 [inline]
__x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3039
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f53a3f9c819
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:00007f53a4e35028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f53a4215fa0 RCX: 00007f53a3f9c819
RDX: 0000000000000002 RSI: 0000200000000c00 RDI: 0000000000000004
RBP: 00007f53a4032c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f53a4216038 R14: 00007f53a4215fa0 R15: 00007fff595d0d98
Allocated by task 17898:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5260 [inline]
__kmalloc_noprof+0x301/0x850 mm/slub.c:5272
kmalloc_noprof include/linux/slab.h:954 [inline]
sock_kmalloc+0x111/0x170 net/core/sock.c:2880
_skcipher_recvmsg crypto/algif_skcipher.c:144 [inline]
skcipher_recvmsg+0x48b/0x1020 crypto/algif_skcipher.c:221
sock_recvmsg_nosec net/socket.c:1078 [inline]
sock_recvmsg+0x1a4/0x1f0 net/socket.c:1100
____sys_recvmsg+0x218/0x640 net/socket.c:2812
___sys_recvmsg+0x16a/0x1a0 net/socket.c:2854
do_recvmmsg+0x301/0x760 net/socket.c:2949
__sys_recvmmsg net/socket.c:3023 [inline]
__do_sys_recvmmsg net/socket.c:3046 [inline]
__se_sys_recvmmsg net/socket.c:3039 [inline]
__x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3039
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff888059c91b40
which belongs to the cache kmalloc-32 of size 32
The buggy address is located 0 bytes to the right of
allocated 32-byte region [ffff888059c91b40, ffff888059c91b60)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x59c91
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe3b780 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800400040 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5827, tgid 5827 (syz-executor), ts 90743051909, free_ts 24106681258
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x153/0x170 mm/page_alloc.c:1889
prep_new_page mm/page_alloc.c:1897 [inline]
get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3962
__alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5250
alloc_slab_page mm/slub.c:3292 [inline]
allocate_slab mm/slub.c:3481 [inline]
new_slab+0xa6/0x6b0 mm/slub.c:3539
refill_objects+0x26b/0x400 mm/slub.c:7175
refill_sheaf mm/slub.c:2812 [inline]
__pcs_replace_empty_main+0x1ab/0x660 mm/slub.c:4615
alloc_from_pcs mm/slub.c:4717 [inline]
slab_alloc_node mm/slub.c:4851 [inline]
__kmalloc_cache_noprof+0x493/0x6f0 mm/slub.c:5375
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ref_tracker_alloc+0x190/0x590 lib/ref_tracker.c:270
__netdev_tracker_alloc include/linux/netdevice.h:4436 [inline]
netdev_hold include/linux/netdevice.h:4465 [inline]
netdev_hold include/linux/netdevice.h:4460 [inline]
inetdev_init+0x245/0x570 net/ipv4/devinet.c:286
inetdev_event+0x7fa/0x17f0 net/ipv4/devinet.c:1590
notifier_call_chain+0x99/0x420 kernel/notifier.c:85
call_netdevice_notifiers_info+0xbe/0x110 net/core/dev.c:2249
call_netdevice_notifiers_extack net/core/dev.c:2287 [inline]
call_netdevice_notifiers net/core/dev.c:2301 [inline]
register_netdevice+0x16e6/0x2210 net/core/dev.c:11479
rtnl_newlink_create net/core/rtnetlink.c:3864 [inline]
__rtnl_newlink net/core/rtnetlink.c:3979 [inline]
rtnl_newlink+0x1deb/0x2380 net/core/rtnetlink.c:4094
rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6980
netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2550
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+0x7e1/0x10d0 mm/page_alloc.c:2978
__free_pages mm/page_alloc.c:5369 [inline]
free_contig_range+0xde/0x1d0 mm/page_alloc.c:7374
debug_vm_pgtable_free_huge_page mm/debug_vm_pgtable.c:980 [inline]
destroy_args+0xa8/0x7a0 mm/debug_vm_pgtable.c:993
debug_vm_pgtable+0x1b66/0x34c0 mm/debug_vm_pgtable.c:1368
do_one_initcall+0x11d/0x760 init/main.c:1382
do_initcall_level init/main.c:1444 [inline]
do_initcalls init/main.c:1460 [inline]
do_basic_setup init/main.c:1479 [inline]
kernel_init_freeable+0x6e5/0x7a0 init/main.c:1692
kernel_init+0x1f/0x1e0 init/main.c:1582
ret_from_fork+0x754/0xd80 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:
ffff888059c91a00: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc
ffff888059c91a80: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc
>ffff888059c91b00: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc
^
ffff888059c91b80: 00 00 00 00 fc fc fc fc fa fb fb fb fc fc fc fc
ffff888059c91c00: 00 00 00 00 fc fc fc fc fa fb fb fb fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in sg_set_page include/linux/scatterlist.h:163 [inline]
BUG: KASAN: slab-out-of-bounds in af_alg_pull_tsgl+0x917/0xa80 crypto/af_alg.c:711
Write of size 4 at addr ffff888059c91b68 by task syz.9.2952/17898
CPU: 1 UID: 0 PID: 17898 Comm: syz.9.2952 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x156/0x4c9 mm/kasan/report.c:482
kasan_report+0xdf/0x1e0 mm/kasan/report.c:595
sg_set_page include/linux/scatterlist.h:163 [inline]
af_alg_pull_tsgl+0x917/0xa80 crypto/af_alg.c:711
_skcipher_recvmsg crypto/algif_skcipher.c:152 [inline]
skcipher_recvmsg+0x512/0x1020 crypto/algif_skcipher.c:221
sock_recvmsg_nosec net/socket.c:1078 [inline]
sock_recvmsg+0x1a4/0x1f0 net/socket.c:1100
____sys_recvmsg+0x218/0x640 net/socket.c:2812
___sys_recvmsg+0x16a/0x1a0 net/socket.c:2854
do_recvmmsg+0x301/0x760 net/socket.c:2949
__sys_recvmmsg net/socket.c:3023 [inline]
__do_sys_recvmmsg net/socket.c:3046 [inline]
__se_sys_recvmmsg net/socket.c:3039 [inline]
__x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3039
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f53a3f9c819
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:00007f53a4e35028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f53a4215fa0 RCX: 00007f53a3f9c819
RDX: 0000000000000002 RSI: 0000200000000c00 RDI: 0000000000000004
RBP: 00007f53a4032c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f53a4216038 R14: 00007f53a4215fa0 R15: 00007fff595d0d98
Allocated by task 40920962:
------------[ cut here ]------------
pool index 125439 out of bounds (1337) for stack id ffffea00
WARNING: lib/stackdepot.c:506 at depot_fetch_stack+0x83/0xb0 lib/stackdepot.c:506, CPU#1: syz.9.2952/17898
Modules linked in:
CPU: 1 UID: 0 PID: 17898 Comm: syz.9.2952 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:depot_fetch_stack+0x8a/0xb0 lib/stackdepot.c:506
Code: be ff ff ff ff 48 c7 c7 f8 61 3b 8f e8 1f bb 65 06 83 f8 01 75 bd 90 0f 0b 90 eb b7 48 8d 3d ad 7b ba 0b 89 e9 44 89 ea 89 de <67> 48 0f b9 3a 31 c0 5b 5d 41 5c 41 5d e9 df 1d e6 fb 90 0f 0b 90
RSP: 0018:ffffc90004f27688 EFLAGS: 00010006
RAX: 0000000000000000 RBX: 000000000001e9ff RCX: 00000000ffffea00
RDX: 0000000000000539 RSI: 000000000001e9ff RDI: ffffffff90e49ec0
RBP: 00000000ffffea00 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000001 R11: 657461636f6c6c41 R12: 0000000000003ff0
R13: 0000000000000539 R14: 0000000000000004 R15: ffffffff84ca4037
FS: 00007f53a4e356c0(0000) GS:ffff888124439000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb166cedd58 CR3: 0000000044b38000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
stack_depot_fetch lib/stackdepot.c:775 [inline]
stack_depot_print+0x1b/0x50 lib/stackdepot.c:813
describe_object_stacks mm/kasan/report.c:338 [inline]
describe_object mm/kasan/report.c:353 [inline]
print_address_description mm/kasan/report.c:382 [inline]
print_report+0x18e/0x4c9 mm/kasan/report.c:482
kasan_report+0xdf/0x1e0 mm/kasan/report.c:595
sg_set_page include/linux/scatterlist.h:163 [inline]
af_alg_pull_tsgl+0x917/0xa80 crypto/af_alg.c:711
_skcipher_recvmsg crypto/algif_skcipher.c:152 [inline]
skcipher_recvmsg+0x512/0x1020 crypto/algif_skcipher.c:221
sock_recvmsg_nosec net/socket.c:1078 [inline]
sock_recvmsg+0x1a4/0x1f0 net/socket.c:1100
____sys_recvmsg+0x218/0x640 net/socket.c:2812
___sys_recvmsg+0x16a/0x1a0 net/socket.c:2854
do_recvmmsg+0x301/0x760 net/socket.c:2949
__sys_recvmmsg net/socket.c:3023 [inline]
__do_sys_recvmmsg net/socket.c:3046 [inline]
__se_sys_recvmmsg net/socket.c:3039 [inline]
__x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3039
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f53a3f9c819
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:00007f53a4e35028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f53a4215fa0 RCX: 00007f53a3f9c819
RDX: 0000000000000002 RSI: 0000200000000c00 RDI: 0000000000000004
RBP: 00007f53a4032c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f53a4216038 R14: 00007f53a4215fa0 R15: 00007fff595d0d98
----------------
Code disassembly (best guess):
0: be ff ff ff ff mov $0xffffffff,%esi
5: 48 c7 c7 f8 61 3b 8f mov $0xffffffff8f3b61f8,%rdi
c: e8 1f bb 65 06 call 0x665bb30
11: 83 f8 01 cmp $0x1,%eax
14: 75 bd jne 0xffffffd3
16: 90 nop
17: 0f 0b ud2
19: 90 nop
1a: eb b7 jmp 0xffffffd3
1c: 48 8d 3d ad 7b ba 0b lea 0xbba7bad(%rip),%rdi # 0xbba7bd0
23: 89 e9 mov %ebp,%ecx
25: 44 89 ea mov %r13d,%edx
28: 89 de mov %ebx,%esi
* 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction
2f: 31 c0 xor %eax,%eax
31: 5b pop %rbx
32: 5d pop %rbp
33: 41 5c pop %r12
35: 41 5d pop %r13
37: e9 df 1d e6 fb jmp 0xfbe61e1b
3c: 90 nop
3d: 0f 0b ud2
3f: 90 nop