Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp719262ybi; Fri, 31 May 2019 07:59:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxw2/RPvGXE9cl3UJUnBT63msw+Zm3bILxq6RAZvtgeTgHkKg82G4Hx77OxiRizr0lAriy X-Received: by 2002:a17:90a:26cf:: with SMTP id m73mr10024824pje.90.1559314796333; Fri, 31 May 2019 07:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559314796; cv=none; d=google.com; s=arc-20160816; b=z3a2B5qACmcFf/OBil/FzINOxWGLnibNllqHAXAuNlCLMNI93kQS4Pe8NTRwIlmK2w I3TMOTCtycmhopCuKxGQMlCwy+5qI45lzHcHH/Y9tQMA81b+YMT1Vmp09w8Y5M2oGRm8 McKosOZ0TobH6zfJ74IIUWSsoSuLaJBVGQpUTJhnnaV0ibX3A3QQF6XmX0MxGBfEut6o XCMvlZbjjMSmOiWcsGnV/fuhJnmCAEPbeGWFYw7/2Q5u6DY2MghwqYIFA6nbK+UzpVub BvXczLim/z56GDFe29gBcg2PLVS8uq3/yoNhVyJOXdZrt5T/u1RcxO1QfGYoLDSkG9AP 1RmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=VAWNQSWXRFPjqWqvcnCxEWc2vR3xbR4pd4DDjFUHobY=; b=p8M8A15ySbDyzgtCNSkYMa9MKDaZLkzBpDEjSEM0vz+TGTTNZzBSQpwTcZwL+A6RKG l2kMoox/cyN/hLZpHMrIOSzrdE9JySTRrI3JiqtVdVrBjZCU9OkB6d01xagyHXXhjbTS 7xUNgrCIE1Ohpam+3ZL9x+9e1jTkANE6KvIooQAr2DJF3uX05Sg83K9VDkQnuYRXoLI1 jzJRwwKz9TVJ4pMJNzSBOCQrh8yf0f0IfsI+mzNKsLxlmyx2jEwwq6rGJSxVElQk2aV1 ts8oW4xToSdZO0xUTAnyYv8gDK990IKmJ/LJw84lRJHtnjsBp9i0jegXOowx0jYOQPmV 3Hcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s129si6196493pgs.436.2019.05.31.07.59.39; Fri, 31 May 2019 07:59:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726774AbfEaO6P (ORCPT + 99 others); Fri, 31 May 2019 10:58:15 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:38795 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbfEaO6H (ORCPT ); Fri, 31 May 2019 10:58:07 -0400 Received: by mail-io1-f69.google.com with SMTP id w3so7828170iot.5 for ; Fri, 31 May 2019 07:58:06 -0700 (PDT) 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=VAWNQSWXRFPjqWqvcnCxEWc2vR3xbR4pd4DDjFUHobY=; b=L8gllNKQdwrP8J4BKTm7kYrjV2WP4hPgFfZen/A0wiAWjnMI6WoBs70fpAJGhnB/uX KpMqq+cM3w6EjBvuNJ8gbYrEW8Z9SqDpHOehFkbYJw3EYxesDpbE13Ga8xG+TGrDoOGt yrCaTE7E9LBVZgmFIgeg4n4TiWPwN5nwoWKpfC60ADnJuqcNEY8qL7VyRRgYaRLJP6tr XeDL+rpjoJedw6ocglLfQjd0zfQwG6JeD7XBEp0j4msJ4tj3yrxgWZPr+QUnVhwCDavk 6PE+v9SFxjIkgWRw2LdFLgUKTWAF1QNlRYj2b77ggCCzv+5NB6WhGBqoVi3Tz9u1pwvb p1mg== X-Gm-Message-State: APjAAAVSxXmrji7Ervv1J9sECrydEIxMO4NeN/I1blA8F+EQBmTihivH Ry+4RrCiUwMHI9UvylBoQWgxW+28YxaabX867uBgJYPHfIt9 MIME-Version: 1.0 X-Received: by 2002:a05:660c:444:: with SMTP id d4mr7089633itl.158.1559314685827; Fri, 31 May 2019 07:58:05 -0700 (PDT) Date: Fri, 31 May 2019 07:58:05 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f122ab058a303d94@google.com> Subject: memory leak in sctp_stream_init_ext 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: bec7550c Merge tag 'docs-5.2-fixes2' of git://git.lwn.net/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=152a0916a00000 kernel config: https://syzkaller.appspot.com/x/.config?x=64479170dcaf0e11 dashboard link: https://syzkaller.appspot.com/bug?extid=7f3b6b106be8dcdcdeec compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1142cd4ca00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10f81d72a00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+7f3b6b106be8dcdcdeec@syzkaller.appspotmail.com executing program executing program executing program executing program executing program BUG: memory leak unreferenced object 0xffff8881114f5d80 (size 96): comm "syz-executor934", pid 7160, jiffies 4294993058 (age 31.950s) 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: [<00000000ce7a1326>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline] [<00000000ce7a1326>] slab_post_alloc_hook mm/slab.h:439 [inline] [<00000000ce7a1326>] slab_alloc mm/slab.c:3326 [inline] [<00000000ce7a1326>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553 [<000000007abb7ac9>] kmalloc include/linux/slab.h:547 [inline] [<000000007abb7ac9>] kzalloc include/linux/slab.h:742 [inline] [<000000007abb7ac9>] sctp_stream_init_ext+0x2b/0xa0 net/sctp/stream.c:157 [<0000000048ecb9c1>] sctp_sendmsg_to_asoc+0x946/0xa00 net/sctp/socket.c:1882 [<000000004483ca2b>] sctp_sendmsg+0x2a8/0x990 net/sctp/socket.c:2102 [<0000000094bdc32e>] inet_sendmsg+0x64/0x120 net/ipv4/af_inet.c:802 [<0000000022d1c2a5>] sock_sendmsg_nosec net/socket.c:652 [inline] [<0000000022d1c2a5>] sock_sendmsg+0x54/0x70 net/socket.c:671 [<000000006ab53119>] sock_write_iter+0xb6/0x130 net/socket.c:1000 [<00000000973772ef>] call_write_iter include/linux/fs.h:1872 [inline] [<00000000973772ef>] new_sync_write+0x1ad/0x260 fs/read_write.c:483 [<0000000033f2491b>] __vfs_write+0x87/0xa0 fs/read_write.c:496 [<00000000372fbd56>] vfs_write fs/read_write.c:558 [inline] [<00000000372fbd56>] vfs_write+0xee/0x210 fs/read_write.c:542 [<000000007ccb2ea5>] ksys_write+0x7c/0x130 fs/read_write.c:611 [<000000001c29b8c7>] __do_sys_write fs/read_write.c:623 [inline] [<000000001c29b8c7>] __se_sys_write fs/read_write.c:620 [inline] [<000000001c29b8c7>] __x64_sys_write+0x1e/0x30 fs/read_write.c:620 [<0000000014d9243b>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301 [<0000000059f6e9a8>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 BUG: memory leak unreferenced object 0xffff8881114f5d80 (size 96): comm "syz-executor934", pid 7160, jiffies 4294993058 (age 33.160s) 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: [<00000000ce7a1326>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline] [<00000000ce7a1326>] slab_post_alloc_hook mm/slab.h:439 [inline] [<00000000ce7a1326>] slab_alloc mm/slab.c:3326 [inline] [<00000000ce7a1326>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553 [<000000007abb7ac9>] kmalloc include/linux/slab.h:547 [inline] [<000000007abb7ac9>] kzalloc include/linux/slab.h:742 [inline] [<000000007abb7ac9>] sctp_stream_init_ext+0x2b/0xa0 net/sctp/stream.c:157 [<0000000048ecb9c1>] sctp_sendmsg_to_asoc+0x946/0xa00 net/sctp/socket.c:1882 [<000000004483ca2b>] sctp_sendmsg+0x2a8/0x990 net/sctp/socket.c:2102 [<0000000094bdc32e>] inet_sendmsg+0x64/0x120 net/ipv4/af_inet.c:802 [<0000000022d1c2a5>] sock_sendmsg_nosec net/socket.c:652 [inline] [<0000000022d1c2a5>] sock_sendmsg+0x54/0x70 net/socket.c:671 [<000000006ab53119>] sock_write_iter+0xb6/0x130 net/socket.c:1000 [<00000000973772ef>] call_write_iter include/linux/fs.h:1872 [inline] [<00000000973772ef>] new_sync_write+0x1ad/0x260 fs/read_write.c:483 [<0000000033f2491b>] __vfs_write+0x87/0xa0 fs/read_write.c:496 [<00000000372fbd56>] vfs_write fs/read_write.c:558 [inline] [<00000000372fbd56>] vfs_write+0xee/0x210 fs/read_write.c:542 [<000000007ccb2ea5>] ksys_write+0x7c/0x130 fs/read_write.c:611 [<000000001c29b8c7>] __do_sys_write fs/read_write.c:623 [inline] [<000000001c29b8c7>] __se_sys_write fs/read_write.c:620 [inline] [<000000001c29b8c7>] __x64_sys_write+0x1e/0x30 fs/read_write.c:620 [<0000000014d9243b>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301 [<0000000059f6e9a8>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 executing program executing program executing program executing program executing program executing program --- 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