syzbot


memory leak in ip_vs_add_service

Status: fixed on 2021/11/10 00:50
Subsystems: lvs
[Documentation on labels]
Reported-by: syzbot+e562383183e4b1766930@syzkaller.appspotmail.com
Fix commit: 56e4ee82e850 ipvs: ignore IP_VS_SVC_F_HASHED flag when adding service
First crash: 1069d, last: 1069d
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 5.4 00/78] 5.4.125-rc1 review 86 (86) 2021/06/16 15:01
[PATCH 4.19 00/58] 4.19.194-rc1 review 69 (69) 2021/06/11 07:28
[PATCH 5.10 000/137] 5.10.43-rc1 review 144 (144) 2021/06/10 09:02
[PATCH 5.12 000/161] 5.12.10-rc1 review 171 (171) 2021/06/09 20:47
[PATCH 4.14 00/47] 4.14.236-rc1 review 50 (50) 2021/06/09 18:48
[PATCH 4.9 00/29] 4.9.272-rc1 review 34 (34) 2021/06/09 18:47
[PATCH 4.4 00/23] 4.4.272-rc1 review 28 (28) 2021/06/09 18:47
[syzbot] memory leak in ip_vs_add_service 3 (4) 2021/06/03 17:35
[PATCH net 0/5] Netfilter/IPVS fixes for net 7 (7) 2021/05/27 23:00
[PATCH net] ipvs: ignore IP_VS_SVC_F_HASHED flag when adding service 3 (3) 2021/05/27 11:07
Last patch testing requests (1)
Created Duration User Patch Repo Result
2021/05/24 19:04 16m ja@ssi.bg patch net-old OK

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888115227800 (size 512):
  comm "syz-executor263", pid 8658, jiffies 4294951882 (age 12.560s)
  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 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff83977188>] kmalloc include/linux/slab.h:556 [inline]
    [<ffffffff83977188>] kzalloc include/linux/slab.h:686 [inline]
    [<ffffffff83977188>] ip_vs_add_service+0x598/0x7c0 net/netfilter/ipvs/ip_vs_ctl.c:1343
    [<ffffffff8397d770>] do_ip_vs_set_ctl+0x810/0xa40 net/netfilter/ipvs/ip_vs_ctl.c:2570
    [<ffffffff838449a8>] nf_setsockopt+0x68/0xa0 net/netfilter/nf_sockopt.c:101
    [<ffffffff839ae4e9>] ip_setsockopt+0x259/0x1ff0 net/ipv4/ip_sockglue.c:1435
    [<ffffffff839fa03c>] raw_setsockopt+0x18c/0x1b0 net/ipv4/raw.c:857
    [<ffffffff83691f20>] __sys_setsockopt+0x1b0/0x360 net/socket.c:2117
    [<ffffffff836920f2>] __do_sys_setsockopt net/socket.c:2128 [inline]
    [<ffffffff836920f2>] __se_sys_setsockopt net/socket.c:2125 [inline]
    [<ffffffff836920f2>] __x64_sys_setsockopt+0x22/0x30 net/socket.c:2125
    [<ffffffff84350efa>] do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/20 14:28 upstream c3d0e3fd41b7 c560a65d .config console log report syz C ci-upstream-gce-leak memory leak in ip_vs_add_service
* Struck through repros no longer work on HEAD.