syzbot


memory leak in ipv6_renew_options

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+a8430774139ec3ab7176@syzkaller.appspotmail.com
Fix commit: e27326009a3d net: ping6: Fix memleak in ipv6_renew_options().
First crash: 711d, last: 711d
Discussions (9)
Title Replies (including bot) Last reply
[PATCH 4.9 000/101] 4.9.326-rc1 review 108 (108) 2022/08/24 07:24
[PATCH 4.14 000/229] 4.14.291-rc1 review 232 (232) 2022/08/24 06:23
[PATCH 4.19 00/32] 4.19.255-rc1 review 38 (38) 2022/08/10 14:46
[PATCH 5.18 00/88] 5.18.16-rc1 review 101 (101) 2022/08/03 06:56
[PATCH 5.15 00/69] 5.15.59-rc1 review 77 (77) 2022/08/02 17:45
[PATCH 5.10 00/65] 5.10.135-rc1 review 75 (75) 2022/08/02 17:33
[PATCH 5.4 00/34] 5.4.209-rc1 review 40 (40) 2022/08/02 17:10
[PATCH v2 net] net: ping6: Fix memleak in ipv6_renew_options(). 5 (5) 2022/07/28 18:10
[syzbot] memory leak in ipv6_renew_options 0 (1) 2022/07/17 18:21
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/07/28 00:31 16m yepeilin.cs@gmail.com patch upstream OK log

Sample crash report:
executing program
executing program
BUG: memory leak
unreferenced object 0xffff88810b810f00 (size 96):
  comm "syz-executor113", pid 3606, jiffies 4294944081 (age 12.460s)
  hex dump (first 32 bytes):
    01 00 00 00 48 00 00 00 00 00 08 00 00 00 00 00  ....H...........
    00 00 00 00 00 00 00 00 40 0f 81 0b 81 88 ff ff  ........@.......
  backtrace:
    [<ffffffff83855781>] kmalloc include/linux/slab.h:605 [inline]
    [<ffffffff83855781>] sock_kmalloc net/core/sock.c:2563 [inline]
    [<ffffffff83855781>] sock_kmalloc+0x61/0x90 net/core/sock.c:2554
    [<ffffffff83d3fa60>] ipv6_renew_options+0x120/0x440 net/ipv6/exthdrs.c:1318
    [<ffffffff83d138ad>] ipv6_set_opt_hdr net/ipv6/ipv6_sockglue.c:354 [inline]
    [<ffffffff83d138ad>] do_ipv6_setsockopt.constprop.0+0x49d/0x24d0 net/ipv6/ipv6_sockglue.c:668
    [<ffffffff83d1599e>] ipv6_setsockopt+0xbe/0x120 net/ipv6/ipv6_sockglue.c:1021
    [<ffffffff838517d0>] __sys_setsockopt+0x1b0/0x390 net/socket.c:2254
    [<ffffffff838519d2>] __do_sys_setsockopt net/socket.c:2265 [inline]
    [<ffffffff838519d2>] __se_sys_setsockopt net/socket.c:2262 [inline]
    [<ffffffff838519d2>] __x64_sys_setsockopt+0x22/0x30 net/socket.c:2262
    [<ffffffff845ad915>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff845ad915>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84600087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/13 18:16 upstream b047602d579b 5d921b08 .config console log report syz C ci-upstream-gce-leak memory leak in ipv6_renew_options
* Struck through repros no longer work on HEAD.