Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2024 01:46:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278319] filemon(4) panics with KASAN enabled
Message-ID:  <bug-278319-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278319

            Bug ID: 278319
           Summary: filemon(4) panics with KASAN enabled
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: christos@freebsd.org

To reproduce, just start a buildkernel/buildworld with WITH_META_MODE and K=
ASAN
enabled. According to markj@, this might be a false-positive due to LLVM.

FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git
llvmorg-17.0.6-0-g6009708b4367)

panic: ASan: Invalid access, 8-byte write at 0xfffffe00457d2760,
UseAfterScope(f8)
cpuid =3D 0
time =3D 1712697087
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0xa5/frame 0xfffffe00457d2=
290
kdb_backtrace() at kdb_backtrace+0xc6/frame 0xfffffe00457d23f0
vpanic() at vpanic+0x210/frame 0xfffffe00457d2590
panic() at panic+0xb5/frame 0xfffffe00457d2650
kasan_code_name() at kasan_code_name/frame 0xfffffe00457d2720
devfs_get_cdevpriv() at devfs_get_cdevpriv+0x52/frame 0xfffffe00457d2740
filemon_ioctl() at filemon_ioctl+0x23/frame 0xfffffe00457d2790
devfs_ioctl() at devfs_ioctl+0x1f6/frame 0xfffffe00457d2870
vn_ioctl() at vn_ioctl+0x235/frame 0xfffffe00457d2a80
devfs_ioctl_f() at devfs_ioctl_f+0x6c/frame 0xfffffe00457d2ad0
kern_ioctl() at kern_ioctl+0x3a1/frame 0xfffffe00457d2bb0
sys_ioctl() at sys_ioctl+0x247/frame 0xfffffe00457d2d10
amd64_syscall() at amd64_syscall+0x365/frame 0xfffffe00457d2f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00457d2f30
--- syscall (54, FreeBSD ELF64, ioctl), rip =3D 0xb5e318e48fa, rsp =3D
0xb5e2f280d78, rbp =3D 0xb5e2f280da0 ---
KDB: enter: panic
[ thread pid 3131 tid 100193 ]
Stopped at      kdb_enter+0x34: movq    $0,0x1ef4261(%rip)
db>

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278319-227>