syzbot


WARNING in sk_psock_drop

Status: fixed on 2020/02/18 14:31
Subsystems: bpf net
[Documentation on labels]
Reported-by: syzbot+d73682fcf7fee6982fe3@syzkaller.appspotmail.com
Fix commit: 58c8db929db1 net, sk_msg: Don't check if sock is locked when tearing down psock
First crash: 1585d, last: 1575d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.4 000/104] 5.4.16-stable review 113 (113) 2020/01/29 15:36
[PATCH net] net, sk_msg: Don't check if sock is locked when tearing down psock 4 (4) 2020/01/22 19:30
WARNING in sk_psock_drop 1 (2) 2020/01/17 19:05

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 28068 at include/net/sock.h:1578 sock_owned_by_me include/net/sock.h:1578 [inline]
WARNING: CPU: 0 PID: 28068 at include/net/sock.h:1578 sk_psock_drop+0x5fa/0x7f0 net/core/skmsg.c:597
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 28068 Comm: syz-executor.2 Not tainted 5.5.0-rc7-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x197/0x210 lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x3e kernel/panic.c:582
 report_bug+0x289/0x300 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 fixup_bug arch/x86/kernel/traps.c:169 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:267
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:sock_owned_by_me include/net/sock.h:1578 [inline]
RIP: 0010:sk_psock_drop+0x5fa/0x7f0 net/core/skmsg.c:597
Code: d0 7c 08 84 d2 0f 85 c7 01 00 00 44 8b 2d 92 9c 4b 04 31 ff 44 89 ee e8 b4 12 45 fb 45 85 ed 0f 84 4e fa ff ff e8 26 11 45 fb <0f> 0b e9 42 fa ff ff e8 1a 11 45 fb 48 8d bb 70 02 00 00 48 b8 00
RSP: 0018:ffffc90003ec7bc0 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff88801e711800 RCX: ffffc90020f08000
RDX: 0000000000001e59 RSI: ffffffff862fe3fa RDI: 0000000000000005
RBP: ffffc90003ec7c08 R08: ffff888010b1c280 R09: ffffed1003ce234c
R10: ffffed1003ce234b R11: ffff88801e711a5b R12: ffff8880615a0fc0
R13: 0000000000000001 R14: ffff88801e711a10 R15: 0000000000000000
 sk_psock_put include/linux/skmsg.h:437 [inline]
 sock_map_unref+0x2ed/0x510 net/core/sock_map.c:138
 sock_hash_delete_elem+0x6fa/0x840 net/core/sock_map.c:624
 map_delete_elem kernel/bpf/syscall.c:1102 [inline]
 __do_sys_bpf+0x2093/0x3810 kernel/bpf/syscall.c:3021
 __se_sys_bpf kernel/bpf/syscall.c:2989 [inline]
 __x64_sys_bpf+0x73/0xb0 kernel/bpf/syscall.c:2989
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b3f9
Code: bd b1 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 8b b1 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f83e0016c88 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 000000000072bf00 RCX: 000000000045b3f9
RDX: 0000000000000018 RSI: 0000000020000100 RDI: 0000000000000003
RBP: 00007f83e00176d4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000005d R14: 00000000004a8a9c R15: 00000000006ead80
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (157):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/23 16:31 upstream 131701c697e8 2e95ab33 .config console log report ci-qemu-upstream
2020/01/22 03:49 upstream d96d875ef5dd 8eda0b95 .config console log report ci-upstream-kasan-gce-selinux-root
2020/01/20 14:41 upstream def9d2780727 d2557fb5 .config console log report ci-upstream-kasan-gce-root
2020/01/20 13:19 upstream def9d2780727 d2557fb5 .config console log report ci-upstream-kasan-gce-root
2020/01/20 08:41 upstream def9d2780727 0342f8c7 .config console log report ci-upstream-kasan-gce-root
2020/01/20 07:25 upstream def9d2780727 0342f8c7 .config console log report ci-upstream-kasan-gce-smack-root
2020/01/17 20:39 net-old 5a9ef19454cd 3de7aabb .config console log report ci-upstream-net-this-kasan-gce
2020/01/17 15:36 net-old 93ad0f969fc7 3de7aabb .config console log report ci-upstream-net-this-kasan-gce
2020/01/17 05:40 net-old 93ad0f969fc7 3de7aabb .config console log report ci-upstream-net-this-kasan-gce
2020/01/26 15:04 net-next-old 3333e50b64fe f4e7270e .config console log report ci-upstream-net-kasan-gce
2020/01/26 13:50 net-next-old 3333e50b64fe f4e7270e .config console log report ci-upstream-net-kasan-gce
2020/01/26 08:59 net-next-old 3333e50b64fe f4e7270e .config console log report ci-upstream-net-kasan-gce
2020/01/26 07:59 net-next-old 3333e50b64fe f4e7270e .config console log report ci-upstream-net-kasan-gce
2020/01/26 00:06 net-next-old 3333e50b64fe f4e7270e .config console log report ci-upstream-net-kasan-gce
2020/01/25 18:47 net-next-old 08a45c59f16e 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/25 15:17 net-next-old 08a45c59f16e 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/25 10:57 net-next-old 08a45c59f16e 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/25 05:12 net-next-old 23f4eacdd24a 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/25 00:10 net-next-old 23f4eacdd24a 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/24 21:30 net-next-old 23f4eacdd24a 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/24 18:00 net-next-old 23f4eacdd24a 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/24 15:26 net-next-old 23f4eacdd24a 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/24 09:51 net-next-old 9bbc8be29d66 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/24 05:28 net-next-old 9bbc8be29d66 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/23 23:01 net-next-old 9bbc8be29d66 2e95ab33 .config console log report ci-upstream-net-kasan-gce
2020/01/23 20:28 net-next-old fd786fb1d2ca 3334d684 .config console log report ci-upstream-net-kasan-gce
2020/01/23 12:42 net-next-old c5d19a6ecfce 3334d684 .config console log report ci-upstream-net-kasan-gce
2020/01/23 11:31 net-next-old c5d19a6ecfce 3334d684 .config console log report ci-upstream-net-kasan-gce
2020/01/23 10:21 net-next-old c5d19a6ecfce 3334d684 .config console log report ci-upstream-net-kasan-gce
2020/01/23 04:42 net-next-old c5d19a6ecfce 3334d684 .config console log report ci-upstream-net-kasan-gce
2020/01/23 02:55 net-next-old c5d19a6ecfce 3334d684 .config console log report ci-upstream-net-kasan-gce
2020/01/22 20:27 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/22 20:06 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/22 16:21 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/22 13:12 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/22 12:09 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/22 09:27 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/22 07:28 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/22 05:01 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/22 01:00 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 22:18 net-next-old 4f2c17e0f332 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 20:57 net-next-old 17e10a15a796 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 19:41 net-next-old 17e10a15a796 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 16:25 net-next-old 17e10a15a796 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 15:14 net-next-old 17e10a15a796 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 12:37 net-next-old 17e10a15a796 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 11:39 net-next-old 17e10a15a796 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 05:42 net-next-old 17e10a15a796 8eda0b95 .config console log report ci-upstream-net-kasan-gce
2020/01/21 03:57 net-next-old b3f7e3f23a76 d2557fb5 .config console log report ci-upstream-net-kasan-gce
2020/01/21 00:02 net-next-old b3f7e3f23a76 d2557fb5 .config console log report ci-upstream-net-kasan-gce
2020/01/20 20:43 net-next-old b3f7e3f23a76 d2557fb5 .config console log report ci-upstream-net-kasan-gce
2020/01/20 08:02 net-next-old b3f7e3f23a76 0342f8c7 .config console log report ci-upstream-net-kasan-gce
2020/01/20 07:34 net-next-old b3f7e3f23a76 0342f8c7 .config console log report ci-upstream-net-kasan-gce
2020/01/20 07:32 net-next-old b3f7e3f23a76 0342f8c7 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.