[v6.6] KASAN: slab-use-after-free Read in __pm_runtime_resume

0 views
Skip to first unread message

syzbot

unread,
Apr 9, 2026, 2:50:20 AM (13 days ago) Apr 9
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 80de0a958133 Linux 6.6.133
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1694534e580000
kernel config: https://syzkaller.appspot.com/x/.config?x=c5b35c4db8465904
dashboard link: https://syzkaller.appspot.com/bug?extid=324fb5bceaebab33cb61
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/5cb1c8038a93/disk-80de0a95.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/b7ee38c09b5d/vmlinux-80de0a95.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0230e7174984/bzImage-80de0a95.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+324fb5...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: slab-use-after-free in __pm_runtime_resume+0x14c/0x170 drivers/base/power/runtime.c:1163
Read of size 2 at addr ffff888071ca69a8 by task syz.3.3711/19704

CPU: 1 PID: 19704 Comm: syz.3.3711 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xa8/0x210 mm/kasan/report.c:468
kasan_report+0x117/0x150 mm/kasan/report.c:581
__pm_runtime_resume+0x14c/0x170 drivers/base/power/runtime.c:1163
pm_runtime_get_sync include/linux/pm_runtime.h:421 [inline]
ethnl_ops_begin+0x5d/0x1f0 net/ethtool/netlink.c:41
module_prepare_data+0x46/0x100 net/ethtool/module.c:47
ethnl_default_doit+0x4fa/0xb80 net/ethtool/netlink.c:402
genl_family_rcv_msg_doit+0x211/0x310 net/netlink/genetlink.c:971
genl_family_rcv_msg net/netlink/genetlink.c:1051 [inline]
genl_rcv_msg+0x619/0x7a0 net/netlink/genetlink.c:1066
netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545
genl_rcv+0x28/0x40 net/netlink/genetlink.c:1075
netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346
netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
____sys_sendmsg+0x5ba/0x960 net/socket.c:2594
___sys_sendmsg+0x2a6/0x360 net/socket.c:2648
__sys_sendmsg net/socket.c:2677 [inline]
__do_sys_sendmsg net/socket.c:2686 [inline]
__se_sys_sendmsg+0x1c2/0x2b0 net/socket.c:2684
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1768f9c819
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:00007f1769ed6028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f1769216180 RCX: 00007f1768f9c819
RDX: 0000000000000000 RSI: 0000200000000200 RDI: 0000000000000004
RBP: 00007f1769032c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1769216218 R14: 00007f1769216180 R15: 00007ffc6214a9e8
</TASK>

Allocated by task 16791:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
____kasan_kmalloc mm/kasan/common.c:375 [inline]
__kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384
kasan_kmalloc include/linux/kasan.h:198 [inline]
__do_kmalloc_node mm/slab_common.c:1007 [inline]
__kmalloc_node+0xb4/0x230 mm/slab_common.c:1014
kmalloc_node include/linux/slab.h:620 [inline]
kvmalloc_node+0x70/0x180 mm/util.c:617
kvmalloc include/linux/slab.h:738 [inline]
kvzalloc include/linux/slab.h:746 [inline]
alloc_netdev_mqs+0x87/0x1040 net/core/dev.c:10855
rtnl_create_link+0x30e/0xd00 net/core/rtnetlink.c:3384
veth_newlink+0x2bc/0xc30 drivers/net/veth.c:1860
rtnl_newlink_create net/core/rtnetlink.c:3520 [inline]
__rtnl_newlink net/core/rtnetlink.c:3740 [inline]
rtnl_newlink+0x1542/0x20a0 net/core/rtnetlink.c:3753
rtnetlink_rcv_msg+0x869/0xfa0 net/core/rtnetlink.c:6475
netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545
netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346
netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
__sys_sendto+0x4a9/0x6b0 net/socket.c:2200
__do_sys_sendto net/socket.c:2212 [inline]
__se_sys_sendto net/socket.c:2208 [inline]
__x64_sys_sendto+0xde/0xf0 net/socket.c:2208
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2

Freed by task 19693:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
kasan_save_free_info+0x2e/0x50 mm/kasan/generic.c:522
____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:237
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1811 [inline]
slab_free_freelist_hook+0x130/0x1a0 mm/slub.c:1837
slab_free mm/slub.c:3830 [inline]
__kmem_cache_free+0xba/0x1e0 mm/slub.c:3843
device_release+0x96/0x1c0 drivers/base/core.c:-1
kobject_cleanup lib/kobject.c:689 [inline]
kobject_release lib/kobject.c:720 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x221/0x460 lib/kobject.c:737
netdev_run_todo+0xcb7/0xdc0 net/core/dev.c:10627
rtnl_unlock net/core/rtnetlink.c:151 [inline]
rtnetlink_rcv_msg+0xab7/0xfa0 net/core/rtnetlink.c:6476
netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545
netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346
netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
____sys_sendmsg+0x5ba/0x960 net/socket.c:2594
___sys_sendmsg+0x2a6/0x360 net/socket.c:2648
__sys_sendmsg net/socket.c:2677 [inline]
__do_sys_sendmsg net/socket.c:2686 [inline]
__se_sys_sendmsg+0x1c2/0x2b0 net/socket.c:2684
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2

The buggy address belongs to the object at ffff888071ca6000
which belongs to the cache kmalloc-cg-4k of size 4096
The buggy address is located 2472 bytes inside of
freed 4096-byte region [ffff888071ca6000, ffff888071ca7000)

The buggy address belongs to the physical page:
page:ffffea0001c72800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x71ca0
head:ffffea0001c72800 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff8880269bb181
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017c4f500 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000040004 00000001ffffffff ffff8880269bb181
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5774, tgid 5774 (syz-executor), ts 71369893341, free_ts 71315598003
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581
prep_new_page mm/page_alloc.c:1588 [inline]
get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220
__alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500
alloc_slab_page+0x5d/0x160 mm/slub.c:1881
allocate_slab mm/slub.c:2028 [inline]
new_slab+0x87/0x2d0 mm/slub.c:2081
___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253
__slab_alloc mm/slub.c:3339 [inline]
__slab_alloc_node mm/slub.c:3392 [inline]
slab_alloc_node mm/slub.c:3485 [inline]
__kmem_cache_alloc_node+0x19e/0x250 mm/slub.c:3534
__do_kmalloc_node mm/slab_common.c:1006 [inline]
__kmalloc_node_track_caller+0xa2/0x230 mm/slab_common.c:1027
kmemdup+0x2b/0x70 mm/util.c:131
kmemdup include/linux/fortify-string.h:779 [inline]
__addrconf_sysctl_register+0xa6/0x3f0 net/ipv6/addrconf.c:7192
addrconf_sysctl_register+0x15c/0x1b0 net/ipv6/addrconf.c:7258
ipv6_add_dev+0xc42/0x11e0 net/ipv6/addrconf.c:451
addrconf_notify+0x67b/0x1010 net/ipv6/addrconf.c:3640
notifier_call_chain+0x197/0x380 kernel/notifier.c:93
call_netdevice_notifiers_extack net/core/dev.c:2077 [inline]
call_netdevice_notifiers net/core/dev.c:2091 [inline]
register_netdevice+0x16a5/0x1bb0 net/core/dev.c:10339
nsim_init_netdevsim drivers/net/netdevsim/netdev.c:343 [inline]
nsim_create+0x3ca/0x4a0 drivers/net/netdevsim/netdev.c:401
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1181 [inline]
free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458
__slab_free+0x35a/0x400 mm/slub.c:3736
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767
slab_alloc_node mm/slub.c:3495 [inline]
slab_alloc mm/slub.c:3503 [inline]
__kmem_cache_alloc_lru mm/slub.c:3510 [inline]
kmem_cache_alloc+0x11a/0x2d0 mm/slub.c:3519
getname_flags+0xbb/0x500 fs/namei.c:140
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4447 [inline]
__se_sys_unlink fs/namei.c:4445 [inline]
__x64_sys_unlink+0x3c/0x50 fs/namei.c:4445
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2

Memory state around the buggy address:
ffff888071ca6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888071ca6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888071ca6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888071ca6a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888071ca6a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Apr 9, 2026, 5:00:35 PM (12 days ago) Apr 9
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 80de0a958133 Linux 6.6.133
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=175c6e48580000
kernel config: https://syzkaller.appspot.com/x/.config?x=c5b35c4db8465904
dashboard link: https://syzkaller.appspot.com/bug?extid=324fb5bceaebab33cb61
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=104b2148580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/9396f91f008a/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=15ab07d6580000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+324fb5...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: slab-use-after-free in __pm_runtime_resume+0x14c/0x170 drivers/base/power/runtime.c:1163
Read of size 2 at addr ffff8880615109a8 by task syz.3.20/6015

CPU: 1 PID: 6015 Comm: syz.3.20 Not tainted syzkaller #0
RIP: 0033:0x7f20e8b9c819
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:00007f20e9987028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f20e8e16090 RCX: 00007f20e8b9c819
RDX: 0000000000000000 RSI: 0000200000000200 RDI: 0000000000000004
RBP: 00007f20e8c32c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f20e8e16128 R14: 00007f20e8e16090 R15: 00007ffdd38f4e18
</TASK>

Allocated by task 5882:
Freed by task 6004:
The buggy address belongs to the object at ffff888061510000
which belongs to the cache kmalloc-cg-4k of size 4096
The buggy address is located 2472 bytes inside of
freed 4096-byte region [ffff888061510000, ffff888061511000)

The buggy address belongs to the physical page:
page:ffffea0001854400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x61510
head:ffffea0001854400 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888060805201
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017c4f500 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000040004 00000001ffffffff ffff888060805201
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d60c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5882, tgid 5882 (syz-executor), ts 96708796971, free_ts 91904594498
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581
prep_new_page mm/page_alloc.c:1588 [inline]
get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220
__alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500
alloc_slab_page+0x5d/0x160 mm/slub.c:1881
allocate_slab mm/slub.c:2028 [inline]
new_slab+0x87/0x2d0 mm/slub.c:2081
___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253
__slab_alloc mm/slub.c:3339 [inline]
__slab_alloc_node mm/slub.c:3392 [inline]
slab_alloc_node mm/slub.c:3485 [inline]
__kmem_cache_alloc_node+0x19e/0x250 mm/slub.c:3534
__do_kmalloc_node mm/slab_common.c:1006 [inline]
__kmalloc_node+0xa4/0x230 mm/slab_common.c:1014
kmalloc_node include/linux/slab.h:620 [inline]
kvmalloc_node+0x70/0x180 mm/util.c:617
kvmalloc include/linux/slab.h:738 [inline]
kvzalloc include/linux/slab.h:746 [inline]
alloc_netdev_mqs+0x87/0x1040 net/core/dev.c:10855
rtnl_create_link+0x30e/0xd00 net/core/rtnetlink.c:3384
veth_newlink+0x2bc/0xc30 drivers/net/veth.c:1860
rtnl_newlink_create net/core/rtnetlink.c:3520 [inline]
__rtnl_newlink net/core/rtnetlink.c:3740 [inline]
rtnl_newlink+0x1542/0x20a0 net/core/rtnetlink.c:3753
rtnetlink_rcv_msg+0x869/0xfa0 net/core/rtnetlink.c:6475
netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545
netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1181 [inline]
free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458
vfree+0x1a6/0x320 mm/vmalloc.c:2868
kcov_put kernel/kcov.c:438 [inline]
kcov_close+0x2b/0x50 kernel/kcov.c:534
__fput+0x234/0x970 fs/file_table.c:384
task_work_run+0x1d4/0x260 kernel/task_work.c:245
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0x95a/0x2460 kernel/exit.c:883
do_group_exit+0x21b/0x2d0 kernel/exit.c:1024
get_signal+0x12fc/0x13f0 kernel/signal.c:2902
arch_do_signal_or_restart+0xc2/0x800 arch/x86/kernel/signal.c:310
exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
do_syscall_64+0x61/0xa0 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x68/0xd2

Memory state around the buggy address:
ffff888061510880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888061510900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888061510980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888061510a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888061510a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages