syzbot


memory leak in rxrpc_lookup_local

Status: fixed on 2021/03/10 01:48
Subsystems: afs net
[Documentation on labels]
Reported-by: syzbot+305326672fed51b205f7@syzkaller.appspotmail.com
Fix commit: b8323f7288ab rxrpc: Fix memory leak in rxrpc_lookup_local
First crash: 1810d, last: 1344d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 5.10 000/142] 5.10.13-rc1 review 154 (154) 2021/02/03 23:03
[PATCH 4.19 00/37] 4.19.173-rc1 review 43 (43) 2021/02/03 20:42
[PATCH 5.4 00/61] 5.4.95-rc1 review 65 (65) 2021/02/03 20:42
[PATCH net] rxrpc: Fix memory leak in rxrpc_lookup_local 2 (2) 2021/01/28 21:20
[PATCH net] rxrpc: Fix memory leak in rxrpc_lookup_local 1 (1) 2021/01/24 12:59
Reminder: 2 open syzbot reports in "net/rxrpc" subsystem 1 (1) 2019/11/19 04:43
memory leak in rxrpc_lookup_local 0 (1) 2019/10/22 22:44
Last patch testing requests (2)
Created Duration User Patch Repo Result
2021/01/17 06:07 16m jeliantsurux@gmail.com patch https://github.com/google/kasan.git a68a0262 OK
2020/12/10 01:07 7m tranmanphong@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a68a0262 report log

Sample crash report:
executing program
BUG: memory leak
unreferenced object 0xffff88810fff5d00 (size 256):
  comm "syz-executor008", pid 8451, jiffies 4294942354 (age 13.820s)
  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 0a 00 00 00 00 00 06 0f 81 88 ff ff  ................
  backtrace:
    [<000000008cba9ac0>] kmalloc include/linux/slab.h:552 [inline]
    [<000000008cba9ac0>] kzalloc include/linux/slab.h:682 [inline]
    [<000000008cba9ac0>] rxrpc_alloc_local net/rxrpc/local_object.c:79 [inline]
    [<000000008cba9ac0>] rxrpc_lookup_local+0x1c1/0x760 net/rxrpc/local_object.c:244
    [<000000004574f077>] rxrpc_bind+0x174/0x240 net/rxrpc/af_rxrpc.c:149
    [<00000000d476e492>] afs_open_socket+0xdb/0x200 fs/afs/rxrpc.c:64
    [<00000000499a9e87>] afs_net_init+0x2b4/0x340 fs/afs/main.c:126
    [<00000000b0fa6b89>] ops_init+0x4e/0x190 net/core/net_namespace.c:152
    [<00000000cb1542f5>] setup_net+0xde/0x2d0 net/core/net_namespace.c:342
    [<00000000c7d6ffb1>] copy_net_ns+0x19f/0x3e0 net/core/net_namespace.c:483
    [<000000001ef1337f>] create_new_namespaces+0x199/0x4f0 kernel/nsproxy.c:110
    [<00000000cc62aa8a>] copy_namespaces+0xd7/0x140 kernel/nsproxy.c:178
    [<000000000359a213>] copy_process+0x1360/0x25c0 kernel/fork.c:2100
    [<00000000e00f25f1>] kernel_clone+0xf3/0x670 kernel/fork.c:2462
    [<000000006b0ce461>] __do_sys_clone+0x76/0xa0 kernel/fork.c:2579
    [<0000000031acb3f4>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<00000000940e70cb>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811129a600 (size 256):
  comm "syz-executor008", pid 8473, jiffies 4294942948 (age 7.880s)
  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 0a 00 00 00 00 00 06 0f 81 88 ff ff  ................
  backtrace:
    [<000000008cba9ac0>] kmalloc include/linux/slab.h:552 [inline]
    [<000000008cba9ac0>] kzalloc include/linux/slab.h:682 [inline]
    [<000000008cba9ac0>] rxrpc_alloc_local net/rxrpc/local_object.c:79 [inline]
    [<000000008cba9ac0>] rxrpc_lookup_local+0x1c1/0x760 net/rxrpc/local_object.c:244
    [<000000004574f077>] rxrpc_bind+0x174/0x240 net/rxrpc/af_rxrpc.c:149
    [<00000000d476e492>] afs_open_socket+0xdb/0x200 fs/afs/rxrpc.c:64
    [<00000000499a9e87>] afs_net_init+0x2b4/0x340 fs/afs/main.c:126
    [<00000000b0fa6b89>] ops_init+0x4e/0x190 net/core/net_namespace.c:152
    [<00000000cb1542f5>] setup_net+0xde/0x2d0 net/core/net_namespace.c:342
    [<00000000c7d6ffb1>] copy_net_ns+0x19f/0x3e0 net/core/net_namespace.c:483
    [<000000001ef1337f>] create_new_namespaces+0x199/0x4f0 kernel/nsproxy.c:110
    [<00000000cc62aa8a>] copy_namespaces+0xd7/0x140 kernel/nsproxy.c:178
    [<000000000359a213>] copy_process+0x1360/0x25c0 kernel/fork.c:2100
    [<00000000e00f25f1>] kernel_clone+0xf3/0x670 kernel/fork.c:2462
    [<000000006b0ce461>] __do_sys_clone+0x76/0xa0 kernel/fork.c:2579
    [<0000000031acb3f4>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<00000000940e70cb>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (1415):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/29 02:39 upstream e5ff2cb9cf67 7df34f59 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/29 01:33 upstream e5ff2cb9cf67 7df34f59 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/29 01:04 upstream e5ff2cb9cf67 7df34f59 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/29 00:32 upstream e5ff2cb9cf67 7df34f59 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/29 00:17 upstream e5ff2cb9cf67 7df34f59 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 22:29 upstream e5ff2cb9cf67 7df34f59 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 18:26 upstream 76c057c84d28 7df34f59 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 08:32 upstream 76c057c84d28 eefc07f2 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 02:49 upstream 76c057c84d28 eefc07f2 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 02:23 upstream 76c057c84d28 eefc07f2 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 01:41 upstream 76c057c84d28 eefc07f2 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 01:23 upstream 76c057c84d28 eefc07f2 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 00:53 upstream 76c057c84d28 eefc07f2 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/27 21:02 upstream 2ab38c17aac1 a0ebf917 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/27 17:56 upstream 2ab38c17aac1 a0ebf917 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/27 16:47 upstream 2ab38c17aac1 a0ebf917 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/27 12:50 upstream 2ab38c17aac1 a0ebf917 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/27 11:57 upstream 2ab38c17aac1 a0ebf917 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 22:08 upstream 13391c60da33 55a7d4df .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 21:45 upstream 13391c60da33 55a7d4df .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 21:21 upstream 13391c60da33 55a7d4df .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 20:48 upstream 13391c60da33 55a7d4df .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 20:25 upstream 13391c60da33 55a7d4df .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 15:54 upstream 13391c60da33 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 15:49 upstream 13391c60da33 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 15:06 upstream 13391c60da33 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 14:56 upstream 13391c60da33 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 11:39 upstream f8ad8187c3b5 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 09:02 upstream f8ad8187c3b5 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 06:28 upstream f8ad8187c3b5 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 04:32 upstream f8ad8187c3b5 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/17 13:53 upstream 0da0a8a0a0e1 813be542 .config console log report syz C ci-upstream-gce-leak
2021/01/17 04:49 upstream 0da0a8a0a0e1 65a7a854 .config console log report syz C ci-upstream-gce-leak
2020/12/10 00:40 upstream a68a0262abda c090b4da .config console log report syz C ci-upstream-gce-leak
2019/10/20 21:24 upstream 4fe34d61a3a9 8c88c9c1 .config console log report syz C ci-upstream-gce-leak
2021/01/29 07:57 upstream e5ff2cb9cf67 7df34f59 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/29 07:03 upstream e5ff2cb9cf67 7df34f59 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/29 03:11 upstream e5ff2cb9cf67 7df34f59 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 23:56 upstream e5ff2cb9cf67 7df34f59 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 23:18 upstream e5ff2cb9cf67 7df34f59 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 09:11 upstream 76c057c84d28 eefc07f2 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 07:02 upstream 76c057c84d28 eefc07f2 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/28 04:28 upstream 76c057c84d28 eefc07f2 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/27 19:10 upstream 2ab38c17aac1 a0ebf917 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/27 12:33 upstream 2ab38c17aac1 a0ebf917 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/27 05:28 upstream 13391c60da33 55a7d4df .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 22:38 upstream 13391c60da33 55a7d4df .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 19:32 upstream 13391c60da33 55a7d4df .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 05:18 upstream f8ad8187c3b5 52e37319 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
2021/01/26 03:38 upstream f8ad8187c3b5 52e37319 .config console log report syz ci-upstream-gce-leak memory leak in rxrpc_lookup_local
* Struck through repros no longer work on HEAD.