From nobody Fri Apr 12 01:46:19 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VFztg5qDQz5GZgM for ; Fri, 12 Apr 2024 01:46:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VFztf6n7gz4V1y for ; Fri, 12 Apr 2024 01:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712886379; a=rsa-sha256; cv=none; b=KO9VG2RSMTR8uH4UlgmWAXhb3+1oPpGkirfNbA2T1T81V/SieZuPIOzciKdmgLSK3qC4ZH 3x+IqdwFCEo6qjKcWiyCJTNJLM8j96ptqfpE/yqg2Y1FE6qaCeGHE5PNe9s5YW9mmy+Z9r 6dOpDCFpKKB0Bur36xhUItBEK9EPk34BhwGFIq9dcm7JBEXLKYOxxRafYDnbg7ZtMLzzm6 hHLc0NDdkzh59sWGd3pTNqgdkKxK9UKufjhcnkV/OSPT+69dQ6xJGlE/iTwGpXGL+EP9+F 7qkbuUBjJGKdCz1ZPRUJ9GpgUEz7/RI7qnu6FGSU2pciGEu3Xob6dWayZI/NvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712886379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GUj1QIxmZJ9uJ4znrKdzuViwd8fbRxx3CIhnagjLh4E=; b=GfYxaeTg/mNVaXoQjKtreqQGTC4sC9/FFi7C7aC44jAuQD4rozQotXMTN5aRRcT9RrFTOX xK3gdHD3mU9+FvsLwLHhrq77uel8wRUgFaVwpa3TH68+2w40yc2BWuD7I5ycq+S20W11Vy J5UsB0waZ4cb9ihfduLJJgdyqeIGVOw4cF141xgCDxwaSrGOA9mFsLMEfsTdHjPyWbl6nJ R7NW5Qeyh5PDRVSRojcqp7LhDZ6XOXA2iJcIqIojaRUjsld2Opb1rtkUB/aLTQzGxhK6Lk uHVmJCMMLEp0g0OsXBf3OmvS6Gty2F8qCUZSW5+GUgtK6nkOH0PRmhHyWyES/w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VFztf6Nw0zVP6 for ; Fri, 12 Apr 2024 01:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43C1kI7r049234 for ; Fri, 12 Apr 2024 01:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43C1kIdi049228 for bugs@FreeBSD.org; Fri, 12 Apr 2024 01:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278319] filemon(4) panics with KASAN enabled Date: Fri, 12 Apr 2024 01:46:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: christos@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: freebsd-bugs+owner@freebsd.org MIME-Version: 1.0 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.=