syzbot


INFO: rcu detected stall in sys_setsockopt (4)

Status: upstream: reported C repro on 2024/11/25 08:53
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+6e61d59e9d2150c8492b@syzkaller.appspotmail.com
First crash: 125d, last: 2d00h
Cause bisection: introduced by (bisect log) :
commit d15121be7485655129101f3960ae6add40204463
Author: Paolo Abeni <pabeni@redhat.com>
Date: Mon May 8 06:17:44 2023 +0000

  Revert "softirq: Let ksoftirqd do its job"

Crash: INFO: task hung in del_device_store (log)
Repro: syz .config
  
Fix bisection the fix commit could be any of (bisect log):
  6d71a9c61604 sched/fair: Fix EEVDF entity placement bug causing scheduling lag
  66951e4860d3 sched/fair: Fix update_cfs_group() vs DELAY_DEQUEUE
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] INFO: rcu detected stall in sys_setsockopt (4) 0 (2) 2024/12/12 13:26
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_setsockopt (2) kvm 2 1338d 1379d 0/28 auto-closed as invalid on 2021/10/27 00:02
upstream INFO: rcu detected stall in sys_setsockopt kvm 1 1500d 1500d 0/28 auto-closed as invalid on 2021/05/17 17:51
upstream INFO: rcu detected stall in sys_setsockopt (3) net 4 1211d 1237d 0/28 closed as invalid on 2022/02/08 10:00
linux-4.19 BUG: soft lockup in sys_setsockopt 3 1433d 1460d 0/1 auto-closed as invalid on 2021/08/23 07:10
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/03/01 07:24 11m retest repro linux-next error
2025/02/05 18:05 3h12m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2025/02/05 18:05 3h00m retest repro net log
2025/02/05 18:05 20m retest repro net report log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor180:15877]
Modules linked in:
irq event stamp: 39573425
hardirqs last  enabled at (39573424): [<ffff80008030e224>] __local_bh_enable_ip+0x224/0x44c kernel/softirq.c:394
hardirqs last disabled at (39573425): [<ffff80008b6a8e34>] __el1_irq arch/arm64/kernel/entry-common.c:557 [inline]
hardirqs last disabled at (39573425): [<ffff80008b6a8e34>] el1_interrupt+0x24/0x68 arch/arm64/kernel/entry-common.c:575
softirqs last  enabled at (668): [<ffff80008b13e230>] spin_unlock_bh include/linux/spinlock.h:396 [inline]
softirqs last  enabled at (668): [<ffff80008b13e230>] tipc_skb_peek_port net/tipc/msg.h:1235 [inline]
softirqs last  enabled at (668): [<ffff80008b13e230>] tipc_sk_rcv+0x34c/0x1878 net/tipc/socket.c:2489
softirqs last disabled at (670): [<ffff80008b13e250>] spin_trylock_bh include/linux/spinlock.h:411 [inline]
softirqs last disabled at (670): [<ffff80008b13e250>] tipc_sk_rcv+0x36c/0x1878 net/tipc/socket.c:2494
CPU: 0 UID: 0 PID: 15877 Comm: syz-executor180 Not tainted 6.13.0-rc7-syzkaller-g1950a0af2d55 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : read_tcr arch/arm64/include/asm/memory.h:227 [inline]
pc : addr_has_metadata mm/kasan/kasan.h:334 [inline]
pc : check_region_inline mm/kasan/generic.c:177 [inline]
pc : kasan_check_range+0x1c/0x2a8 mm/kasan/generic.c:189
lr : __kasan_check_write+0x20/0x30 mm/kasan/shadow.c:37
sp : ffff8000a03c6220
x29: ffff8000a03c6220 x28: 1ffff00014078d0c x27: ffff0000d0bc3c80
x26: 1ffff00014078c50 x25: 1fffe0001a178792 x24: dfff800000000000
x23: ffff8000a03c6280 x22: ffff0000d0bc3c90 x21: ffff8000a03c6860
x20: ffff8000a03c6858 x19: ffff8000a03c6868 x18: ffff8000a03c6340
x17: 000000000000e1b4 x16: ffff80008047d644 x15: 0000000000000001
x14: 1ffff00011f340ca x13: dfff800000000000 x12: 00000000fce44e39
x11: ffff80008047d644 x10: 1ffff00014078c4c x9 : 0000000000000003
x8 : ffff8000a03c685c x7 : ffff80008b13e0c8 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008047d760
x2 : 0000000000000001 x1 : 0000000000000004 x0 : ffff8000a03c6858
Call trace:
 check_region_inline mm/kasan/generic.c:174 [inline] (P)
 kasan_check_range+0x1c/0x2a8 mm/kasan/generic.c:189 (P)
 __kasan_check_write+0x20/0x30 mm/kasan/shadow.c:37
 instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
 atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1300 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:111 [inline]
 do_raw_spin_lock+0x11c/0x334 kernel/locking/spinlock_debug.c:116
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:127 [inline]
 _raw_spin_lock_bh+0x50/0x60 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 tipc_skb_peek_port net/tipc/msg.h:1225 [inline]
 tipc_sk_rcv+0x1e4/0x1878 net/tipc/socket.c:2489
 tipc_node_xmit+0x1b0/0xdb4 net/tipc/node.c:1701
 tipc_node_xmit_skb net/tipc/node.c:1766 [inline]
 tipc_node_distr_xmit+0x28c/0x3a4 net/tipc/node.c:1781
 tipc_sk_rcv+0x1268/0x1878 net/tipc/socket.c:2499
 tipc_node_xmit+0x1b0/0xdb4 net/tipc/node.c:1701
 tipc_sk_push_backlog net/tipc/socket.c:1312 [inline]
 tipc_sk_filter_connect net/tipc/socket.c:2253 [inline]
 tipc_sk_filter_rcv+0x13d4/0x2c6c net/tipc/socket.c:2362
 tipc_sk_enqueue net/tipc/socket.c:2443 [inline]
 tipc_sk_rcv+0x824/0x1878 net/tipc/socket.c:2495
 tipc_node_xmit+0x1b0/0xdb4 net/tipc/node.c:1701
 tipc_node_xmit_skb net/tipc/node.c:1766 [inline]
 tipc_node_distr_xmit+0x28c/0x3a4 net/tipc/node.c:1781
 tipc_sk_backlog_rcv+0x164/0x214 net/tipc/socket.c:2410
 sk_backlog_rcv include/net/sock.h:1121 [inline]
 __release_sock+0x1a8/0x3d8 net/core/sock.c:3086
 release_sock+0x68/0x1b8 net/core/sock.c:3640
 sk_setsockopt+0xc0c/0x314c
 sock_setsockopt+0x68/0x80 net/core/sock.c:1637
 do_sock_setsockopt+0x238/0x4e0 net/socket.c:2309
 __sys_setsockopt net/socket.c:2338 [inline]
 __do_sys_setsockopt net/socket.c:2344 [inline]
 __se_sys_setsockopt net/socket.c:2341 [inline]
 __arm64_sys_setsockopt+0x170/0x1e0 net/socket.c:2341
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/22 07:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1950a0af2d55 da72ac06 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: soft lockup in sys_setsockopt
2025/01/12 11:43 net 47e55e4b410f 6dbc6a9b .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/11/23 01:22 linux-next cfba9f07a1d6 68da6d95 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_setsockopt
2025/03/26 08:46 upstream 2df0c02dab82 89d30d73 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_setsockopt
2025/02/15 06:19 upstream 04f41cbf03ec 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_setsockopt
2025/01/02 10:50 upstream 56e6a3499e14 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_setsockopt
2025/01/02 10:45 upstream 56e6a3499e14 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_setsockopt
2024/12/17 21:09 upstream 59dbb9d81adf c8c15bb2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/12/16 09:50 upstream 78d4f34e2115 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_setsockopt
2024/12/06 13:38 upstream 5076001689e4 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_setsockopt
2025/01/13 17:06 net 76201b597976 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2025/01/08 12:32 net db78475ba0d3 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2025/01/03 23:06 net ce21419b55d8 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2025/01/01 12:18 net 4f619d518db9 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/12/19 10:27 net 5c964c8a97c1 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/12/18 16:51 net 954a2b40719a 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/12/12 13:26 net 15bfb14727bc 941924eb .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/12/07 02:37 net 11776cff0b56 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_setsockopt
2025/01/14 15:33 net-next 9c7ad3563229 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/12/29 05:52 net-next 9268abe611b0 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/11/29 21:59 net-next 65ae975e97d5 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/11/29 08:53 net-next 65ae975e97d5 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_setsockopt
2024/11/23 00:07 net-next fcc79e1714e8 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_setsockopt
* Struck through repros no longer work on HEAD.