syzbot


WARNING: suspicious RCU usage in tcp_bpf_update_proto

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+320a3bc8d80f478c37e4@syzkaller.appspotmail.com
Fix commit: 51e0158a5432 skmsg: Pass psock pointer to ->psock_update_sk_prot()
First crash: 552d, last: 528d

Cause bisection: introduced by (bisect log) :
commit 4dfe6bd94959222e18d512bdf15f6bf9edb9c27c
Author: Rustam Kovhaev <rkovhaev@gmail.com>
Date: Wed Feb 24 20:00:30 2021 +0000

  ntfs: check for valid standard information attribute

Crash: WARNING in kvm_wait (log)
Repro: syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/04/06 18:41 18m xiyou.wangcong@gmail.com https://github.com/congwang/linux.git bpf-next OK

Sample crash report:
=============================
WARNING: suspicious RCU usage
5.12.0-rc6-syzkaller #0 Not tainted
-----------------------------
include/linux/skmsg.h:286 suspicious rcu_dereference_check() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syz-executor430/8428:
 #0: ffff88802dd583c8 (clock-AF_INET){++..}-{2:2}, at: sk_psock_drop+0x2a/0x3d0 net/core/skmsg.c:789

stack backtrace:
CPU: 1 PID: 8428 Comm: syz-executor430 Not tainted 5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x141/0x1d7 lib/dump_stack.c:120
 sk_psock include/linux/skmsg.h:286 [inline]
 tcp_bpf_update_proto+0x5d3/0x6c0 net/ipv4/tcp_bpf.c:504
 sk_psock_restore_proto include/linux/skmsg.h:407 [inline]
 sk_psock_drop+0x68/0x3d0 net/core/skmsg.c:790
 sk_psock_put include/linux/skmsg.h:445 [inline]
 tcp_bpf_recvmsg+0x42d/0x480 net/ipv4/tcp_bpf.c:208
 inet_recvmsg+0x11b/0x5d0 net/ipv4/af_inet.c:852
 sock_recvmsg_nosec net/socket.c:888 [inline]
 sock_recvmsg net/socket.c:906 [inline]
 sock_recvmsg net/socket.c:902 [inline]
 ____sys_recvmsg+0x2c4/0x600 net/socket.c:2569
 ___sys_recvmsg+0x127/0x200 net/socket.c:2611
 do_recvmmsg+0x24d/0x6d0 net/socket.c:2705
 __sys_recvmmsg net/socket.c:2784 [inline]
 __do_sys_recvmmsg net/socket.c:2807 [inline]
 __se_sys_recvmmsg net/socket.c:2800 [inline]
 __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2800
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4468e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa0f97ef318 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00000000004cb4e8 RCX: 00000000004468e9
RDX: 0000000000000422 RSI: 0000000020000540 RDI: 0000000000000004
RBP: 00000000004cb4e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000049b270
R13: 00007ffd2e475fff R14: 00007fa0f97ef400 R15: 0000000000022000

Crashes (539):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2021/04/15 01:57 net-next 652d3be21dc8 fcdb12ba .config log report syz C WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/05 21:07 net-next 514e1150da9c 6a81331a .config log report syz C WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/02 10:34 bpf-next 89d69c5d0fbc 6a81331a .config log report syz WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/02 10:05 bpf-next 89d69c5d0fbc 6a81331a .config log report syz WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/02 08:22 bpf-next 89d69c5d0fbc 6a81331a .config log report syz WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/02 05:53 bpf-next 89d69c5d0fbc 6a81331a .config log report syz WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/02 05:30 bpf-next 89d69c5d0fbc 6a81331a .config log report syz WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/02 04:42 bpf-next 89d69c5d0fbc 6a81331a .config log report syz WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/02 02:15 bpf-next 89d69c5d0fbc 6a81331a .config log report syz WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/26 00:11 net-next b2f0ca00e6b3 2a82f1b3 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/25 22:03 net-next b2f0ca00e6b3 2a82f1b3 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/25 12:58 net-next b2f0ca00e6b3 36c88236 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/25 09:00 net-next b2f0ca00e6b3 36c88236 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/25 07:32 net-next b2f0ca00e6b3 36c88236 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/25 05:46 net-next b2f0ca00e6b3 17f0b706 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/25 04:14 net-next b2f0ca00e6b3 17f0b706 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/24 13:50 net-next b2f0ca00e6b3 17f0b706 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/24 02:07 net-next b2f0ca00e6b3 17f0b706 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/24 01:20 net-next b2f0ca00e6b3 17f0b706 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/23 12:20 net-next cad4162a90ae 17f0b706 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/22 21:54 net-next 57e222475545 590921a5 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/21 18:01 net-next 53e35ebb9a17 95777977 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/21 08:11 net-next a926c025d56b 95777977 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/20 22:34 net-next e7ad33fa7bc5 c0ced557 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/20 21:30 net-next e7ad33fa7bc5 c0ced557 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/20 17:18 net-next e7ad33fa7bc5 c0ced557 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/20 12:46 net-next e7ad33fa7bc5 c0ced557 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/20 11:07 net-next e7ad33fa7bc5 c0ced557 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/20 08:47 net-next e7ad33fa7bc5 4285c989 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/20 04:36 net-next e7ad33fa7bc5 4285c989 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/20 00:59 net-next e7ad33fa7bc5 4285c989 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/19 23:08 net-next e7ad33fa7bc5 4285c989 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/19 21:49 net-next e7ad33fa7bc5 50f523d7 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/19 20:21 net-next e7ad33fa7bc5 50f523d7 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/19 19:08 net-next e7ad33fa7bc5 50f523d7 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/19 13:00 net-next e7ad33fa7bc5 50f523d7 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/19 10:07 net-next e7ad33fa7bc5 50f523d7 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/19 05:50 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/19 00:56 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 21:26 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 18:15 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 17:12 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 15:32 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 11:52 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 10:49 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 09:42 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 05:28 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 04:16 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/18 02:03 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/17 22:08 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/17 18:50 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/17 14:34 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/17 12:38 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-net-kasan-gce 2021/04/17 12:17 net-next e7ad33fa7bc5 7e2b734b .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/12 14:44 bpf-next 92d3bff28aa4 bfeda1b1 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-bpf-next-kasan-gce 2021/04/01 21:57 bpf-next 89d69c5d0fbc 6a81331a .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
ci-upstream-linux-next-kasan-gce-root 2021/04/12 17:49 linux-next 5df924d19629 bfeda1b1 .config log report info WARNING: suspicious RCU usage in tcp_bpf_update_proto
* Struck through repros no longer work on HEAD.