syzbot


WARNING: suspicious RCU usage in udp_bpf_update_proto

Status: closed as invalid on 2021/10/06 01:19
Subsystems: bpf net
[Documentation on labels]
First crash: 1397d, last: 1380d
Cause bisection: introduced by (bisect log) [merge commit]:
commit 802b31c0dd7f44c9ab44d39c6c4af22d958ad803
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Mar 14 20:29:38 2021 +0000

  Merge tag 'timers-urgent-2021-03-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Crash: WARNING in kvm_wait (log)
Repro: syz .config
  
Fix bisection: fixed by (bisect log) [no-op commit]:
commit ca8ee26d616b5e1818a0c69285d8f01feec35af9
Author: Alex Deucher <alexander.deucher@amd.com>
Date: Fri Mar 19 20:34:45 2021 +0000

  drm/amdgpu: clean up non-DC suspend/resume handling

  

Sample crash report:
=============================
WARNING: suspicious RCU usage
5.12.0-rc4-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-executor011/8450:
 #0: ffff8880178765c8 (clock-AF_INET){++..}-{2:2}, at: sk_psock_drop+0x2c/0x460 net/core/skmsg.c:788

stack backtrace:
CPU: 1 PID: 8450 Comm: syz-executor011 Not tainted 5.12.0-rc4-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]
 udp_bpf_update_proto+0x244/0x3c0 net/ipv4/udp_bpf.c:109
 sk_psock_restore_proto include/linux/skmsg.h:408 [inline]
 sk_psock_drop+0xdf/0x460 net/core/skmsg.c:789
 sk_psock_put include/linux/skmsg.h:446 [inline]
 udp_bpf_recvmsg+0x607/0x770 net/ipv4/udp_bpf.c:66
 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]
 sock_read_iter+0x33c/0x470 net/socket.c:979
 call_read_iter include/linux/fs.h:1971 [inline]
 do_iter_readv_writev+0x56a/0x740 fs/read_write.c:738
 do_iter_read+0x285/0x6e0 fs/read_write.c:801
 vfs_readv+0xe5/0x150 fs/read_write.c:921
 do_readv+0x27f/0x300 fs/read_write.c:958
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x445c19
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 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:00007f74d9427318 EFLAGS: 00000246 ORIG_RAX: 0000000000000013
RAX: ffffffffffffffda RBX: 00000000004cb438 RCX: 0000000000445c19
RDX: 0000000000000001 RSI: 0000000020000340 RDI: 0000000000000004
RBP: 00000000004cb430 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000049b154
R13: 00007ffc3853ccbf R14: 00007f74d9427400 R15: 0000000000022000

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/03 20:33 net-next-old 825066651792 6a81331a .config console log report syz C ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/03 01:24 bpf-next 89d69c5d0fbc 6a81331a .config console log report syz ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/02 00:21 bpf-next 89d69c5d0fbc 6a81331a .config console log report syz ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/18 02:37 net-next-old e7ad33fa7bc5 7e2b734b .config console log report info ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/14 10:10 net-next-old 5871d0c6b8ea 3134b37f .config console log report info ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/09 07:52 bpf-next 92d3bff28aa4 6a81331a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/08 21:09 bpf-next 957dca3df624 6a81331a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/07 21:17 net-next-old be107538c529 6a81331a .config console log report info ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/07 12:50 bpf-next 928dc406802d 6a81331a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/05 08:49 bpf-next f73ea1eb4cce 6a81331a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/04 09:31 net-next-old 428e68e1a85a 6a81331a .config console log report info ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/03 19:29 net-next-old 825066651792 6a81331a .config console log report info ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/03 00:30 bpf-next 89d69c5d0fbc 6a81331a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
2021/04/01 23:52 bpf-next 89d69c5d0fbc 6a81331a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in udp_bpf_update_proto
* Struck through repros no longer work on HEAD.