From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C444C43603 for ; Sun, 15 Dec 2019 20:35:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E32102467A for ; Sun, 15 Dec 2019 20:35:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbfLOUfL (ORCPT ); Sun, 15 Dec 2019 15:35:11 -0500 Received: from mail-il1-f198.google.com ([209.85.166.198]:35941 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726426AbfLOUfK (ORCPT ); Sun, 15 Dec 2019 15:35:10 -0500 Received: by mail-il1-f198.google.com with SMTP id t2so4884503ilp.3 for ; Sun, 15 Dec 2019 12:35:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=FbW0hhe3HO2dfqUoZ0wNv6D+Jlo2ACVTP6rfiW2dl/g=; b=bJXArJNs99W3AO/i0pgtH/vECjAK3RT+PCi8Z05CsJFotLNtfpcnO9IHaIwpYlpBw+ /LcW4b9mRgFfxx+k83JadYqxiah/IjQkAPfz2Uq4kkT7vyScNmYvlbzY471dKH2h3kzd TqUOTrIckh8hO5KVBiqxIHPRgSJUkah6efz0bdk3K2LKT6EV+1bUCCtK2JNTKbTk+nOo pOQGr3zopTnP69Lh8qj1EcGtZa/+tqAMoZRmhGEYIsac8xPc2MLyL4yByLgZMDZZZURk l/0K2C9SdMBtfQgdVKtvU69wP0GF+MXu5NKTeaPFoWQFrP12v3RLU4/NjotyVwwRLEGd qKxQ== X-Gm-Message-State: APjAAAUjsfEecXJxm+Ra/WTcqzqHJ7qzbPFFW1rwqzJ9maN9St6pUTSU OyHgFgsseinksDXm2A42ka4Vxp3qrCVPgdqc482ta4qdDruD X-Google-Smtp-Source: APXvYqxKMvFbiYvAalDzLbZgG1sB0G/cGyiDypwtXO4YJIPxNY/LpNhAc18ZGWk3jdvGa9Hrr7avqZRBoBrpM0VLYzh/Dh5pHDYR MIME-Version: 1.0 X-Received: by 2002:a92:51:: with SMTP id 78mr9545434ila.121.1576442109699; Sun, 15 Dec 2019 12:35:09 -0800 (PST) Date: Sun, 15 Dec 2019 12:35:09 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f531080599c4073c@google.com> Subject: memory leak in sctp_stream_init From: syzbot To: davem@davemloft.net, linux-kernel@vger.kernel.org, linux-sctp@vger.kernel.org, marcelo.leitner@gmail.com, netdev@vger.kernel.org, nhorman@tuxdriver.com, syzkaller-bugs@googlegroups.com, vyasevich@gmail.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: e31736d9 Merge tag 'nios2-v5.5-rc2' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=126a177ee00000 kernel config: https://syzkaller.appspot.com/x/.config?x=bbf3a35184a3ed64 dashboard link: https://syzkaller.appspot.com/bug?extid=772d9e36c490b18d51d1 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15602ddee00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12798251e00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+772d9e36c490b18d51d1@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff8881080a3000 (size 4096): comm "syz-executor474", pid 7155, jiffies 4294942658 (age 15.870s) 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: [<00000000df094087>] genradix_alloc_node lib/generic-radix-tree.c:90 [inline] [<00000000df094087>] __genradix_ptr_alloc+0xf5/0x250 lib/generic-radix-tree.c:122 [<0000000057cfa7bb>] __genradix_prealloc+0x46/0x70 lib/generic-radix-tree.c:223 [<0000000029d02dac>] sctp_stream_alloc_out.part.0+0x57/0x80 net/sctp/stream.c:86 [<00000000bb930a04>] sctp_stream_alloc_out net/sctp/stream.c:151 [inline] [<00000000bb930a04>] sctp_stream_init+0x129/0x180 net/sctp/stream.c:129 [<00000000ba13c246>] sctp_association_init net/sctp/associola.c:229 [inline] [<00000000ba13c246>] sctp_association_new+0x46e/0x700 net/sctp/associola.c:295 [<000000008eb57b4d>] sctp_connect_new_asoc+0x90/0x220 net/sctp/socket.c:1070 [<00000000ea24e048>] __sctp_connect+0x182/0x3b0 net/sctp/socket.c:1176 [<00000000aa2c530a>] __sctp_setsockopt_connectx+0xa9/0xf0 net/sctp/socket.c:1322 [<0000000018934bfd>] sctp_getsockopt_connectx3 net/sctp/socket.c:1407 [inline] [<0000000018934bfd>] sctp_getsockopt net/sctp/socket.c:8079 [inline] [<0000000018934bfd>] sctp_getsockopt+0x1394/0x32f6 net/sctp/socket.c:8010 [<000000005fd7e3c8>] sock_common_getsockopt+0x38/0x50 net/core/sock.c:3108 [<00000000333baf72>] __sys_getsockopt+0xa8/0x180 net/socket.c:2162 [<00000000de0f98e4>] __do_sys_getsockopt net/socket.c:2177 [inline] [<00000000de0f98e4>] __se_sys_getsockopt net/socket.c:2174 [inline] [<00000000de0f98e4>] __x64_sys_getsockopt+0x26/0x30 net/socket.c:2174 [<00000000cf1dfee9>] do_syscall_64+0x73/0x220 arch/x86/entry/common.c:294 [<000000000f416860>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 --- This bug 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@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches