syzbot


possible deadlock in smc_release

Status: upstream: reported C repro on 2024/09/24 05:56
Bug presence: origin:lts-only
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+793d678d565a6f4300f4@syzkaller.appspotmail.com
First crash: 641d, last: 1d04h
Bug presence (2)
Date Name Commit Repro Result
2026/03/18 linux-5.15.y (ToT) 91d48252ad4b C [report] possible deadlock in smc_release
2026/03/18 upstream (ToT) 04a9f1766954 C Didn't crash
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 possible deadlock in smc_release (2) 4 1 36d 36d 0/2 upstream: reported on 2026/05/22 12:09
linux-6.6 possible deadlock in smc_release 4 1 219d 219d 0/2 auto-obsoleted due to no activity on 2026/02/27 23:52
upstream possible deadlock in smc_release smc 4 C error 625 5h03m 876d 0/29 upstream: reported C repro on 2024/02/02 13:26
linux-6.1 possible deadlock in smc_release origin:upstream missing-backport 4 C 1851 12h07m 880d 0/3 upstream: reported C repro on 2024/01/29 16:17
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/08/01 02:58 16m retest repro linux-5.15.y report log
2025/08/01 02:58 16m retest repro linux-5.15.y report log
2025/08/01 02:58 15m retest repro linux-5.15.y report log
2025/08/01 02:58 15m retest repro linux-5.15.y report log
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2026/06/02 18:18 27m fix candidate upstream error job log
2026/04/19 20:37 13m fix candidate upstream error job log
2026/03/18 20:41 18m fix candidate upstream error job log
2026/02/23 08:58 1m fix candidate upstream error job log
2026/01/23 21:19 6m fix candidate upstream error job log
2025/08/10 09:18 1m fix candidate upstream error job log
2025/07/05 19:29 1m fix candidate upstream error job log
2025/06/02 16:26 1m fix candidate upstream error job log
2025/02/26 07:14 6m fix candidate upstream error job log

Sample crash report:
======================================================
WARNING: possible circular locking dependency detected
syzkaller #0 Not tainted
------------------------------------------------------
syz.0.17/4317 is trying to acquire lock:
ffff88807e021f98 ((work_completion)(&new_smc->smc_listen_work)){+.+.}-{0:0}, at: __flush_work+0xfa/0x210 kernel/workqueue.c:3090

but task is already holding lock:
ffff88807e020120 (sk_lock-AF_SMC/1){+.+.}-{0:0}, at: smc_release+0x251/0x530 net/smc/af_smc.c:-1

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #1 (sk_lock-AF_SMC/1){+.+.}-{0:0}:
       lock_sock_nested+0x44/0x100 net/core/sock.c:3259
       smc_listen_out+0x109/0x3d0 net/smc/af_smc.c:1576
       smc_listen_out_connected net/smc/af_smc.c:1596 [inline]
       smc_listen_decline net/smc/af_smc.c:1631 [inline]
       smc_listen_work+0x526/0xd00 net/smc/af_smc.c:2089
       process_one_work+0x85f/0x1010 kernel/workqueue.c:2310
       worker_thread+0xaa6/0x1290 kernel/workqueue.c:2457
       kthread+0x436/0x520 kernel/kthread.c:334
       ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

-> #0 ((work_completion)(&new_smc->smc_listen_work)){+.+.}-{0:0}:
       check_prev_add kernel/locking/lockdep.c:3053 [inline]
       check_prevs_add kernel/locking/lockdep.c:3172 [inline]
       validate_chain kernel/locking/lockdep.c:3788 [inline]
       __lock_acquire+0x2c42/0x7d10 kernel/locking/lockdep.c:5012
       lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623
       __flush_work+0x116/0x210 kernel/workqueue.c:3090
       __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3181
       smc_clcsock_release+0x5c/0xe0 net/smc/smc_close.c:29
       __smc_release+0x661/0x7d0 net/smc/af_smc.c:237
       smc_close_non_accepted+0xd1/0x1f0 net/smc/af_smc.c:1518
       smc_close_cleanup_listen net/smc/smc_close.c:45 [inline]
       smc_close_active+0xb00/0xea0 net/smc/smc_close.c:222
       __smc_release+0x8d/0x7d0 net/smc/af_smc.c:213
       smc_release+0x2ca/0x530 net/smc/af_smc.c:280
       __sock_release net/socket.c:651 [inline]
       sock_close+0xd5/0x240 net/socket.c:1345
       __fput+0x234/0x930 fs/file_table.c:311
       task_work_run+0x125/0x1a0 kernel/task_work.c:188
       tracehook_notify_resume include/linux/tracehook.h:189 [inline]
       exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181
       exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214
       __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
       syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
       do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
       entry_SYSCALL_64_after_hwframe+0x66/0xd0

other info that might help us debug this:

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(sk_lock-AF_SMC/1);
                               lock((work_completion)(&new_smc->smc_listen_work));
                               lock(sk_lock-AF_SMC/1);
  lock((work_completion)(&new_smc->smc_listen_work));

 *** DEADLOCK ***

2 locks held by syz.0.17/4317:
 #0: ffff888068e96210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline]
 #0: ffff888068e96210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:650 [inline]
 #0: ffff888068e96210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x90/0x240 net/socket.c:1345
 #1: ffff88807e020120 (sk_lock-AF_SMC/1){+.+.}-{0:0}, at: smc_release+0x251/0x530 net/smc/af_smc.c:-1

stack backtrace:
CPU: 1 PID: 4317 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
 check_noncircular+0x296/0x330 kernel/locking/lockdep.c:2133
 check_prev_add kernel/locking/lockdep.c:3053 [inline]
 check_prevs_add kernel/locking/lockdep.c:3172 [inline]
 validate_chain kernel/locking/lockdep.c:3788 [inline]
 __lock_acquire+0x2c42/0x7d10 kernel/locking/lockdep.c:5012
 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623
 __flush_work+0x116/0x210 kernel/workqueue.c:3090
 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3181
 smc_clcsock_release+0x5c/0xe0 net/smc/smc_close.c:29
 __smc_release+0x661/0x7d0 net/smc/af_smc.c:237
 smc_close_non_accepted+0xd1/0x1f0 net/smc/af_smc.c:1518
 smc_close_cleanup_listen net/smc/smc_close.c:45 [inline]
 smc_close_active+0xb00/0xea0 net/smc/smc_close.c:222
 __smc_release+0x8d/0x7d0 net/smc/af_smc.c:213
 smc_release+0x2ca/0x530 net/smc/af_smc.c:280
 __sock_release net/socket.c:651 [inline]
 sock_close+0xd5/0x240 net/socket.c:1345
 __fput+0x234/0x930 fs/file_table.c:311
 task_work_run+0x125/0x1a0 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f181c542e59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc0cd0d4f8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007ffc0cd0d5e0 RCX: 00007f181c542e59
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 000000000000fabb R08: 0000000000000001 R09: 0000000000000000
R10: 0000001b30a20000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f181c7bbfac R14: 00007f181c7bbfa8 R15: 00007f181c7bbfa0
 </TASK>

Crashes (1163):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/25 08:28 linux-5.15.y 241d66fa280c c69befb3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/03/18 08:29 linux-5.15.y 91d48252ad4b c8810548 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2025/05/11 12:24 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in smc_release
2025/01/23 11:05 linux-5.15.y 4735586da88e a44b0418 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in smc_release
2025/01/04 04:52 linux-5.15.y 91786f140358 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in smc_release
2024/09/24 05:55 linux-5.15.y 3a5928702e71 89298aad .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in smc_release
2026/06/26 13:27 linux-5.15.y eceeec79dbc6 7ff32d8b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/25 17:18 linux-5.15.y eceeec79dbc6 cfa969bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/25 17:18 linux-5.15.y eceeec79dbc6 cfa969bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/25 12:53 linux-5.15.y eceeec79dbc6 cfa969bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/25 02:57 linux-5.15.y eceeec79dbc6 302586aa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/24 22:37 linux-5.15.y eceeec79dbc6 302586aa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/24 18:57 linux-5.15.y eceeec79dbc6 302586aa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/24 07:44 linux-5.15.y eceeec79dbc6 042555ff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/23 17:38 linux-5.15.y eceeec79dbc6 4b1d8f01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/23 07:10 linux-5.15.y eceeec79dbc6 5a630be6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/22 13:48 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/22 13:48 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/22 11:50 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/21 13:27 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/21 07:55 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/20 17:07 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/20 15:48 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/20 13:40 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/20 03:17 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/19 05:55 linux-5.15.y dc027a595035 a776b0d0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/19 02:24 linux-5.15.y dc027a595035 a776b0d0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/18 17:58 linux-5.15.y dc027a595035 a776b0d0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/18 17:58 linux-5.15.y dc027a595035 a776b0d0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/17 21:08 linux-5.15.y dc027a595035 b62b3ded .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/17 13:19 linux-5.15.y dc027a595035 62cc6db3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/16 20:36 linux-5.15.y dc027a595035 a3998659 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/16 18:51 linux-5.15.y dc027a595035 a3998659 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/15 22:38 linux-5.15.y dc027a595035 50bb0618 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/15 18:59 linux-5.15.y dc027a595035 50bb0618 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/15 09:46 linux-5.15.y dc027a595035 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/14 18:08 linux-5.15.y dc027a595035 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/14 02:38 linux-5.15.y dc027a595035 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/13 21:31 linux-5.15.y dc027a595035 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/12 09:39 linux-5.15.y dc027a595035 e93da63e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/11 07:03 linux-5.15.y dc027a595035 b754d2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/11 06:01 linux-5.15.y dc027a595035 b754d2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/10 19:00 linux-5.15.y dc027a595035 f79bac11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/10 07:48 linux-5.15.y dc027a595035 34dab4be .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/10 06:36 linux-5.15.y dc027a595035 34dab4be .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/09 21:14 linux-5.15.y dc027a595035 c36c07f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/09 18:20 linux-5.15.y dc027a595035 c36c07f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/08 02:05 linux-5.15.y dc027a595035 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2026/06/07 22:06 linux-5.15.y dc027a595035 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in smc_release
2025/08/28 03:46 linux-5.15.y c79648372d02 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in smc_release
* Struck through repros no longer work on HEAD.