lkml.org 
[lkml]   [2019]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectmemory leak in sctp_v4_create_accept_sk
From
Hello,

syzbot found the following crash on:

HEAD commit: abf02e29 Merge tag 'pm-5.2-rc6' of git://git.kernel.org/pu..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13470eb2a00000
kernel config: https://syzkaller.appspot.com/x/.config?x=56f1da14935c3cce
dashboard link: https://syzkaller.appspot.com/bug?extid=afabda3890cc2f765041
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15100a91a00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10c46026a00000

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

ffffffffda RBX: 00000000006fbc38 RCX: 0000000000446a79
BUG: memory leak
unreferenced object 0xffff888118137680 (size 1352):
comm "syz-executor360", pid 7164, jiffies 4294941839 (age 13.960s)
hex dump (first 32 bytes):
ac 14 ff aa 0a 80 01 1a 00 00 00 00 00 00 00 00 ................
02 00 07 40 00 00 00 00 00 00 00 00 00 00 00 00 ...@............
backtrace:
[<000000006c358063>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000006c358063>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000006c358063>] slab_alloc mm/slab.c:3326 [inline]
[<000000006c358063>] kmem_cache_alloc+0x134/0x270 mm/slab.c:3488
[<00000000f2fb26e7>] sk_prot_alloc+0x41/0x170 net/core/sock.c:1596
[<000000003c036edc>] sk_alloc+0x35/0x2f0 net/core/sock.c:1656
[<00000000c25725a4>] sctp_v4_create_accept_sk+0x32/0xb0
net/sctp/protocol.c:556
[<0000000049bd7e55>] sctp_accept+0x1df/0x290 net/sctp/socket.c:4913
[<00000000d287a63e>] inet_accept+0x4e/0x1d0 net/ipv4/af_inet.c:734
[<00000000acb0fc20>] __sys_accept4+0x12a/0x280 net/socket.c:1760
[<00000000bbdaf60b>] __do_sys_accept4 net/socket.c:1795 [inline]
[<00000000bbdaf60b>] __se_sys_accept4 net/socket.c:1792 [inline]
[<00000000bbdaf60b>] __x64_sys_accept4+0x22/0x30 net/socket.c:1792
[<000000006da547ee>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<00000000025f5c93>] 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

\
 
 \ /
  Last update: 2019-06-24 09:28    [W:0.043 / U:1.828 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site