From nobody Sat May 24 15:46:55 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 4b4RGm2CxWz5wZRk for ; Sat, 24 May 2025 15:46:56 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b4RGm0nt1z3STl for ; Sat, 24 May 2025 15:46:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748101616; 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=mUC0q7UHbuRvNvJ1knqYfPrDRv+ftx4Y/qd4TlmlZn4=; b=ZlLhBqB4TDY6/P9W9tWKdedy8R7hBRzOMU+ez+LMPLjIQfPg9Wie73a6aP99rKV4d4hT7y nrBq6Y8fyqRDRGKxfofz9DtpRj9bsTssp/o+OLlY1nGtmgGzWxvpDeoDB5ZlcmLK/MqtpH PEvYWTQ5fBfLmJi5v/F2nBu8pXYWc6dA33LZy5KTIjZsycd0TFquzRg3X9W+sdAZ5SSRoy 8quIjoQU9Qr6ghh8IwJZoGNA2Xa5h/eCKZSaM8K/uLXzjqtHr/ejkM2tHCfcJBvuV8m6N9 Gy4vv+pXE3Qhvz4EawnNYUJPmdkYBfrvvvknEtJjBBjSWLhooNorTyozxqiLFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748101616; 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=mUC0q7UHbuRvNvJ1knqYfPrDRv+ftx4Y/qd4TlmlZn4=; b=X0JX6HZfnWEMuaizlIX631kqRiSO0GEOxUQFc9GUUeNdPQCJCHPEJHqp8Fxg2qVUDKi2NW D+wpkSpJzbYgQvbd8chTmmW62mPJoimtk9xvsBzxz4FYklK9yes/FO/+HFIXM1qKaYbD1X 2PVHp3jIWjx1Of2BQjXOBI6BOZunksJ5COqzgbnJMh6xNjE4lLw1XpuZvnGIMtieVTrwEB WSa5jPYckimihhb1uX0TGGjHP4nI5BWWBtN5ovx6am/VZF7A6WIrDZTcJYZNubJDDQGD+p 7JcY/4ubWkUmmPJQKQbyWvAL+LReye/m8DKxP5kfyynZ3EQatqlRWvzoip7VYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748101616; a=rsa-sha256; cv=none; b=noB/IbQgAW7NAb9qH5qLkwVP594qSm23ROuA2qquVvnS9GhWbzH5k3aAPvLagHgtltycSH 2Kg6OqSe3amTzRchXd68wh4g+Ionoog1xWyMt423QTM2oqXkV13UIDJC1ZW4B8y3n1/KOc 6L0aIbzp+XQJz+ErUMH3rVTRDy5VV0so0MGM5QXUorSGhqMO7nZk/BvThG7RnUrsAbcMJB 0uzHExp2yA+p63KlJddwvxT/kFQISy8nic19rfp1sO5Pu0uf4+9inSN/MsXIEPjOBIg5x2 Xch3j1TMVuzbRufdvBLbWppSMemo5nZ/OTJWv2dlPip3NepKv45kl6GdhKymJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4b4RGm06nqzjRm for ; Sat, 24 May 2025 15:46:56 +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 54OFktJa017792 for ; Sat, 24 May 2025 15:46:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54OFktQq017791 for bugs@FreeBSD.org; Sat, 24 May 2025 15:46:55 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 287049] geom: foot shooting not allowed on slice Date: Sat, 24 May 2025 15:46:55 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at 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=3D287049 Bug ID: 287049 Summary: geom: foot shooting not allowed on slice Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: d8zNeCFG@aon.at Scenario: - FreeBSD stable/14 ca. Feb. 1 - Disk setup: MBR with one slice containing a boot ZFS partition, the main = ZFS partition, and a swap area: [0]# gpart show =3D> 63 1953525105 ada0 MBR (932G) 63 1 - free - (512B) 64 1953525104 4 freebsd [active] (932G) =3D> 0 1953525104 ada0s4 BSD (932G) 0 4194304 1 freebsd-zfs (2.0G) 4194304 4325376 2 freebsd-swap (2.1G) 8519680 1945005424 4 freebsd-zfs (927G) [0]#=20 - Want to update the boot loader in ada0s4 to the latest /boot/zfsboot as described in zfsboot(8). This is on the running system. - The first block of ada0s4 does not need to be changed, so only the follow= ing commands are executed: - sysctl kern.geom.debugflags=3D0x10 - dd if=3D/boot/zfsboot of=3D/dev/ada0s4 iseek=3D1 oseek=3D1024 Result: - The dd fails with "permission denied" Expected result: - Since kern.geom.debugflags is set to 0x10, "foot shooting" should be allo= wed, and the command should succeed. Scenario (continued): - ada0s4 starts at block 64, so try writing via ada0 directly. - Execute the following: - dd if=3D/boot/zfsboot of=3D/dev/ada0 iseek=3D1 oseek=3D1088 Result: - This succeeds. Expected result: - Surprised that this works, when the correct way of doing this via the sli= ce does not. -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=