syzbot


memory leak in sctp_v6_create_accept_sk

Status: fixed on 2019/07/29 13:39
Subsystems: sctp
[Documentation on labels]
Reported-by: syzbot+276ca1c77a19977c0130@syzkaller.appspotmail.com
Fix commit: 25bff6d5478b sctp: change to hold sk after auth shkey is created successfully
First crash: 1783d, last: 1783d
Discussions (9)
Title Replies (including bot) Last reply
[PATCH 3.16 00/87] 3.16.75-rc1 review 99 (99) 2019/11/19 14:49
[PATCH 4.14 00/43] 4.14.132-stable review 57 (57) 2019/08/03 07:11
[PATCH 4.9 000/102] 4.9.185-stable review 108 (108) 2019/07/10 06:11
[PATCH 4.4 00/73] 4.4.185-stable review 79 (79) 2019/07/10 06:10
[PATCH 4.19 00/72] 4.19.57-stable review 84 (84) 2019/07/04 05:29
[PATCH 5.1 00/55] 5.1.16-stable review 69 (69) 2019/07/04 05:27
[PATCH net] sctp: change to hold sk after auth shkey is created successfully 3 (3) 2019/06/27 02:30
Reminder: 14 open syzbot bugs in "net/sctp" subsystem 1 (1) 2019/06/25 05:49
memory leak in sctp_v6_create_accept_sk 0 (1) 2019/06/02 20:22

Sample crash report:
ffffffffda RBX: 00000000006fbc38 RCX: 0000000000446b59
BUG: memory leak
unreferenced object 0xffff88812382ec40 (size 1512):
  comm "syz-executor098", pid 7138, jiffies 4294945165 (age 7.780s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    0a 00 07 40 00 00 00 00 00 00 00 00 00 00 00 00  ...@............
  backtrace:
    [<0000000006e93bd5>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
    [<0000000006e93bd5>] slab_post_alloc_hook mm/slab.h:439 [inline]
    [<0000000006e93bd5>] slab_alloc mm/slab.c:3326 [inline]
    [<0000000006e93bd5>] kmem_cache_alloc+0x134/0x270 mm/slab.c:3488
    [<000000007da542cd>] sk_prot_alloc+0x41/0x170 net/core/sock.c:1596
    [<00000000a4eabe8a>] sk_alloc+0x35/0x2f0 net/core/sock.c:1656
    [<0000000053fa015e>] sctp_v6_create_accept_sk+0x5c/0x1b0 net/sctp/ipv6.c:711
    [<000000008c31091c>] sctp_accept+0x1df/0x290 net/sctp/socket.c:4913
    [<00000000ec8d71b8>] inet_accept+0x4e/0x1d0 net/ipv4/af_inet.c:734
    [<000000001f5fe485>] __sys_accept4+0x12a/0x280 net/socket.c:1760
    [<0000000070a98ea5>] __do_sys_accept net/socket.c:1801 [inline]
    [<0000000070a98ea5>] __se_sys_accept net/socket.c:1798 [inline]
    [<0000000070a98ea5>] __x64_sys_accept+0x20/0x30 net/socket.c:1798
    [<000000004a076fbd>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
    [<00000000d752b65c>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/02 08:05 upstream 3ab4436f688c 53c81ea5 .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.