[syzbot] [net?] memory leak in vlan_vid_add

0 views
Skip to first unread message

syzbot

unread,
4:20 AM (9 hours ago) 4:20 AM
to da...@davemloft.net, edum...@google.com, ho...@kernel.org, ku...@kernel.org, linux-...@vger.kernel.org, net...@vger.kernel.org, pab...@redhat.com, syzkall...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 71dfdfb0209b Merge tag 'vfs-7.2-rc2.fixes' of git://git.ke..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13bbf1b1580000
kernel config: https://syzkaller.appspot.com/x/.config?x=b80376788da8bcda
dashboard link: https://syzkaller.appspot.com/bug?extid=456957213f32970c0762
compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10166ffe580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16218b1c580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d3c154e8d39b/disk-71dfdfb0.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/9f35a0982146/vmlinux-71dfdfb0.xz
kernel image: https://storage.googleapis.com/syzbot-assets/fc56d29c15a3/bzImage-71dfdfb0.xz

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

BUG: memory leak
unreferenced object 0xffff8881147f3c00 (size 256):
comm "syz-executor", pid 5805, jiffies 4294943736
hex dump (first 32 bytes):
00 40 02 0b 81 88 ff ff 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 a66a6b91):
kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
slab_post_alloc_hook mm/slub.c:4625 [inline]
slab_alloc_node mm/slub.c:4945 [inline]
__kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5511
_kmalloc_noprof include/linux/slab.h:969 [inline]
_kzalloc_noprof include/linux/slab.h:1290 [inline]
vlan_info_alloc net/8021q/vlan_core.c:153 [inline]
vlan_vid_add+0x1ff/0x2b0 net/8021q/vlan_core.c:329
vlan_vid0_add net/8021q/vlan.c:349 [inline]
vlan_device_event.cold+0x27/0x65 net/8021q/vlan.c:388
notifier_call_chain+0x59/0x160 kernel/notifier.c:85
call_netdevice_notifiers_info+0x7d/0xb0 net/core/dev.c:2250
call_netdevice_notifiers_extack net/core/dev.c:2288 [inline]
call_netdevice_notifiers net/core/dev.c:2302 [inline]
__dev_notify_flags+0xb1/0x1b0 net/core/dev.c:9793
netif_change_flags+0x71/0x90 net/core/dev.c:9822
do_setlink.isra.0+0x50e/0x1ce0 net/core/rtnetlink.c:3215
rtnl_changelink net/core/rtnetlink.c:3849 [inline]
__rtnl_newlink net/core/rtnetlink.c:4022 [inline]
rtnl_newlink+0xb23/0x1310 net/core/rtnetlink.c:4159
rtnetlink_rcv_msg+0x52b/0x600 net/core/rtnetlink.c:7076
netlink_rcv_skb+0x89/0x1c0 net/netlink/af_netlink.c:2556
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x38f/0x4e0 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x335/0x690 net/netlink/af_netlink.c:1900
sock_sendmsg_nosec net/socket.c:775 [inline]
__sock_sendmsg net/socket.c:790 [inline]
__sys_sendto+0x2ca/0x2e0 net/socket.c:2252
__do_sys_sendto net/socket.c:2259 [inline]
__se_sys_sendto net/socket.c:2255 [inline]
__x64_sys_sendto+0x28/0x30 net/socket.c:2255
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94

BUG: memory leak
unreferenced object 0xffff8881127a3660 (size 32):
comm "syz-executor", pid 5805, jiffies 4294943736
hex dump (first 32 bytes):
a0 3c 7f 14 81 88 ff ff a0 3c 7f 14 81 88 ff ff .<.......<......
81 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace (crc a6a88710):
kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
slab_post_alloc_hook mm/slub.c:4625 [inline]
slab_alloc_node mm/slub.c:4945 [inline]
__kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5511
_kmalloc_noprof include/linux/slab.h:969 [inline]
_kzalloc_noprof include/linux/slab.h:1290 [inline]
vlan_vid_info_alloc net/8021q/vlan_core.c:196 [inline]
__vlan_vid_add net/8021q/vlan_core.c:302 [inline]
vlan_vid_add+0x14f/0x2b0 net/8021q/vlan_core.c:336
vlan_vid0_add net/8021q/vlan.c:349 [inline]
vlan_device_event.cold+0x27/0x65 net/8021q/vlan.c:388
notifier_call_chain+0x59/0x160 kernel/notifier.c:85
call_netdevice_notifiers_info+0x7d/0xb0 net/core/dev.c:2250
call_netdevice_notifiers_extack net/core/dev.c:2288 [inline]
call_netdevice_notifiers net/core/dev.c:2302 [inline]
__dev_notify_flags+0xb1/0x1b0 net/core/dev.c:9793
netif_change_flags+0x71/0x90 net/core/dev.c:9822
do_setlink.isra.0+0x50e/0x1ce0 net/core/rtnetlink.c:3215
rtnl_changelink net/core/rtnetlink.c:3849 [inline]
__rtnl_newlink net/core/rtnetlink.c:4022 [inline]
rtnl_newlink+0xb23/0x1310 net/core/rtnetlink.c:4159
rtnetlink_rcv_msg+0x52b/0x600 net/core/rtnetlink.c:7076
netlink_rcv_skb+0x89/0x1c0 net/netlink/af_netlink.c:2556
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x38f/0x4e0 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x335/0x690 net/netlink/af_netlink.c:1900
sock_sendmsg_nosec net/socket.c:775 [inline]
__sock_sendmsg net/socket.c:790 [inline]
__sys_sendto+0x2ca/0x2e0 net/socket.c:2252
__do_sys_sendto net/socket.c:2259 [inline]
__se_sys_sendto net/socket.c:2255 [inline]
__x64_sys_sendto+0x28/0x30 net/socket.c:2255
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94

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