syzbot


memory leak in sctp_get_port_local (3)

Status: fixed on 2019/11/04 14:50
Reported-by: syzbot+d44f7bbebdea49dbc84a@syzkaller.appspotmail.com
Fix commit: 63dfb7938b13 sctp: change sctp_prot .no_autobind with true
First crash: 1087d, last: 1080d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in sctp_get_port_local (2) C 34 1095d 1153d 14/24 fixed on 2019/10/09 10:54
upstream memory leak in sctp_get_port_local C 28 1158d 1225d 13/24 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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2019/10/20 04:23 upstream 998d75510e37 8c88c9c1 .config log report syz C
ci-upstream-gce-leak 2019/10/17 13:33 upstream bc88f85c6c09 8c88c9c1 .config log report syz C
ci-upstream-gce-leak 2019/10/15 05:15 upstream 4f5cafb5cb84 05ad7292 .config log report syz C
ci-upstream-gce-leak 2019/10/13 22:44 upstream da94001239cc 2f661ec4 .config log report syz C
* Struck through repros no longer work on HEAD.