syzbot


WARNING: lock held when returning to user space in rtnl_link_ops_get

Status: internal: reported C repro on 2024/11/18 02:11
Subsystems: net
[Documentation on labels]
Fix commit: 9b234a97b10c rtnetlink: fix rtnl_dump_ifinfo() error path
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-arm32]
First crash: 33d, last: 26d
Cause bisection: introduced by (bisect log) :
commit 43c7ce69d28e185f62fe2b8be2c681c5cac0bc6b
Author: Kuniyuki Iwashima <kuniyu@amazon.com>
Date: Wed Oct 16 18:53:50 2024 +0000

  rtnetlink: Protect struct rtnl_link_ops with SRCU.

Crash: WARNING: lock held when returning to user space in rtnl_link_ops_get (log)
Repro: C syz .config
  
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/11/20 18:52 23m edumazet@google.com patch net-next OK log

Sample crash report:
================================================
WARNING: lock held when returning to user space!
6.12.0-rc7-syzkaller-01681-g38f83a57aa8e #0 Not tainted
------------------------------------------------
syz-executor399/5841 is leaving the kernel with locks still held!
1 lock held by syz-executor399/5841:
 #0: ffffffff8f46c2a0 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 #0: ffffffff8f46c2a0 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
 #0: ffffffff8f46c2a0 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x22/0x250 net/core/rtnetlink.c:555

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/18 09:48 net-next 38f83a57aa8e cfe3a04a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: lock held when returning to user space in rtnl_link_ops_get
2024/11/18 04:54 net-next 38f83a57aa8e cfe3a04a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: lock held when returning to user space in rtnl_link_ops_get
2024/11/18 04:09 net-next 38f83a57aa8e cfe3a04a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: lock held when returning to user space in rtnl_link_ops_get
2024/11/18 03:10 net-next 38f83a57aa8e cfe3a04a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: lock held when returning to user space in rtnl_link_ops_get
2024/11/25 08:55 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING: lock held when returning to user space in rtnl_link_ops_get
2024/11/24 19:35 net f26a29a038ee 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: lock held when returning to user space in rtnl_link_ops_get
2024/11/22 23:21 net fcc79e1714e8 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: lock held when returning to user space in rtnl_link_ops_get
2024/11/22 11:31 net-next fcc79e1714e8 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: lock held when returning to user space in rtnl_link_ops_get
2024/11/18 02:10 net-next 38f83a57aa8e cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: lock held when returning to user space in rtnl_link_ops_get
* Struck through repros no longer work on HEAD.