syzbot


memory leak in tcindex_set_parms (2)

Status: closed as invalid on 2022/10/12 18:48
Subsystems: net
[Documentation on labels]
First crash: 748d, last: 643d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in tcindex_set_parms net C 94 1051d 1536d 20/26 fixed on 2021/11/10 00:50
upstream memory leak in tcindex_set_parms (3) net C 1 504d 500d 22/26 fixed on 2023/06/08 14:41

Sample crash report:
executing program
BUG: memory leak
unreferenced object 0xffff88810c2d0f00 (size 256):
  comm "syz-executor188", pid 3597, jiffies 4294944207 (age 12.460s)
  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:
    [<ffffffff839d8947>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff839d8947>] kmalloc_array include/linux/slab.h:639 [inline]
    [<ffffffff839d8947>] kcalloc include/linux/slab.h:671 [inline]
    [<ffffffff839d8947>] tcf_exts_init include/net/pkt_cls.h:225 [inline]
    [<ffffffff839d8947>] tcindex_set_parms+0xa7/0xbe0 net/sched/cls_tcindex.c:342
    [<ffffffff839d955f>] tcindex_change+0xdf/0x120 net/sched/cls_tcindex.c:553
    [<ffffffff8395aba1>] tc_new_tfilter+0x521/0x1110 net/sched/cls_api.c:2148
    [<ffffffff838ad07f>] rtnetlink_rcv_msg+0x4cf/0x5c0 net/core/rtnetlink.c:6080
    [<ffffffff839fa3b7>] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2501
    [<ffffffff839f9527>] netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
    [<ffffffff839f9527>] netlink_unicast+0x397/0x4c0 net/netlink/af_netlink.c:1345
    [<ffffffff839f99e6>] netlink_sendmsg+0x396/0x710 net/netlink/af_netlink.c:1921
    [<ffffffff8384e306>] sock_sendmsg_nosec net/socket.c:714 [inline]
    [<ffffffff8384e306>] sock_sendmsg+0x56/0x80 net/socket.c:734
    [<ffffffff8384e67a>] ____sys_sendmsg+0x17a/0x390 net/socket.c:2488
    [<ffffffff83852adb>] ___sys_sendmsg+0x8b/0xd0 net/socket.c:2542
    [<ffffffff83852f32>] __sys_sendmmsg+0x102/0x320 net/socket.c:2628
    [<ffffffff83853174>] __do_sys_sendmmsg net/socket.c:2657 [inline]
    [<ffffffff83853174>] __se_sys_sendmmsg net/socket.c:2654 [inline]
    [<ffffffff83853174>] __x64_sys_sendmmsg+0x24/0x30 net/socket.c:2654
    [<ffffffff845ad915>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff845ad915>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84600087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810c2d0e00 (size 256):
  comm "syz-executor188", pid 3597, jiffies 4294944207 (age 12.460s)
  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:
    [<ffffffff839d8947>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff839d8947>] kmalloc_array include/linux/slab.h:639 [inline]
    [<ffffffff839d8947>] kcalloc include/linux/slab.h:671 [inline]
    [<ffffffff839d8947>] tcf_exts_init include/net/pkt_cls.h:225 [inline]
    [<ffffffff839d8947>] tcindex_set_parms+0xa7/0xbe0 net/sched/cls_tcindex.c:342
    [<ffffffff839d955f>] tcindex_change+0xdf/0x120 net/sched/cls_tcindex.c:553
    [<ffffffff8395aba1>] tc_new_tfilter+0x521/0x1110 net/sched/cls_api.c:2148
    [<ffffffff838ad07f>] rtnetlink_rcv_msg+0x4cf/0x5c0 net/core/rtnetlink.c:6080
    [<ffffffff839fa3b7>] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2501
    [<ffffffff839f9527>] netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
    [<ffffffff839f9527>] netlink_unicast+0x397/0x4c0 net/netlink/af_netlink.c:1345
    [<ffffffff839f99e6>] netlink_sendmsg+0x396/0x710 net/netlink/af_netlink.c:1921
    [<ffffffff8384e306>] sock_sendmsg_nosec net/socket.c:714 [inline]
    [<ffffffff8384e306>] sock_sendmsg+0x56/0x80 net/socket.c:734
    [<ffffffff8384e67a>] ____sys_sendmsg+0x17a/0x390 net/socket.c:2488
    [<ffffffff83852adb>] ___sys_sendmsg+0x8b/0xd0 net/socket.c:2542
    [<ffffffff83852f32>] __sys_sendmmsg+0x102/0x320 net/socket.c:2628
    [<ffffffff83853174>] __do_sys_sendmmsg net/socket.c:2657 [inline]
    [<ffffffff83853174>] __se_sys_sendmmsg net/socket.c:2654 [inline]
    [<ffffffff83853174>] __x64_sys_sendmmsg+0x24/0x30 net/socket.c:2654
    [<ffffffff845ad915>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff845ad915>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84600087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810a348d00 (size 256):
  comm "syz-executor188", pid 3605, jiffies 4294944728 (age 7.250s)
  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:
    [<ffffffff839d8947>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff839d8947>] kmalloc_array include/linux/slab.h:639 [inline]
    [<ffffffff839d8947>] kcalloc include/linux/slab.h:671 [inline]
    [<ffffffff839d8947>] tcf_exts_init include/net/pkt_cls.h:225 [inline]
    [<ffffffff839d8947>] tcindex_set_parms+0xa7/0xbe0 net/sched/cls_tcindex.c:342
    [<ffffffff839d955f>] tcindex_change+0xdf/0x120 net/sched/cls_tcindex.c:553
    [<ffffffff8395aba1>] tc_new_tfilter+0x521/0x1110 net/sched/cls_api.c:2148
    [<ffffffff838ad07f>] rtnetlink_rcv_msg+0x4cf/0x5c0 net/core/rtnetlink.c:6080
    [<ffffffff839fa3b7>] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2501
    [<ffffffff839f9527>] netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
    [<ffffffff839f9527>] netlink_unicast+0x397/0x4c0 net/netlink/af_netlink.c:1345
    [<ffffffff839f99e6>] netlink_sendmsg+0x396/0x710 net/netlink/af_netlink.c:1921
    [<ffffffff8384e306>] sock_sendmsg_nosec net/socket.c:714 [inline]
    [<ffffffff8384e306>] sock_sendmsg+0x56/0x80 net/socket.c:734
    [<ffffffff8384e67a>] ____sys_sendmsg+0x17a/0x390 net/socket.c:2488
    [<ffffffff83852adb>] ___sys_sendmsg+0x8b/0xd0 net/socket.c:2542
    [<ffffffff83852f32>] __sys_sendmmsg+0x102/0x320 net/socket.c:2628
    [<ffffffff83853174>] __do_sys_sendmmsg net/socket.c:2657 [inline]
    [<ffffffff83853174>] __se_sys_sendmmsg net/socket.c:2654 [inline]
    [<ffffffff83853174>] __x64_sys_sendmmsg+0x24/0x30 net/socket.c:2654
    [<ffffffff845ad915>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff845ad915>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84600087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/16 15:31 upstream 9b59ec8d50a1 95cb00d1 .config console log report syz C ci-upstream-gce-leak memory leak in tcindex_set_parms
2022/04/03 12:40 upstream be2d3ecedd99 79a2a8fc .config console log report syz C ci-upstream-gce-leak memory leak in tcindex_set_parms
* Struck through repros no longer work on HEAD.