From nobody Tue Aug 12 23:49:31 2025 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 4c1pBm4NTLz64Lx5 for ; Tue, 12 Aug 2025 23:49:36 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c1pBm3fvnz3wmf for ; Tue, 12 Aug 2025 23:49:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755042576; 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=KZCbO3AT71SF6lh5vYi9kVsxFRJaLhm9LUlzdiDRxU8=; b=L/BGYstfs8XnFsuEDuOboUga5x29ecWeZ5F49+hZXRQoRRY1HwUEjaWSNYFPy/Pyf0F5rK lEoki1Rwcg1UkrN2AeuzdzFcXdP/v6tPK968qVlGjkQ0qVR8rAOAB5Q468DIheCXHG4GJ/ rONFmJSJokKQFTq1OQ5ppd5FslxrES1uIIVVzQYq4TeW7NJvRRpOC0MhxcH5zPVSk+HxKF B6QONAWMaCyOoAM9wV6L2yzVmV3LnyyOtKwUbfo7HQ8dNPAMLckn82ixzPXbwr/d63KTu1 yiH+2M+HvmhyOViNRg/WLJTPn727OU62eHO1G1Fb/G1YrI16wMS6+GjX7LscJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755042576; 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=KZCbO3AT71SF6lh5vYi9kVsxFRJaLhm9LUlzdiDRxU8=; b=x0WAZrqNa6M0eALlmFIofpnBIo8VLRU7ctjPmGDoHI7CACC66znQlmUn0ANocR1tGXREpI StUL89KbDUWn8qNJyW4ppBrXjt14y3j331/QYJREJ2RoI0NN+qkxKmXF3zwjNoT67hBFxg Gn6NFeFLNE2U2pjVRY8igfNsbTYQ7YBYl49kxyYhqBw1CvCF8nSzDS9hegZKULpGDx8LB9 uyBqzcHuUhRKbkaXuJayBvMTRcZR/S9gdCtcb9QcX3zNR5nrFDLC/Hddnb5eV+PHucvuHr phq57446Iwy03ISwc6nHeibvnSH3MWa13yg7uJKndPm21zb2TrlLjTBLLSeQeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755042576; a=rsa-sha256; cv=none; b=pCHaghDLtz0gnqRLT1DMvS9Yl/syj+IC4XfNZakjYIXfjoSRHUegWVALcQR1yGgDqYnGIm 6SLmKGfEgorFCZUvqiOLcN8gtlITwnb5hJCBCKphK+GYXxr2Y1V9ukWaGHSNOwDt5G+7ql 9DNClu4cb8gmmOsPZaYWz9Q2RJlhZIWgNmYz7uWE7fDjdFZ9Tk6gE/5B/T3Qt0XyCYaFSL fqXvhZMddSVYQksc04ywmc/BPcch0viNzMzFXT6SWS0dlcryRSltI0Kwaf8E+R5+tbv3X/ UsRO8oMTr56SKDZVwc6A20YE2yCUKiCJO7dhXfDircAjSKht5LO4XIQq/M/4Mw== 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 4c1pBm2b3Fz102d for ; Tue, 12 Aug 2025 23:49:36 +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 57CNnVE8075756 for ; Tue, 12 Aug 2025 23:49:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57CNnV5j075755 for bugs@FreeBSD.org; Tue, 12 Aug 2025 23:49:31 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 288826] Booting a Read-Only system with /entropy file panic it while reading it with dd Date: Tue, 12 Aug 2025 23:49:31 +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 Only Me X-Bugzilla-Who: olivier@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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D288826 Bug ID: 288826 Summary: Booting a Read-Only system with /entropy file panic it while reading it with dd Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: olivier@freebsd.org So, I=E2=80=99m using nanobsd that is using read-only /. Using fresh current from today. But while hacking it, I=E2=80=99ve switched it to read-write then restarted= the system. -> So the RC script, during shutdown started save_dev_random() and because = the RW / it was able to generate and write the file /entropy. But at the next start, while starting random_start() it try to read with dd this /entropy file from a Read-Only /, and this create a 100% reproducible panic created by dd: Fatal trap 12: page fault while in kernel mode cpuid =3D 6; apic id =3D 0c=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 fault virtual address =3D 0x4 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff807d67ec stack pointer =3D 0x28:0xfffffe008db0cc70 frame pointer =3D 0x28:0xfffffe008db0cc90 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 275 (dd) rdi: ffffffff81a5cde4 rsi: 0000000000000040 rdx: 00000000000000b9 rcx: 0000000000000002 r8: 0000000000000000 r9: fffffe008db0ca92 rax: 0000000000000000 rbx: ffffffff81a5cde4 rbp: fffffe008db0cc90 r10: 0000000000000000 r11: f4539e9490d76bac r12: 000000000000000c r13: ffffffff807d67b0 r14: fffffe008db0cda8 r15: fffffe008db0ccb4 trap number =3D 12 panic: page fault cpuid =3D 6 time =3D 1755009441 KDB: stack backtrace: #0 0xffffffff809f6f2d at kdb_backtrace+0x5d #1 0xffffffff809adff6 at vpanic+0x136 #2 0xffffffff809adeb3 at panic+0x43 #3 0xffffffff80dccb29 at trap_pfault+0x3c9 #4 0xffffffff80da3a08 at calltrap+0x8 #5 0xffffffff807d5caf at randomdev_write+0x16f #6 0xffffffff808d4dba at devfs_write_f+0xda #7 0xffffffff80a18e76 at dofilewrite+0x66 #8 0xffffffff80a18997 at sys_write+0x127 #9 0xffffffff80dcd458 at amd64_syscall+0x118 --=20 You are receiving this mail because: You are the assignee for the bug.=