netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: syzbot <syzbot+079bf326b38072f849d9@syzkaller.appspotmail.com>
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
Subject: memory leak in sctp_get_port_local
Date: Tue, 28 May 2019 11:28:05 -0700	[thread overview]
Message-ID: <00000000000069c3140589f6d3b7@google.com> (raw)

Hello,

syzbot found the following crash on:

HEAD commit:    cd6c84d8 Linux 5.2-rc2
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=101a184aa00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=64479170dcaf0e11
dashboard link: https://syzkaller.appspot.com/bug?extid=079bf326b38072f849d9
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=13b5dbbca00000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=1038444aa00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+079bf326b38072f849d9@syzkaller.appspotmail.com

: Permanently added '10.128.0.127' (ECDSA) to the list of known hosts.
executing program
executing program
BUG: memory leak
unreferenced object 0xffff8881288ca380 (size 64):
   comm "softirq", pid 0, jiffies 4294944468 (age 13.410s)
   hex dump (first 32 bytes):
     21 4e 00 00 00 00 00 00 00 00 00 00 00 00 00 00  !N..............
     28 ae 85 23 81 88 ff ff 00 00 00 00 00 00 00 00  (..#............
   backtrace:
     [<0000000054ece54d>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000054ece54d>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000054ece54d>] slab_alloc mm/slab.c:3326 [inline]
     [<0000000054ece54d>] kmem_cache_alloc+0x134/0x270 mm/slab.c:3488
     [<00000000d992ea84>] sctp_bucket_create net/sctp/socket.c:8395 [inline]
     [<00000000d992ea84>] sctp_get_port_local+0x189/0x5b0  
net/sctp/socket.c:8142
     [<0000000099206d90>] sctp_do_bind+0xcc/0x1e0 net/sctp/socket.c:402
     [<00000000b8795757>] sctp_bind+0x44/0x70 net/sctp/socket.c:302
     [<00000000672a44aa>] inet6_bind+0x40/0xb7 net/ipv6/af_inet6.c:445
     [<0000000001400e1c>] __sys_bind+0x11c/0x140 net/socket.c:1659
     [<00000000e69e8036>] __do_sys_bind net/socket.c:1670 [inline]
     [<00000000e69e8036>] __se_sys_bind net/socket.c:1668 [inline]
     [<00000000e69e8036>] __x64_sys_bind+0x1e/0x30 net/socket.c:1668
     [<000000001644bb1f>] do_syscall_64+0x76/0x1a0  
arch/x86/entry/common.c:301
     [<00000000199a1ea2>] 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

             reply	other threads:[~2019-05-28 18:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28 18:28 syzbot [this message]
2019-06-25 12:49 ` memory leak in sctp_get_port_local Xin Long

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=00000000000069c3140589f6d3b7@google.com \
    --to=syzbot+079bf326b38072f849d9@syzkaller.appspotmail.com \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sctp@vger.kernel.org \
    --cc=marcelo.leitner@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@tuxdriver.com \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=vyasevich@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).