syzbot


WARNING in inc_nlink

Status: upstream: reported C repro on 2023/03/20 05:26
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+642f43b47421d18b19dc@syzkaller.appspotmail.com
First crash: 679d, last: 18h33m
Fix commit to backport (bisect log) :
tree: upstream
commit 97f044f690bac2b094bfb7fb2d177ef946c85880
Author: Miklos Szeredi <mszeredi@redhat.com>
Date: Fri Oct 22 15:03:02 2021 +0000

  fuse: don't increment nlink in link()

  
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: WARNING in inc_nlink (log)
Repro: C syz .config
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/14 linux-5.15.y (ToT) b0ece631f84a C [report] WARNING in inc_nlink
2023/05/13 upstream (ToT) d4d58949a6ea C Didn't crash
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in inc_nlink (2) C error 102 792d 1548d 0/1 upstream: reported C repro on 2020/11/01 15:25
upstream WARNING in inc_nlink (2) fs C inconclusive done 21 1056d 1393d 20/28 fixed on 2022/03/08 16:11
upstream WARNING in inc_nlink (3) fs C error error 4909 34m 1047d 0/28 upstream: reported C repro on 2022/03/17 16:37
linux-6.1 WARNING in inc_nlink 81 636d 658d 0/3 auto-obsoleted due to no activity on 2023/07/31 15:23
linux-4.19 WARNING in inc_nlink C done 8 1622d 1771d 1/1 fixed on 2020/09/18 07:23
linux-4.14 WARNING in inc_nlink C done 21 1630d 1772d 1/1 fixed on 2020/09/11 09:49
linux-4.14 WARNING in inc_nlink (2) C 47 708d 1543d 0/1 upstream: reported C repro on 2020/11/06 09:55
upstream WARNING in inc_nlink C done 26 1660d 1763d 15/28 fixed on 2020/09/16 22:51
linux-6.1 WARNING in inc_nlink (2) origin:upstream missing-backport C error 184 20h35m 396d 0/3 upstream: reported C repro on 2023/12/28 21:17
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2023/12/06 06:14 4h29m fix candidate upstream OK (1) job log
2023/11/30 14:32 2h14m bisect fix linux-5.15.y OK (0) job log log
2023/10/30 05:59 1h16m bisect fix linux-5.15.y OK (0) job log log
2023/09/28 07:46 49m bisect fix linux-5.15.y OK (0) job log log
2023/07/26 19:45 1h39m bisect fix linux-5.15.y OK (0) job log log
2023/06/13 07:26 31m bisect fix linux-5.15.y OK (0) job log log
2023/04/19 09:00 34m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
loop0: detected capacity change from 0 to 128
VFS: Found a Xenix FS (block size = 1024) on device loop0
attempt to access beyond end of device
loop0: rw=0, want=6491538, limit=128
Buffer I/O error on dev loop0, logical block 3245768, async page read
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4162 at fs/inode.c:364 inc_nlink+0x120/0x130
Modules linked in:
CPU: 1 PID: 4162 Comm: syz-executor140 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:inc_nlink+0x120/0x130 fs/inode.c:364
Code: ed ff e9 37 ff ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 49 ff ff ff 4c 89 ef e8 4a 9e ed ff e9 3c ff ff ff e8 10 c6 a3 ff <0f> 0b eb 80 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57 41 56 53 48
RSP: 0018:ffffc90002ef7d60 EFLAGS: 00010293
RAX: ffffffff81dcad90 RBX: 1ffff1100de28810 RCX: ffff8880219d5940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81dcad0a R09: ffffed1002e39a57
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88806f144080 R14: ffff88806f144038 R15: 0000000000000000
FS:  0000555568622380(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc4a0c95000 CR3: 0000000026634000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 inode_inc_link_count include/linux/fs.h:2499 [inline]
 sysv_mkdir+0x1d/0x120 fs/sysv/namei.c:119
 vfs_mkdir+0x3b6/0x590 fs/namei.c:4065
 do_mkdirat+0x260/0x520 fs/namei.c:4090
 __do_sys_mkdir fs/namei.c:4110 [inline]
 __se_sys_mkdir fs/namei.c:4108 [inline]
 __x64_sys_mkdir+0x6a/0x80 fs/namei.c:4108
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fc4a90c4a59
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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:00007ffdbb13c248 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc4a90c4a59
RDX: 00007fc4a90c3cb0 RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007fc4a91415f0 R08: 0000000000009e89 R09: 00005555686234c0
R10: 00007ffdbb13c110 R11: 0000000000000246 R12: 00007ffdbb13c270
R13: 00007ffdbb13c498 R14: 431bde82d7b634db R15: 00007fc4a910d03b
 </TASK>

Crashes (268):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/21 18:36 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in inc_nlink
2024/05/12 02:59 linux-5.15.y 284087d4f7d5 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in inc_nlink
2023/05/08 08:00 linux-5.15.y 8a7f2a5c5aa1 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2024/08/11 19:06 linux-5.15.y 7e89efd3ae1c 6f4edef4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2024/07/14 10:38 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2023/03/20 05:50 linux-5.15.y 8020ae3c051d 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/27 07:48 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/26 04:43 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/22 14:44 linux-5.15.y 4735586da88e da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/20 08:42 linux-5.15.y 4735586da88e f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/19 22:16 linux-5.15.y 4735586da88e f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/19 19:11 linux-5.15.y 4735586da88e f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/17 11:06 linux-5.15.y 4735586da88e f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/13 03:56 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/12 16:38 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/12 08:12 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/12 04:01 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/11 03:59 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/10 14:01 linux-5.15.y 4735586da88e 67d7ec0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/10 01:20 linux-5.15.y 4735586da88e 9220929f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/09 08:24 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/09 06:19 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/09 01:12 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/08 14:02 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/08 10:17 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
2025/01/27 06:38 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/26 09:42 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/26 07:47 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/26 04:46 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/26 03:33 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/25 20:35 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/24 02:38 linux-5.15.y 003148680b79 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/22 06:28 linux-5.15.y 4735586da88e da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/21 22:49 linux-5.15.y 4735586da88e da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/21 03:08 linux-5.15.y 4735586da88e 6e87cfa2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/18 20:20 linux-5.15.y 4735586da88e f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/18 20:18 linux-5.15.y 4735586da88e f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/18 14:11 linux-5.15.y 4735586da88e f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/17 19:37 linux-5.15.y 4735586da88e 953d1c45 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/17 02:40 linux-5.15.y 4735586da88e f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/13 20:02 linux-5.15.y 4735586da88e 249ceea9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/12 02:47 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/11 11:35 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/11 06:20 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/11 00:52 linux-5.15.y 4735586da88e 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/10 12:16 linux-5.15.y 4735586da88e 67d7ec0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/09 04:35 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/09 03:33 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/08 22:26 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/08 19:15 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/08 11:58 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/08 03:44 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2025/01/07 22:39 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in inc_nlink
2023/03/20 05:26 linux-5.15.y 8020ae3c051d 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in inc_nlink
* Struck through repros no longer work on HEAD.