[<prev] [next>] [day] [month] [year] [list]
Message-ID: <0000000000008b78c00605e8e8aa@google.com>
Date: Thu, 21 Sep 2023 18:55:52 -0700
From: syzbot <syzbot+d2aa0f55c4ae66a9b75d@...kaller.appspotmail.com>
To: alex.aring@...il.com, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org, linux-wpan@...r.kernel.org,
miquel.raynal@...tlin.com, netdev@...r.kernel.org, pabeni@...hat.com,
stefan@...enfreihafen.org, syzkaller-bugs@...glegroups.com
Subject: [syzbot] [wpan?] [input?] [usb?] memory leak in hwsim_add_one (2)
Hello,
syzbot found the following issue on:
HEAD commit: e789286468a9 Merge tag 'x86-urgent-2023-09-17' of git://gi..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=16db487fa80000
kernel config: https://syzkaller.appspot.com/x/.config?x=943a94479fa8e863
dashboard link: https://syzkaller.appspot.com/bug?extid=d2aa0f55c4ae66a9b75d
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15cc8372680000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/60bec5b60566/disk-e7892864.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/509a449f2ff0/vmlinux-e7892864.xz
kernel image: https://storage.googleapis.com/syzbot-assets/36581da19789/bzImage-e7892864.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d2aa0f55c4ae66a9b75d@...kaller.appspotmail.com
BUG: memory leak
unreferenced object 0xffff8881042a8940 (size 64):
comm "swapper/0", pid 1, jiffies 4294937901 (age 1085.750s)
hex dump (first 32 bytes):
00 0d 00 00 00 00 00 00 ff ff ff ff 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff81573dc5>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff831b5a6a>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff831b5a6a>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff831b5a6a>] hwsim_add_one+0x14a/0x650 drivers/net/ieee802154/mac802154_hwsim.c:949
[<ffffffff831b5f93>] hwsim_probe+0x23/0xe0 drivers/net/ieee802154/mac802154_hwsim.c:1022
[<ffffffff82c14f93>] platform_probe+0x83/0x110 drivers/base/platform.c:1404
[<ffffffff82c10fc6>] call_driver_probe drivers/base/dd.c:579 [inline]
[<ffffffff82c10fc6>] really_probe+0x126/0x440 drivers/base/dd.c:658
[<ffffffff82c113a3>] __driver_probe_device+0xc3/0x190 drivers/base/dd.c:800
[<ffffffff82c1149a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830
[<ffffffff82c117f7>] __driver_attach drivers/base/dd.c:1216 [inline]
[<ffffffff82c117f7>] __driver_attach+0x107/0x1f0 drivers/base/dd.c:1156
[<ffffffff82c0e2f3>] bus_for_each_dev+0xb3/0x110 drivers/base/bus.c:368
[<ffffffff82c0fdf6>] bus_add_driver+0x126/0x2a0 drivers/base/bus.c:673
[<ffffffff82c12ee5>] driver_register+0x85/0x180 drivers/base/driver.c:246
[<ffffffff8756e3a6>] hwsim_init_module+0xc6/0x110 drivers/net/ieee802154/mac802154_hwsim.c:1073
[<ffffffff81001cb6>] do_one_initcall+0x76/0x430 init/main.c:1232
[<ffffffff874d76ea>] do_initcall_level init/main.c:1294 [inline]
[<ffffffff874d76ea>] do_initcalls init/main.c:1310 [inline]
[<ffffffff874d76ea>] do_basic_setup init/main.c:1329 [inline]
[<ffffffff874d76ea>] kernel_init_freeable+0x25a/0x460 init/main.c:1547
[<ffffffff84b3628b>] kernel_init+0x1b/0x290 init/main.c:1437
[<ffffffff81149e35>] ret_from_fork+0x45/0x50 arch/x86/kernel/process.c:147
BUG: memory leak
unreferenced object 0xffff8881042a8780 (size 64):
comm "swapper/0", pid 1, jiffies 4294937902 (age 1085.740s)
hex dump (first 32 bytes):
00 0d 00 00 00 00 00 00 ff ff ff ff 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff81573dc5>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff831b5a6a>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff831b5a6a>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff831b5a6a>] hwsim_add_one+0x14a/0x650 drivers/net/ieee802154/mac802154_hwsim.c:949
[<ffffffff831b5fb6>] hwsim_probe+0x46/0xe0 drivers/net/ieee802154/mac802154_hwsim.c:1022
[<ffffffff82c14f93>] platform_probe+0x83/0x110 drivers/base/platform.c:1404
[<ffffffff82c10fc6>] call_driver_probe drivers/base/dd.c:579 [inline]
[<ffffffff82c10fc6>] really_probe+0x126/0x440 drivers/base/dd.c:658
[<ffffffff82c113a3>] __driver_probe_device+0xc3/0x190 drivers/base/dd.c:800
[<ffffffff82c1149a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830
[<ffffffff82c117f7>] __driver_attach drivers/base/dd.c:1216 [inline]
[<ffffffff82c117f7>] __driver_attach+0x107/0x1f0 drivers/base/dd.c:1156
[<ffffffff82c0e2f3>] bus_for_each_dev+0xb3/0x110 drivers/base/bus.c:368
[<ffffffff82c0fdf6>] bus_add_driver+0x126/0x2a0 drivers/base/bus.c:673
[<ffffffff82c12ee5>] driver_register+0x85/0x180 drivers/base/driver.c:246
[<ffffffff8756e3a6>] hwsim_init_module+0xc6/0x110 drivers/net/ieee802154/mac802154_hwsim.c:1073
[<ffffffff81001cb6>] do_one_initcall+0x76/0x430 init/main.c:1232
[<ffffffff874d76ea>] do_initcall_level init/main.c:1294 [inline]
[<ffffffff874d76ea>] do_initcalls init/main.c:1310 [inline]
[<ffffffff874d76ea>] do_basic_setup init/main.c:1329 [inline]
[<ffffffff874d76ea>] kernel_init_freeable+0x25a/0x460 init/main.c:1547
[<ffffffff84b3628b>] kernel_init+0x1b/0x290 init/main.c:1437
[<ffffffff81149e35>] ret_from_fork+0x45/0x50 arch/x86/kernel/process.c:147
BUG: memory leak
unreferenced object 0xffff8881007cc000 (size 768):
comm "udevd", pid 4480, jiffies 4295045154 (age 13.270s)
hex dump (first 32 bytes):
01 00 00 00 03 00 00 00 08 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff83e8ff95>] alloc_inode_sb include/linux/fs.h:2909 [inline]
[<ffffffff83e8ff95>] sock_alloc_inode+0x25/0x90 net/socket.c:308
[<ffffffff816c39d3>] alloc_inode+0x23/0x100 fs/inode.c:259
[<ffffffff816c4bf6>] new_inode_pseudo+0x16/0x50 fs/inode.c:1004
[<ffffffff83e8f2ab>] sock_alloc+0x1b/0x90 net/socket.c:634
[<ffffffff83e8f8cd>] __sock_create+0xbd/0x2e0 net/socket.c:1516
[<ffffffff83e92d58>] sock_create net/socket.c:1603 [inline]
[<ffffffff83e92d58>] __sys_socket_create net/socket.c:1640 [inline]
[<ffffffff83e92d58>] __sys_socket+0xb8/0x1a0 net/socket.c:1691
[<ffffffff83e92e5b>] __do_sys_socket net/socket.c:1705 [inline]
[<ffffffff83e92e5b>] __se_sys_socket net/socket.c:1703 [inline]
[<ffffffff83e92e5b>] __x64_sys_socket+0x1b/0x20 net/socket.c:1703
[<ffffffff84b30fc8>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
[<ffffffff84b30fc8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
[<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd
BUG: memory leak
unreferenced object 0xffff88810c7019a0 (size 32):
comm "udevd", pid 4480, jiffies 4295045154 (age 13.270s)
hex dump (first 32 bytes):
b8 c1 7c 00 81 88 ff ff 70 3d 34 82 ff ff ff ff ..|.....p=4.....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff823457a2>] kmem_cache_zalloc include/linux/slab.h:710 [inline]
[<ffffffff823457a2>] lsm_inode_alloc security/security.c:633 [inline]
[<ffffffff823457a2>] security_inode_alloc+0x32/0xd0 security/security.c:1494
[<ffffffff816c01ad>] inode_init_always+0x1ed/0x230 fs/inode.c:230
[<ffffffff816c39f0>] alloc_inode+0x40/0x100 fs/inode.c:266
[<ffffffff816c4bf6>] new_inode_pseudo+0x16/0x50 fs/inode.c:1004
[<ffffffff83e8f2ab>] sock_alloc+0x1b/0x90 net/socket.c:634
[<ffffffff83e8f8cd>] __sock_create+0xbd/0x2e0 net/socket.c:1516
[<ffffffff83e92d58>] sock_create net/socket.c:1603 [inline]
[<ffffffff83e92d58>] __sys_socket_create net/socket.c:1640 [inline]
[<ffffffff83e92d58>] __sys_socket+0xb8/0x1a0 net/socket.c:1691
[<ffffffff83e92e5b>] __do_sys_socket net/socket.c:1705 [inline]
[<ffffffff83e92e5b>] __se_sys_socket net/socket.c:1703 [inline]
[<ffffffff83e92e5b>] __x64_sys_socket+0x1b/0x20 net/socket.c:1703
[<ffffffff84b30fc8>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
[<ffffffff84b30fc8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
[<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[
---
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 syzkaller@...glegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the bug is already fixed, 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 bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
Powered by blists - more mailing lists