syzbot


memory leak in netlbl_mgmt_add_common

Status: closed as invalid on 2021/10/06 01:19
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 649d, last: 575d

Sample crash report:
executing program
executing program
executing program
executing program
executing program
BUG: memory leak
unreferenced object 0xffff888110e7c740 (size 64):
  comm "syz-executor365", pid 8396, jiffies 4294949101 (age 17.950s)
  hex dump (first 32 bytes):
    05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 7f 00 00 05 01 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff83fc83f9>] kmalloc include/linux/slab.h:556 [inline]
    [<ffffffff83fc83f9>] kzalloc include/linux/slab.h:686 [inline]
    [<ffffffff83fc83f9>] netlbl_mgmt_add_common+0x549/0x670 net/netlabel/netlabel_mgmt.c:173
    [<ffffffff83fc861f>] netlbl_mgmt_add+0xff/0x170 net/netlabel/netlabel_mgmt.c:439
    [<ffffffff838043d3>] genl_family_rcv_msg_doit+0x113/0x180 net/netlink/genetlink.c:739
    [<ffffffff83804ab4>] genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
    [<ffffffff83804ab4>] genl_rcv_msg+0x174/0x2c0 net/netlink/genetlink.c:800
    [<ffffffff83803187>] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2502
    [<ffffffff83803a94>] genl_rcv+0x24/0x40 net/netlink/genetlink.c:811
    [<ffffffff83802372>] netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
    [<ffffffff83802372>] netlink_unicast+0x392/0x4c0 net/netlink/af_netlink.c:1338
    [<ffffffff83802808>] netlink_sendmsg+0x368/0x6a0 net/netlink/af_netlink.c:1927
    [<ffffffff83671ed6>] sock_sendmsg_nosec net/socket.c:654 [inline]
    [<ffffffff83671ed6>] sock_sendmsg+0x56/0x80 net/socket.c:674
    [<ffffffff8367243c>] ____sys_sendmsg+0x36c/0x390 net/socket.c:2350
    [<ffffffff8367648b>] ___sys_sendmsg+0x8b/0xd0 net/socket.c:2404
    [<ffffffff83676588>] __sys_sendmsg+0x88/0x100 net/socket.c:2433
    [<ffffffff8432a8ba>] do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae

BUG: memory leak
unreferenced object 0xffff888110e7c340 (size 64):
  comm "syz-executor365", pid 8397, jiffies 4294949630 (age 12.660s)
  hex dump (first 32 bytes):
    05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 7f 00 00 05 01 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff83fc83f9>] kmalloc include/linux/slab.h:556 [inline]
    [<ffffffff83fc83f9>] kzalloc include/linux/slab.h:686 [inline]
    [<ffffffff83fc83f9>] netlbl_mgmt_add_common+0x549/0x670 net/netlabel/netlabel_mgmt.c:173
    [<ffffffff83fc861f>] netlbl_mgmt_add+0xff/0x170 net/netlabel/netlabel_mgmt.c:439
    [<ffffffff838043d3>] genl_family_rcv_msg_doit+0x113/0x180 net/netlink/genetlink.c:739
    [<ffffffff83804ab4>] genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
    [<ffffffff83804ab4>] genl_rcv_msg+0x174/0x2c0 net/netlink/genetlink.c:800
    [<ffffffff83803187>] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2502
    [<ffffffff83803a94>] genl_rcv+0x24/0x40 net/netlink/genetlink.c:811
    [<ffffffff83802372>] netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
    [<ffffffff83802372>] netlink_unicast+0x392/0x4c0 net/netlink/af_netlink.c:1338
    [<ffffffff83802808>] netlink_sendmsg+0x368/0x6a0 net/netlink/af_netlink.c:1927
    [<ffffffff83671ed6>] sock_sendmsg_nosec net/socket.c:654 [inline]
    [<ffffffff83671ed6>] sock_sendmsg+0x56/0x80 net/socket.c:674
    [<ffffffff8367243c>] ____sys_sendmsg+0x36c/0x390 net/socket.c:2350
    [<ffffffff8367648b>] ___sys_sendmsg+0x8b/0xd0 net/socket.c:2404
    [<ffffffff83676588>] __sys_sendmsg+0x88/0x100 net/socket.c:2433
    [<ffffffff8432a8ba>] do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae


Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2021/05/06 08:47 upstream 8404c9fbc84b 06c27ff5 .config log report syz C memory leak in netlbl_mgmt_add_common
ci-upstream-gce-leak 2021/02/27 08:17 upstream 3fb6d0e00efc 4c37c133 .config log report syz C memory leak in netlbl_mgmt_add_common
ci-upstream-gce-leak 2021/02/21 21:52 upstream 55f62bc87347 a659b3f1 .config log report syz C memory leak in netlbl_mgmt_add_common
* Struck through repros no longer work on HEAD.