syzbot


memory leak in tipc_group_create_member

Status: fixed on 2020/10/10 01:52
Reported-by: syzbot+f95d90c454864b3b5bc9@syzkaller.appspotmail.com
Fix commit: bb3a420d47ab tipc: Fix memory leak in tipc_group_create_member()
First crash: 1163d, last: 751d
Patch testing requests:
Created Duration User Patch Repo Result
2020/09/11 15:08 15m yepeilin.cs@gmail.com patch upstream OK

Sample crash report:
executing program
executing program
BUG: memory leak
unreferenced object 0xffff8881193c8100 (size 128):
  comm "syz-executor700", pid 6476, jiffies 4294941677 (age 13.410s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 18 81 3c 19 81 88 ff ff  ..........<.....
  backtrace:
    [<00000000702f1ba3>] kmalloc include/linux/slab.h:554 [inline]
    [<00000000702f1ba3>] kzalloc include/linux/slab.h:666 [inline]
    [<00000000702f1ba3>] tipc_group_create_member+0x38/0x180 net/tipc/group.c:306
    [<0000000028fc9b98>] tipc_nametbl_build_group+0x90/0xe0 net/tipc/name_table.c:714
    [<00000000f3b75b67>] tipc_sk_join net/tipc/socket.c:3065 [inline]
    [<00000000f3b75b67>] tipc_setsockopt+0x262/0x5d0 net/tipc/socket.c:3171
    [<000000003469b055>] __sys_setsockopt+0x14b/0x270 net/socket.c:2132
    [<00000000151f710f>] __do_sys_setsockopt net/socket.c:2143 [inline]
    [<00000000151f710f>] __se_sys_setsockopt net/socket.c:2140 [inline]
    [<00000000151f710f>] __x64_sys_setsockopt+0x22/0x30 net/socket.c:2140
    [<000000005081c26e>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<000000005b8f78c5>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811ae5ad00 (size 128):
  comm "syz-executor700", pid 6477, jiffies 4294942233 (age 7.850s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 18 ad e5 1a 81 88 ff ff  ................
  backtrace:
    [<00000000702f1ba3>] kmalloc include/linux/slab.h:554 [inline]
    [<00000000702f1ba3>] kzalloc include/linux/slab.h:666 [inline]
    [<00000000702f1ba3>] tipc_group_create_member+0x38/0x180 net/tipc/group.c:306
    [<0000000028fc9b98>] tipc_nametbl_build_group+0x90/0xe0 net/tipc/name_table.c:714
    [<00000000f3b75b67>] tipc_sk_join net/tipc/socket.c:3065 [inline]
    [<00000000f3b75b67>] tipc_setsockopt+0x262/0x5d0 net/tipc/socket.c:3171
    [<000000003469b055>] __sys_setsockopt+0x14b/0x270 net/socket.c:2132
    [<00000000151f710f>] __do_sys_setsockopt net/socket.c:2143 [inline]
    [<00000000151f710f>] __se_sys_setsockopt net/socket.c:2140 [inline]
    [<00000000151f710f>] __x64_sys_setsockopt+0x22/0x30 net/socket.c:2140
    [<000000005081c26e>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<000000005b8f78c5>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (32):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2020/09/12 16:18 upstream 729e3d091984 ce441f06 .config log report syz C
ci-upstream-gce-leak 2020/09/12 00:12 upstream e8878ab82545 79fb24e2 .config log report syz C
ci-upstream-gce-leak 2020/09/09 11:53 upstream 34d4ddd359db 0ea7a887 .config log report syz C
ci-upstream-gce-leak 2020/08/26 10:50 upstream abb3438d69fb 344da168 .config log report syz C
ci-upstream-gce-leak 2020/08/25 14:27 upstream 6a9dc5fd6170 344da168 .config log report syz C
ci-upstream-gce-leak 2020/08/07 05:06 upstream 47ec5303d73e 1f122f88 .config log report syz C
ci-upstream-gce-leak 2020/07/28 13:55 upstream 92ed30191993 cb93dc6a .config log report syz C
ci-upstream-gce-leak 2020/07/11 19:27 upstream a581387e415b 18d18b59 .config log report syz C
ci-upstream-gce-leak 2020/07/02 23:49 upstream cd77006e01b3 bed10395 .config log report syz C
ci-upstream-gce-leak 2020/06/04 14:20 upstream cb8e59cc8720 b0d1c0d5 .config log report syz C
ci-upstream-gce-leak 2020/06/03 10:05 upstream 194098915ac7 f3ba1b5b .config log report syz C
ci-upstream-gce-leak 2020/05/29 01:52 upstream 75caf310d16c 0d951763 .config log report syz C
ci-upstream-gce-leak 2020/05/22 06:14 upstream d2f8825ab78e 5afa2ddd .config log report syz C
ci-upstream-gce-leak 2020/05/19 10:03 upstream 642b151f45dd 684d3606 .config log report syz C
ci-upstream-gce-leak 2020/05/03 14:24 upstream f66ed1ebbfde 5457883a .config log report syz C
ci-upstream-gce-leak 2020/04/13 04:03 upstream 4f8a3cc1183c 36b0b050 .config log report syz C
ci-upstream-gce-leak 2020/04/10 23:03 upstream c0cc271173b2 a8c6a3f8 .config log report syz C
ci-upstream-gce-leak 2020/03/25 20:23 upstream e2cf67f6689a 41f049cc .config log report syz C
ci-upstream-gce-leak 2020/03/08 05:00 upstream c20037652700 2e9971bb .config log report syz C
ci-upstream-gce-leak 2020/03/07 22:59 upstream 63849c8f4107 2e9971bb .config log report syz C
ci-upstream-gce-leak 2020/02/24 09:53 upstream d2eee25858f2 d801cb02 .config log report syz C
ci-upstream-gce-leak 2020/02/06 22:50 upstream 4c46bef2e96a c91cbc9d .config log report syz C
ci-upstream-gce-leak 2020/01/23 07:26 upstream dbab40bdb42c 3334d684 .config log report syz C
ci-upstream-gce-leak 2020/01/09 16:03 upstream b07f636fca1c ddc3e859 .config log report syz C
ci-upstream-gce-leak 2019/11/23 06:40 upstream a6b0373ffcd8 598ca6c8 .config log report syz C
ci-upstream-gce-leak 2019/10/21 07:00 upstream 4fe34d61a3a9 8c88c9c1 .config log report syz C
ci-upstream-gce-leak 2019/10/12 07:52 upstream 9892f9f6cf83 426631dd .config log report syz C
ci-upstream-gce-leak 2019/10/10 08:44 upstream 8a8c600de5dc c4b9981b .config log report syz C
ci-upstream-gce-leak 2019/09/06 08:22 upstream 3b47fd5ca9ea 040fda58 .config log report syz C
ci-upstream-gce-leak 2019/07/29 01:08 upstream a9815a4fa2fd c85e1c5b .config log report syz C
ci-upstream-gce-leak 2020/03/20 19:34 upstream 6c90b86a745a 2c31c529 .config log report syz
ci-upstream-gce-leak 2019/11/13 06:40 upstream eb094f06963b 048f2d49 .config log report syz
* Struck through repros no longer work on HEAD.