syzbot


memory leak in sctp_get_port_local (3)

Status: fixed on 2019/11/04 14:50
Subsystems: sctp
[Documentation on labels]
Reported-by: syzbot+d44f7bbebdea49dbc84a@syzkaller.appspotmail.com
Fix commit: 63dfb7938b13 sctp: change sctp_prot .no_autobind with true
First crash: 1827d, last: 1821d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.19 00/93] 4.19.81-stable review 107 (107) 2019/11/09 15:53
[PATCH 4.14 000/119] 4.14.151-stable review 132 (132) 2019/11/01 18:48
[PATCH 4.9 00/49] 4.9.198-stable review 55 (55) 2019/10/29 15:17
[PATCH 4.4 00/41] 4.4.198-stable review 52 (52) 2019/10/29 13:29
[PATCH 5.3 000/197] 5.3.8-stable review 203 (203) 2019/10/29 13:03
[PATCH net] sctp: change sctp_prot .no_autobind with true 4 (4) 2019/10/16 05:26
memory leak in sctp_get_port_local (3) 1 (2) 2019/10/14 17:12
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in sctp_get_port_local (2) sctp C 34 1835d 1893d 13/28 fixed on 2019/10/09 10:54
upstream memory leak in sctp_get_port_local sctp C 28 1898d 1965d 12/28 fixed on 2019/08/05 13:45

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888114bc9380 (size 64):
  comm "syz-executor098", pid 6941, jiffies 4294941511 (age 7.820s)
  hex dump (first 32 bytes):
    20 4e 00 00 00 00 00 00 00 00 00 00 00 00 00 00   N..............
    b8 e3 e3 24 81 88 ff ff 00 00 00 00 00 00 00 00  ...$............
  backtrace:
    [<00000000096ec086>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000096ec086>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000096ec086>] slab_alloc mm/slab.c:3319 [inline]
    [<00000000096ec086>] kmem_cache_alloc+0x13f/0x2c0 mm/slab.c:3483
    [<0000000052d1a185>] sctp_bucket_create net/sctp/socket.c:8523 [inline]
    [<0000000052d1a185>] sctp_get_port_local+0x189/0x5a0 net/sctp/socket.c:8270
    [<000000001e3ccd6b>] sctp_do_bind+0xcc/0x200 net/sctp/socket.c:402
    [<0000000098f94439>] sctp_bindx_add+0x4b/0xd0 net/sctp/socket.c:497
    [<00000000a4882226>] sctp_setsockopt_bindx+0x156/0x1b0 net/sctp/socket.c:1022
    [<00000000121a216c>] sctp_setsockopt net/sctp/socket.c:4641 [inline]
    [<00000000121a216c>] sctp_setsockopt+0xaea/0x2dc0 net/sctp/socket.c:4611
    [<0000000098d7ff93>] sock_common_setsockopt+0x38/0x50 net/core/sock.c:3147
    [<000000001207277b>] __sys_setsockopt+0x10f/0x220 net/socket.c:2084
    [<00000000996d77a5>] __do_sys_setsockopt net/socket.c:2100 [inline]
    [<00000000996d77a5>] __se_sys_setsockopt net/socket.c:2097 [inline]
    [<00000000996d77a5>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2097
    [<000000007649a19e>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<0000000062a78c80>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/20 04:23 upstream 998d75510e37 8c88c9c1 .config console log report syz C ci-upstream-gce-leak
2019/10/17 13:33 upstream bc88f85c6c09 8c88c9c1 .config console log report syz C ci-upstream-gce-leak
2019/10/15 05:15 upstream 4f5cafb5cb84 05ad7292 .config console log report syz C ci-upstream-gce-leak
2019/10/13 22:44 upstream da94001239cc 2f661ec4 .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.