syzbot


BUG: soft lockup in sock_close

Status: upstream: reported syz repro on 2024/12/23 18:51
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+bb721a1495edb233298b@syzkaller.appspotmail.com
First crash: 3d06h, last: 3d06h
Bug presence (1)
Date Name Commit Repro Result
2024/12/26 upstream (ToT) 9b2ffa6148b1 C [report] BUG: soft lockup in sys_sendmsg
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: soft lockup in sock_close C 94 1d07h 276d 0/2 upstream: reported C repro on 2024/03/25 07:28
android-5-15 BUG: soft lockup in sock_close origin:downstream C done 323 11d 275d 0/2 upstream: reported C repro on 2024/03/26 23:21
android-6-1 BUG: soft lockup in sock_close origin:downstream C error 4 6d07h 274d 0/2 upstream: reported C repro on 2024/03/27 04:09
linux-5.15 INFO: rcu detected stall in sock_close (2) 1 337d 337d 0/3 auto-obsoleted due to no activity on 2024/05/03 14:38
upstream INFO: rcu detected stall in sock_close (4) net 2 427d 464d 0/28 auto-obsoleted due to no activity on 2024/01/24 15:51
linux-6.1 INFO: rcu detected stall in sock_close (3) 1 227d 227d 0/3 auto-obsoleted due to no activity on 2024/08/21 03:02
linux-6.1 INFO: rcu detected stall in sock_close origin:upstream C done 1 535d 535d 3/3 fixed on 2023/09/23 10:26
linux-6.1 INFO: rcu detected stall in sock_close (2) 1 329d 329d 0/3 auto-obsoleted due to no activity on 2024/05/11 05:25
upstream INFO: rcu detected stall in sock_close (3) tipc C done done 5 1137d 1632d 0/28 closed as invalid on 2022/02/08 10:42
linux-5.15 INFO: rcu detected stall in sock_close C error 2 515d 569d 0/3 auto-obsoleted due to no activity on 2023/11/07 13:02
linux-5.15 INFO: rcu detected stall in sock_close (3) origin:upstream C 8 37d 221d 0/3 upstream: reported C repro on 2024/05/20 00:06

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz.2.10139:2640]
Modules linked in:
irq event stamp: 5973
hardirqs last  enabled at (5972): [<ffff80001232a3e8>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline]
hardirqs last  enabled at (5972): [<ffff80001232a3e8>] exit_to_kernel_mode+0xe8/0x118 arch/arm64/kernel/entry-common.c:94
hardirqs last disabled at (5973): [<ffff8000123280c4>] __el1_irq arch/arm64/kernel/entry-common.c:468 [inline]
hardirqs last disabled at (5973): [<ffff8000123280c4>] el1_interrupt+0x24/0x68 arch/arm64/kernel/entry-common.c:486
softirqs last  enabled at (1898): [<ffff800008030408>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (1908): [<ffff8000105996b4>] spin_lock_bh include/linux/spinlock.h:356 [inline]
softirqs last disabled at (1908): [<ffff8000105996b4>] lock_sock_nested+0x90/0x138 net/core/sock.c:3488
CPU: 0 PID: 2640 Comm: syz.2.10139 Tainted: G        W          6.1.121-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : queued_spin_lock_slowpath+0x15c/0xe48 kernel/locking/qspinlock.c:383
lr : queued_spin_lock_slowpath+0x168/0xe48 kernel/locking/qspinlock.c:383
sp : ffff8000249775e0
x29: ffff800024977680 x28: 1fffe0001e14fa33 x27: 1ffff0000492eec8
x26: dfff800000000000 x25: 1fffe0001e14fa35 x24: ffff800024977600
x23: ffff800024977640 x22: ffff70000492eec0 x21: 0000000000000001
x20: 0000000000000001 x19: ffff0000f0a7d198 x18: 0000000000000000
x17: 0000000000000000 x16: ffff800008978024 x15: 0000000000000000
x14: 1ffff00002b520b2 x13: dfff800000000000 x12: 0000000000000001
x11: 1fffe0001e14fa33 x10: 0000000000000000 x9 : 0000000000000000
x8 : 0000000000000101 x7 : ffff8000105996b4 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80001240f19c
x2 : 0000000000000000 x1 : 0000000000000004 x0 : 0000000000000001
Call trace:
 __cmpwait_case_32 arch/arm64/include/asm/cmpxchg.h:252 [inline]
 __cmpwait arch/arm64/include/asm/cmpxchg.h:278 [inline]
 queued_spin_lock_slowpath+0x15c/0xe48 kernel/locking/qspinlock.c:383
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock+0x330/0x358 kernel/locking/spinlock_debug.c:115
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:127 [inline]
 _raw_spin_lock_bh+0x5c/0x6c kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 lock_sock_nested+0x90/0x138 net/core/sock.c:3488
 lock_sock include/net/sock.h:1750 [inline]
 tipc_release+0xa8/0x14c0 net/tipc/socket.c:639
 __sock_release net/socket.c:654 [inline]
 sock_close+0xb8/0x1fc net/socket.c:1400
 __fput+0x1c8/0x7c8 fs/file_table.c:320
 ____fput+0x20/0x30 fs/file_table.c:348
 task_work_run+0x240/0x2f0 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x2080/0x2cb8 arch/arm64/kernel/signal.c:1132
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/23 18:50 linux-6.1.y 29f02ec58a94 b4fbdbd4 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: soft lockup in sock_close
* Struck through repros no longer work on HEAD.