[Bug 293244] ufs: crash involving (non)existant file

[email protected]
Newsgroups gmane.os.freebsd.devel.file-systems
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293244

            Bug ID: 293244
           Summary: ufs: crash involving (non)existant file
           Product: Base System
           Version: 15.0-RELEASE
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

I have experienced some sort of UFS defect on a 15.0-RELEASE machine
(powerpc64le).
git reported that a file was missing that seemed to still exist:

$ ls deskutils/xcalendar/files/patch-dayeditor.c
ls: deskutils/xcalendar/files/patch-dayeditor.c: No such file or directory
$ ls deskutils/xcalendar/files/
patch-Imakefile         patch-dayeditor.c       xcalendar-uj.hlp.sed
patch-XCal-uj.sed       patch-xcalendar.c       xcalendar-uj.hol
patch-XCalendar.sed     patch-xcalendar.h       xcalendar-uj.man.sed
$ rm deskutils/xcalendar/files/patch-dayeditor.c 
rm: deskutils/xcalendar/files/patch-dayeditor.c: No such file or directory
$ ls deskutils/xcalendar/files/
patch-Imakefile         patch-dayeditor.c       xcalendar-uj.hlp.sed
patch-XCal-uj.sed       patch-xcalendar.c       xcalendar-uj.hol
patch-XCalendar.sed     patch-xcalendar.h       xcalendar-uj.man.sed
$ mv deskutils/xcalendar/files/patch-dayeditor.c .
(server crashes)

The console shows the following crash:

panic: Bad effnlink fip 0xc000000104e9ca28, fdp 0xc000000104e1b3e8, tdp
0xc0000001090deed8
cpuid = 7
time = 1771351460
KDB: stack backtrace:
#0 0xc000000002f99884 at kdb_backtrace+0x84
#1 0xc000000002f284cc at vpanic+0x1ac
#2 0xc000000002f28300 at panic+0x40
#3 0xc000000003411bc8 at ufs_vinit+0x31a8
#4 0xc00000000357a5cc at VOP_RENAME_APV+0x4c
#5 0xc0000000030a2940 at kern_renameat+0x5c0
#6 0xc0000000030a2350 at sys_rename+0x30
#7 0xc00000000356b098 at trap+0xd88
#8 0xc00000000356a8dc at trap+0x5cc
#9 0xc00000000355e0a4 at powerpc_interrupt+0x1b4
Uptime: 2m42s

Unfortunately I have no debug symbols on this kernel, which is the kernel from
15.0 with this patch applied: https://github.com/openzfs/zfs/pull/18218.

A file system check reports:

# fsck -f /
** /dev/ada0p2
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
/usr/ports/audio/midi-matrix-lv2/pkg-plist IS AN EXTRANEOUS HARD LINK TO
DIRECTORY /usr/src/crypto/openssl/demos/pkey
REMOVE? [yn] y

UNALLOCATED  I=112099165  OWNER=root MODE=0
SIZE=0 MTIME=Feb 16 16:35 2026 
NAME=/home/main.ports/deskutils/xcalendar/files/patch-dayeditor.c

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? [yn] y

** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? [yn] y

SUMMARY INFORMATION BAD
SALVAGE? [yn] y

BLK(S) MISSING IN BIT MAPS
SALVAGE? [yn] y

1127016 files, 33449276 used, 202052774 free (30934 frags, 25252730 blocks,
0.0% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****

***** FILE SYSTEM WAS MODIFIED *****

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.