Bug 270917 - Panic on recent -CURRENT: Unread portion of the kernel message buffer: no proper vop_fplookup_vexec
Summary: Panic on recent -CURRENT: Unread portion of the kernel message buffer: no pro...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Mateusz Guzik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-18 17:23 UTC by Gordon Bergling
Modified: 2023-04-18 18:06 UTC (History)
1 user (show)

See Also:


Attachments
Core.txt from the kernel panic (194.00 KB, text/plain)
2023-04-18 17:23 UTC, Gordon Bergling
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Bergling freebsd_committer freebsd_triage 2023-04-18 17:23:14 UTC
Created attachment 241568 [details]
Core.txt from the kernel panic

On a very recent -CURRENT as of April 18, 2023, I get a reproducible panic running the kyua test suite (as root).

Unread portion of the kernel message buffer:
no proper vop_fplookup_vexec
0xfffff8003b7bb700: type VFIFO state VSTATE_CONSTRUCTED op 0xffffffff81af9380
    usecount 0, writecount 0, refcount 0 seqc users 0 fifoinfo 0
    hold count flags ()
    flags ()
    lock type tmpfs: UNLOCKED
tag VT_TMPFS, tmpfs_node 0xfffff8000bc95570, flags 0x0, links 1
        mode 0644, owner 0, group 0, size 0, status 0x0
, NULL v_fifoinfo
panic: no proper vop_fplookup_vexec
cpuid = 0
time = 1681794059
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0096cab990
vpanic() at vpanic+0x152/frame 0xfffffe0096cab9e0
panic() at panic+0x43/frame 0xfffffe0096caba40
cache_vop_bad_vexec() at cache_vop_bad_vexec+0x24/frame 0xfffffe0096caba50
cache_fplookup() at cache_fplookup+0x524/frame 0xfffffe0096cabb40
namei() at namei+0x1eb/frame 0xfffffe0096cabbc0
kern_statat() at kern_statat+0x12f/frame 0xfffffe0096cabd00
sys_fstatat() at sys_fstatat+0x2f/frame 0xfffffe0096cabe00
amd64_syscall() at amd64_syscall+0x6dc/frame 0xfffffe0096cabf30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0096cabf30
--- syscall (552, FreeBSD ELF64, fstatat), rip = 0xf124c7f7eea, rsp = 0xf124a173e28, rbp = 0xf124a173f40 ---

The core.txt is attached to this PR, the dump is available on request.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-04-18 18:06:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=5e954b9216ed94f66c74ef55622e0a8fe18d805a

commit 5e954b9216ed94f66c74ef55622e0a8fe18d805a
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-04-18 18:04:16 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-04-18 18:06:30 +0000

    tmpfs: add missing vop_fplookup ops to tmpfs_fifoop_entries

    Reported by:    gbe
    PR:     270917

 sys/fs/tmpfs/tmpfs_fifoops.c | 2 ++
 1 file changed, 2 insertions(+)