syzbot


WARNING in udf_rmdir (2)

Status: upstream: reported C repro on 2024/11/28 01:57
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+5df2d3fa14f2d3e49305@syzkaller.appspotmail.com
First crash: 27d, last: 23d
Cause bisection: the cause commit could be any of (bisect log):
  614644676394 udf: Update header files to UDF 2.60
  871b9b14c673 udf: Move OSTA Identifier Suffix macros from ecma_167.h to osta_udf.h
  a4a8b99ec819 udf: Fix free space reporting for metadata and virtual partitions
  49be68c4931d udf: Fix meaning of ENTITYID_FLAGS_* macros to be really bitwise-or flags
  800552ceecc7 udf: Fix spelling in EXT_NEXT_EXTENT_ALLOCDESCS
  57debb815459 udf: Disallow R/W mode for disk with Metadata partition
  d9e9866803f7 ext2: Adjust indentation in ext2_fill_super
  15fb05fd286a udf: Allow writing to 'Rewritable' partitions
  1ead083ae147 quota: avoid time_t in v1_disk_dqblk definition
  356557be8670 udf: Clarify meaning of f_files in udf_statfs
  4d5c1adaf893 reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling
  5474ca7da6f3 reiserfs: Fix memory leak of journal device string
  ed21c58eefa7 fs/quota: remove unused macro
  154a4dcfc95f fs/reiserfs: remove unused macros
  34e92542da96 ext2: set proper errno in error case of ext2_fill_super()
  0196be12aab2 Merge tag 'for_v5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] udf: Prevent rmdir of deleted directories 2 (3) 2024/12/02 12:28
[syzbot] [udf?] WARNING in udf_rmdir (2) 0 (1) 2024/11/28 01:57
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in udf_rmdir udf 1 554d 550d 0/28 auto-obsoleted due to no activity on 2023/09/24 06:27
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/12/12 23:48 18m retest repro upstream OK log
2024/12/02 00:41 18m leocstone@gmail.com patch upstream OK log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2024/12/04 10:10 10h27m bisect upstream OK (16) job log
2024/11/26 19:24 9h16m bisect upstream OK (16) job log
marked invalid by edumazet@google.com

Sample crash report:
UDF-fs: warning (device loop5): udf_rmdir: empty directory has nlink != 2 (0)
UDF-fs: warning (device loop5): udf_rmdir: empty directory has nlink != 2 (0)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7187 at fs/inode.c:407 drop_nlink+0xc4/0x110 fs/inode.c:407
Modules linked in:
CPU: 0 UID: 0 PID: 7187 Comm: syz.5.154 Not tainted 6.12.0-syzkaller-10313-g7d4050728c83 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:drop_nlink+0xc4/0x110 fs/inode.c:407
Code: bb 70 07 00 00 be 08 00 00 00 e8 17 0a e6 ff f0 48 ff 83 70 07 00 00 5b 41 5c 41 5e 41 5f 5d c3 cc cc cc cc e8 6d 4b 7e ff 90 <0f> 0b 90 eb 83 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 5c ff ff ff
RSP: 0018:ffffc900034bfad0 EFLAGS: 00010293
RAX: ffffffff821794d3 RBX: 1ffff1100ad034fc RCX: ffff88807e71da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff82179453 R09: 1ffff92000697ed8
R10: dffffc0000000000 R11: fffff52000697ed9 R12: ffff88805681a7e0
R13: ffff88805681a798 R14: ffff88805681a798 R15: dffffc0000000000
FS:  00007f44baf736c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe0239e6000 CR3: 0000000031238000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 inode_dec_link_count include/linux/fs.h:2521 [inline]
 udf_rmdir+0x3b8/0x6f0 fs/udf/namei.c:520
 vfs_rmdir+0x3a3/0x510 fs/namei.c:4394
 do_rmdir+0x3b5/0x580 fs/namei.c:4453
 __do_sys_rmdir fs/namei.c:4472 [inline]
 __se_sys_rmdir fs/namei.c:4470 [inline]
 __x64_sys_rmdir+0x47/0x50 fs/namei.c:4470
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f44ba180809
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f44baf73058 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 00007f44ba346160 RCX: 00007f44ba180809
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280
RBP: 00007f44ba1f393e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f44ba346160 R15: 00007ffc88befa38
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/28 04:34 upstream 7d4050728c83 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in udf_rmdir
2024/11/24 01:55 upstream 228a1157fb9f 68da6d95 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in udf_rmdir
* Struck through repros no longer work on HEAD.