syzbot


WARNING in kcm_exit_net (3)

Status: fixed on 2018/06/07 13:52
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+5f1a04e374a635efc426@syzkaller.appspotmail.com
Fix commit: eb7f54b90bd8 kcm: Fix use-after-free caused by clonned sockets
First crash: 2157d, last: 2157d
Discussions (6)
Title Replies (including bot) Last reply
general protection fault in requeue_rx_msgs 1 (3) 2019/04/13 09:39
[PATCH 4.9 00/31] 4.9.108-stable review 36 (36) 2018/06/13 14:42
[PATCH 4.14 00/41] 4.14.49-stable review 43 (43) 2018/06/11 19:36
[PATCH 4.16 00/48] 4.16.15-stable review 51 (51) 2018/06/11 19:35
[PATCH net] kcm: Fix use-after-free caused by clonned sockets 2 (2) 2018/06/01 14:28
WARNING in kcm_exit_net (3) 2 (3) 2018/06/01 11:10
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in kcm_exit_net (2) net 6 2313d 2339d 0/26 closed as invalid on 2018/04/08 19:37
upstream WARNING in kcm_exit_net net 1 2401d 2401d 0/26 closed as invalid on 2017/10/18 09:51

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
WARNING: CPU: 0 PID: 22 at net/kcm/kcmsock.c:2023 kcm_exit_net+0x392/0x3e0 net/kcm/kcmsock.c:2023
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 22 Comm: kworker/u4:1 Not tainted 4.17.0-rc7+ #75
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1b9/0x294 lib/dump_stack.c:113
 panic+0x22f/0x4de kernel/panic.c:184
 __warn.cold.8+0x163/0x1b3 kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1de/0x490 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
RIP: 0010:kcm_exit_net+0x392/0x3e0 net/kcm/kcmsock.c:2023
RSP: 0018:ffff8801d941f430 EFLAGS: 00010293
RAX: ffff8801d94125c0 RBX: 1ffff1003b283e86 RCX: 1ffff1003b2825bd
RDX: 0000000000000000 RSI: ffffffff86d56942 RDI: 0000000000000286
RBP: ffff8801d941f4f8 R08: 1ffff1003b283e67 R09: ffffed003b5c46d2
R10: 0000000000000003 R11: 0000000000000003 R12: 1ffff1003b283e8a
R13: ffff8801d941f4d0 R14: ffff8801cadab890 R15: ffff8801d7d30640
 ops_exit_list.isra.7+0xb0/0x160 net/core/net_namespace.c:152
 cleanup_net+0x51d/0xb20 net/core/net_namespace.c:523
 process_one_work+0xc1e/0x1b50 kernel/workqueue.c:2145
 worker_thread+0x1cc/0x1440 kernel/workqueue.c:2279
 kthread+0x345/0x410 kernel/kthread.c:240
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/31 04:48 upstream d60d61f36b8f 2f93b54f .config console log report syz ci-upstream-kasan-gce-root
2018/05/31 04:41 upstream d60d61f36b8f 2f93b54f .config console log report syz ci-upstream-kasan-gce
2018/05/31 04:15 net-next-old 37c9102f216c 2f93b54f .config console log report syz ci-upstream-net-kasan-gce
2018/05/31 09:00 https://github.com/google/kmsan.git master 8fc8ecd1c58a 2f93b54f .config console log report syz ci-upstream-kmsan-gce
2018/05/31 03:44 net-next-old 37c9102f216c 2f93b54f .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.