[syzbot] [net?] [virt?] memory leak in napi_skb_cache_get (2)

1 view
Skip to first unread message

syzbot

unread,
3:48 PM (3 hours ago) 3:48 PM
to andrew...@lunn.ch, da...@davemloft.net, edum...@google.com, eper...@redhat.com, jaso...@redhat.com, ku...@kernel.org, linux-...@vger.kernel.org, m...@redhat.com, net...@vger.kernel.org, pab...@redhat.com, syzkall...@googlegroups.com, virtual...@lists.linux.dev, xuan...@linux.alibaba.com
Hello,

syzbot found the following issue on:

HEAD commit: 0f61b1860cc3 Linux 6.19-rc5
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=110e7922580000
kernel config: https://syzkaller.appspot.com/x/.config?x=87bc41cae23d2144
dashboard link: https://syzkaller.appspot.com/bug?extid=7ff4013eabad1407b70a
compiler: gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1241a99a580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=165b8052580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/fba5be00b810/disk-0f61b186.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/fc83311cd569/vmlinux-0f61b186.xz
kernel image: https://storage.googleapis.com/syzbot-assets/005d9685b497/bzImage-0f61b186.xz

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

BUG: memory leak
unreferenced object 0xffff88810a03e300 (size 240):
comm "softirq", pid 0, jiffies 4294943617
hex dump (first 32 bytes):
90 dc d8 12 81 88 ff ff 90 dc d8 12 81 88 ff ff ................
00 00 00 00 00 00 00 00 00 dc d8 12 81 88 ff ff ................
backtrace (crc 2f85baf):
kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
slab_post_alloc_hook mm/slub.c:4958 [inline]
kmem_cache_alloc_bulk_noprof+0x22d/0x3e0 mm/slub.c:7521
napi_skb_cache_get+0xa9/0xd0 net/core/skbuff.c:291
__alloc_skb+0x214/0x2b0 net/core/skbuff.c:668
napi_alloc_skb+0x118/0x180 net/core/skbuff.c:832
page_to_skb+0xee/0x5e0 drivers/net/virtio_net.c:904
receive_mergeable drivers/net/virtio_net.c:2514 [inline]
receive_buf+0x49f/0x2670 drivers/net/virtio_net.c:2660
virtnet_receive_packets drivers/net/virtio_net.c:3023 [inline]
virtnet_receive drivers/net/virtio_net.c:3047 [inline]
virtnet_poll+0x7d6/0x16e0 drivers/net/virtio_net.c:3136
__napi_poll+0x44/0x3a0 net/core/dev.c:7668
napi_poll net/core/dev.c:7731 [inline]
net_rx_action+0x492/0x560 net/core/dev.c:7883
handle_softirqs+0xe1/0x2e0 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0x98/0xc0 kernel/softirq.c:723
common_interrupt+0x87/0xa0 arch/x86/kernel/irq.c:319
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:688

BUG: memory leak
unreferenced object 0xffff88810adf5e40 (size 704):
comm "kworker/u9:0", pid 51, jiffies 4294943617
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace (crc f18cfd82):
kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
slab_post_alloc_hook mm/slub.c:4958 [inline]
slab_alloc_node mm/slub.c:5263 [inline]
kmem_cache_alloc_node_noprof+0x384/0x5a0 mm/slub.c:5315
kmalloc_reserve+0xe6/0x180 net/core/skbuff.c:586
__alloc_skb+0x111/0x2b0 net/core/skbuff.c:690
alloc_skb include/linux/skbuff.h:1383 [inline]
__skb_tstamp_tx+0x162/0x4c0 net/core/skbuff.c:5677
hci_conn_tx_queue+0x11c/0x1d0 net/bluetooth/hci_conn.c:3049
hci_send_conn_frame net/bluetooth/hci_core.c:3086 [inline]
hci_sched_acl_pkt net/bluetooth/hci_core.c:3701 [inline]
hci_sched_acl net/bluetooth/hci_core.c:3726 [inline]
hci_tx_work+0x437/0x570 net/bluetooth/hci_core.c:3820
process_one_work+0x26b/0x620 kernel/workqueue.c:3257
process_scheduled_works kernel/workqueue.c:3340 [inline]
worker_thread+0x2c4/0x4f0 kernel/workqueue.c:3421
kthread+0x15b/0x310 kernel/kthread.c:463
ret_from_fork+0x2cf/0x300 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246

connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF


---
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 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.

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
Reply all
Reply to author
Forward
0 new messages