BUG: corrupted list in __put_net

Status: upstream: reported C repro on 2019/06/09 16:00
First crash: 1835d, last: 503d
Fix bisection the fix commit could be any of (bisect log):
  e6a95d8851f1 Linux 4.14.124
  4139fb08c05f Linux 4.14.187
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2020/07/01 19:13 29m (2) bisect fix linux-4.14.y job log (2)
2020/03/03 09:20 23m bisect fix linux-4.14.y job log (0) log
2020/01/13 14:29 23m bisect fix linux-4.14.y job log (0) log
2019/12/14 02:57 24m bisect fix linux-4.14.y job log (0) log

Sample crash report:
RBP: 00007fff3d6c96a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
list_add double add: new=ffffffff8801d6a0, prev=ffffffff8801d500, next=ffffffff8801d6a0.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:29!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7009 Comm: syz-executor248 Not tainted 4.14.124 #18
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809560c440 task.stack: ffff8880a3d40000
RIP: 0010:__list_add_valid.cold+0x26/0x3c lib/list_debug.c:29
RSP: 0018:ffff8880a3d47af0 EFLAGS: 00010082
RAX: 0000000000000058 RBX: ffffffff8801d640 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff866d0ca0 RDI: ffffed10147a8f54
RBP: ffff8880a3d47b08 R08: 0000000000000058 R09: 0000000000000002
R10: 0000000000000000 R11: ffff88809560c440 R12: ffffffff8801d6a0
R13: ffffffff8801d6a0 R14: ffffffff8801d6a0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004c0708 CR3: 000000000766a000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_add include/linux/list.h:60 [inline]
 list_add include/linux/list.h:79 [inline]
 __put_net+0x3f/0x100 net/core/net_namespace.c:530
 put_net include/net/net_namespace.h:219 [inline]
 __sk_destruct+0x4a5/0x5d0 net/core/sock.c:1585
 sk_destruct+0x67/0x80 net/core/sock.c:1594
 __sk_free+0x54/0x230 net/core/sock.c:1602
 sk_free+0x35/0x40 net/core/sock.c:1613
 sock_put include/net/sock.h:1653 [inline]
 sk_common_release+0x207/0x310 net/core/sock.c:3017
 udp_lib_close+0x16/0x20 include/net/udp.h:203
 inet_release+0xec/0x1c0 net/ipv4/af_inet.c:425
 __sock_release+0xce/0x2b0 net/socket.c:602
 sock_close+0x1b/0x30 net/socket.c:1139
 __fput+0x275/0x7a0 fs/file_table.c:210
 ____fput+0x16/0x20 fs/file_table.c:244
 task_work_run+0x114/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x7df/0x2c10 kernel/exit.c:874
 do_group_exit+0x111/0x330 kernel/exit.c:977
 SYSC_exit_group kernel/exit.c:988 [inline]
 SyS_exit_group+0x1d/0x20 kernel/exit.c:986
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
RIP: 0033:0x440168
RSP: 002b:00007fff3d6c9628 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440168
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004c06d0 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000
Code: e9 56 ff ff ff 4c 89 e1 48 c7 c7 60 29 9d 86 e8 0f 1c 73 fe 0f 0b 48 89 f2 4c 89 e1 4c 89 ee 48 c7 c7 a0 2a 9d 86 e8 f8 1b 73 fe <0f> 0b 48 89 f1 48 c7 c7 20 2a 9d 86 4c 89 e6 e8 e4 1b 73 fe 0f 
RIP: __list_add_valid.cold+0x26/0x3c lib/list_debug.c:29 RSP: ffff8880a3d47af0
---[ end trace c512328f6212b362 ]---

Crashes (30):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/09 15:22 linux-4.14.y e6a95d8851f1 0159583c .config console log report syz C ci2-linux-4-14
2023/01/31 22:25 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: corrupted list in __put_net
2022/10/18 04:20 linux-4.14.y 9d5c0b3a8e1a 94744d21 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 BUG: corrupted list in __put_net
2022/04/01 09:51 linux-4.14.y af1af6ebca0e 68fc921a .config console log report info ci2-linux-4-14 BUG: corrupted list in __put_net
2022/03/16 20:10 linux-4.14.y eb045674aab3 46cc3b21 .config console log report info ci2-linux-4-14 BUG: corrupted list in __put_net
2021/02/03 18:28 linux-4.14.y 2c8a3fceddf0 624dad51 .config console log report info ci2-linux-4-14 BUG: corrupted list in __put_net
2021/01/07 06:42 linux-4.14.y 1752938529c6 c104d4a3 .config console log report info ci2-linux-4-14
2020/11/29 07:11 linux-4.14.y 87335852c5d9 a0092f9d .config console log report info ci2-linux-4-14
2020/11/23 02:32 linux-4.14.y 0df445b0f0da 0d27f508 .config console log report info ci2-linux-4-14
2020/09/27 13:29 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config console log report info ci2-linux-4-14
2020/07/28 14:34 linux-4.14.y 69b94dd6dcd1 cb93dc6a .config console log report ci2-linux-4-14
2020/07/14 18:57 linux-4.14.y b850307b279c 6f458026 .config console log report ci2-linux-4-14
2020/07/10 02:04 linux-4.14.y b850307b279c edf162e8 .config console log report ci2-linux-4-14
2020/06/01 18:54 linux-4.14.y 4f68020fef1c a0331e89 .config console log report ci2-linux-4-14
2020/05/13 14:16 linux-4.14.y ab9dfda23248 9a6d42fb .config console log report ci2-linux-4-14
2020/05/02 06:45 linux-4.14.y 050272a0423e bc734e7a .config console log report ci2-linux-4-14
2020/04/22 05:00 linux-4.14.y c10b57a567e4 2e44d63e .config console log report ci2-linux-4-14
2020/04/15 04:59 linux-4.14.y c10b57a567e4 3f3c5574 .config console log report ci2-linux-4-14
2020/04/07 20:20 linux-4.14.y 4520f06b03ae db9bcd4b .config console log report ci2-linux-4-14
2020/03/29 13:35 linux-4.14.y 01364dad1d45 05736b29 .config console log report ci2-linux-4-14
2020/03/13 02:52 linux-4.14.y 12cd844a39ed d850e9d0 .config console log report ci2-linux-4-14
2020/03/05 05:48 linux-4.14.y 78d697fc93f9 576fb9bc .config console log report ci2-linux-4-14
2020/02/02 09:20 linux-4.14.y 9fa690a2a016 2274ad39 .config console log report ci2-linux-4-14
2020/01/24 09:56 linux-4.14.y 8bac50406cca 2e95ab33 .config console log report ci2-linux-4-14
2020/01/17 00:41 linux-4.14.y c04fc6fa5c96 3de7aabb .config console log report ci2-linux-4-14
2019/12/14 14:09 linux-4.14.y a844dc4c5442 eef6e580 .config console log report ci2-linux-4-14
2019/10/30 14:33 linux-4.14.y ddef1e8e3f6e 5ea87a66 .config console log report ci2-linux-4-14
2019/10/27 00:00 linux-4.14.y b98aebd29824 25bb509e .config console log report ci2-linux-4-14
2019/09/26 03:58 linux-4.14.y f6e27dbb1afa 24d405a3 .config console log report ci2-linux-4-14
2019/06/09 14:59 linux-4.14.y e6a95d8851f1 0159583c .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.