GNU bug report logs - #32119
Parted molests system firmware partitions.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: parted; Reported by: "Laurence Perkins (OE)" <lperkins@HIDDEN>; dated Tue, 10 Jul 2018 18:35:01 UTC; Maintainer for parted is bug-parted@HIDDEN.

Message received at 32119 <at> debbugs.gnu.org:


Received: (at 32119) by debbugs.gnu.org; 22 Aug 2018 13:04:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 22 09:04:01 2018
Received: from localhost ([127.0.0.1]:57321 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fsSnp-00015w-6O
	for submit <at> debbugs.gnu.org; Wed, 22 Aug 2018 09:04:01 -0400
Received: from ec2-34-202-238-73.compute-1.amazonaws.com
 ([34.202.238.73]:59112 helo=vps.thesusis.net)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psusi@HIDDEN>) id 1fsSnm-00015g-Vj
 for 32119 <at> debbugs.gnu.org; Wed, 22 Aug 2018 09:03:59 -0400
Received: from localhost (localhost [127.0.0.1])
 by vps.thesusis.net (Postfix) with ESMTP id B2548213AB;
 Wed, 22 Aug 2018 09:03:53 -0400 (EDT)
Received: from vps.thesusis.net ([IPv6:::1])
 by localhost (ip-172-26-1-203.ec2.internal [IPv6:::1]) (amavisd-new,
 port 10024)
 with ESMTP id VT8SLc6pWSKX; Wed, 22 Aug 2018 09:03:53 -0400 (EDT)
Received: from [10.1.1.212] (unknown [97.68.109.42])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested) (Authenticated sender: psusi)
 by vps.thesusis.net (Postfix) with ESMTPSA id 0A2B72131F;
 Wed, 22 Aug 2018 09:03:52 -0400 (EDT)
Subject: Re: bug#32119: Parted molests system firmware partitions.
To: "Laurence Perkins (OE)" <lperkins@HIDDEN>,
 "bcl@HIDDEN" <bcl@HIDDEN>
References: <1531247249.5345.82.camel@HIDDEN>
 <20180719221845.GD4427@HIDDEN>
 <1532040996.26260.42.camel@HIDDEN>
From: Phillip Susi <psusi@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=psusi@HIDDEN; prefer-encrypt=mutual; keydata=
 xsBNBE7n3q8BCADW6Ejug3TeJn21ri5Pnqo7AraXyOhSWeatq377kbF9fJb+bd4lhhcWqs9B
 BCMcOrMdfDgAU6cP+TSNe5SBBPt89d0YZ8WH020eg3WkxXeph29wZyLj2HdxTMpZVv5p6QL1
 ksRmbnsToiJvXT24ydjLG3BTl+TAEDXuppPq0AlEYqkvD9fYSqad1s064IppHQZhYVgmcEHO
 Ht0vY66QW+UfwSI+GpkaXULlDS9WAphgWXrUoodbtC283pZUcBAio54uENUNT96ChzdlJ/9e
 yDRMjEhyL42AmazPVKgwZdLlrPG0iodDevxvsDbIgu0acGAeSjvt1tWgI+F5TJDeYfxfABEB
 AAHNH1BoaWxsaXAgU3VzaSA8cHN1c2lAdWJ1bnR1LmNvbT7CwHgEEwECACIFAk7n31kCGyMG
 CwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEAFfTdSnD7cFKYEH/1z0AARRSyCiB/FnutwN
 QDxkfZdDpMIJpoXFC65il25uzoWw2ejZRwQ5Jo9B8nyyMryZeRviFXOi+Sdfi9Q2lRN0Lbt3
 z6H2LD7vNzV8Z9fe944uHsEQzU2pso1OOLMvC5FAdL942tugO9o8VNLuS+gf2W8gs28XJOx2
 HdV6wvT3aqsVGGEYJbyZ9qQvvb3xkvs3xC3xIvHLknOUB73tEhoLCtVohD6xiRVcqF8meKw/
 Pd5NK+dbRCS6zLRtdAVR6bVbnwgM1TJWPAHtg8dk4JsiCHtlOBPtiCjZn9ZLbEQ009N669J9
 JYiqqmM3wZTi/LVWRvUtvdTPk0PB8JjdMM7OwE0EWHAlWwEIAOWRvdnClXMtw6fvLCw7br5K
 b1Lyri52k/1nbYbUnVmvbDgRsfAWS0gc3LFYYajTmZbX0MieMWUvd7thzJMRnPurmz3S83r+
 N7gW9Kd3291EQlFj+4/39/apDz4nmefGFFTqmJZLnpY1HtKRLPE++N22oWhgSOHYdbmKkm0r
 91XiPB4YfuOtPhYAUQSjPiSmknZlzXZpgwanhPgRYjVhGzqd2FO2cHoJlgOVFVe31BJCllxO
 WThWNYL+W4E/Y87JFEMpPHv7vt0IfkEHFphXudjLp4WCkKfCILD8CZB4+KTh2laGD5ENi4Vs
 iEFmnlKT4nhYcQFolc990UaAvti7qDkAEQEAAcLAZQQYAQoADwUCWHAlWwIbDAUJAeEzgAAK
 CRABX03Upw+3BcGKB/9q/PdrPCvslCZZS5JFu83nofG8lN0wHa6NzTbPUHQelPXOWLbGRmko
 aLqos5S26GqUGlRvcf0dymVveJH6cNJ/IR8cFafIkABvQDRqJO2nGJRUXYWQ/VBQW1muCMzf
 osbvlLk7GNdTPbjxfWY1Gkz/nXvdXRVz4VukniIA408qOAYbsRly1UHUIkotTihBWqZdyvpI
 fSe9a9qCpybgMoWuo3fSQr+SaaxKEcE0x8j3rWxkxwt7SpzTNiJJyBrm3cAGtvgXYjycaudi
 glq3n7wyqGIsis7wYK9LgOFfNV6gLy+MRerlEfIYYPIMt8j/UTHrOkaohGtE1Ok9moeVa/P2
 wsBlBBgBCgAPAhsMBQJaNsIrBQkDwi5QAAoJEAFfTdSnD7cF7agIAMQ9ARRI2lvLcy41lUYR
 p/MjL0lNDhpZs7ZrMDa7xvA9Xonz28F+HNgq3bKDK0/x+zm5ylvDbf5v2PmBgDEW7b7AqDdg
 dhb2Ri2nm3h5WuGibQTjxQHZ2uMIpRwtfmvWj9W/35HkJsnxwVnyKze7DBT7i4XMuiHYnaVR
 pFHY3pfnEeV9iJd++Kh063VwhS2Ocpy0xR5HzspfNAlwcV2igcucHNG5WCz2oMlu7Vj8OmzC
 7Msgkx9rMVq35iEndk0MakbO+DrfOBfGR281XmQOt1c5NttKl7ZhNeDzfmbv3RAAO8eX7mi4
 6USX+l3TOl2aPeBF/bG3WLqlOasbjFzM3XY=
Message-ID: <9d888c22-7848-2427-3c17-d92d9ccffe33@HIDDEN>
Date: Wed, 22 Aug 2018 09:03:49 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <1532040996.26260.42.camel@HIDDEN>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="1AMc0i0ENca377MKwQb2jaA7rlunaveXt"
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 32119
Cc: "32119 <at> debbugs.gnu.org" <32119 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--1AMc0i0ENca377MKwQb2jaA7rlunaveXt
Content-Type: multipart/mixed; boundary="zCsTtp0xm13xtcHXFhckkEZfJu4DrSJH9";
 protected-headers="v1"
From: Phillip Susi <psusi@HIDDEN>
To: "Laurence Perkins (OE)" <lperkins@HIDDEN>,
 "bcl@HIDDEN" <bcl@HIDDEN>
Cc: "32119 <at> debbugs.gnu.org" <32119 <at> debbugs.gnu.org>
Message-ID: <9d888c22-7848-2427-3c17-d92d9ccffe33@HIDDEN>
Subject: Re: bug#32119: Parted molests system firmware partitions.
References: <1531247249.5345.82.camel@HIDDEN>
 <20180719221845.GD4427@HIDDEN>
 <1532040996.26260.42.camel@HIDDEN>
In-Reply-To: <1532040996.26260.42.camel@HIDDEN>

--zCsTtp0xm13xtcHXFhckkEZfJu4DrSJH9
Content-Type: text/plain; charset=UTF-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 7/19/2018 6:56 PM, Laurence Perkins (OE) wrote:
> I'm running parted 3.2, which appears to be the latest available
> release on the gnu.org ftp site, as well as in my distribution
> (Gentoo).  However it's also older than that commit, so it probably
> does not have it. =20

Yea, we really need to release 3.3 already.  Brian, do you know of
anything that still needs merged or fixed before we do that?



--zCsTtp0xm13xtcHXFhckkEZfJu4DrSJH9--

--1AMc0i0ENca377MKwQb2jaA7rlunaveXt
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJbfV84AAoJENsuw7lhAP6E4GYIAKClo0b19QyBsY2nwA4qoC2U
YyOPcP/44TDcfQXpk6YQUOQmTeT7KGo5VBdz42LMXEr1BrfaCZ/ZD+dTjX7ygXrS
mfSIEOb1iD2LHgEBfMSAPjMSaMYdm6cA+z72s/5sRfwq/AWvbcyXEnrq4W6j+qZU
gEvuq87eyAz1bKq33GBUYqR3z1319NpG5Qd+lCjmE617mUkj8N/3Pw+CRxnUzlxL
S4qIfcw0hsVCKAvkt4qwXqoc0y8CSmudpWLxJn7N30Bg/aNFSjmWUP4ibhonl12K
dT6P1uYsvyab6b3kBqcMSniRrG0DUNuscEZk3iSd9yJ6+c0iPBCY8Gsld3xtosg=
=AKl9
-----END PGP SIGNATURE-----

--1AMc0i0ENca377MKwQb2jaA7rlunaveXt--




Information forwarded to bug-parted@HIDDEN:
bug#32119; Package parted. Full text available.

Message received at 32119 <at> debbugs.gnu.org:


Received: (at 32119) by debbugs.gnu.org; 20 Jul 2018 00:56:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 19 20:56:52 2018
Received: from localhost ([127.0.0.1]:48647 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fgJj2-000766-GP
	for submit <at> debbugs.gnu.org; Thu, 19 Jul 2018 20:56:52 -0400
Received: from barracuda.pco-inc.com ([71.4.36.131]:33685)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lperkins@HIDDEN>) id 1fgJj1-00075r-DI
 for 32119 <at> debbugs.gnu.org; Thu, 19 Jul 2018 20:56:51 -0400
X-ASG-Debug-ID: 1532048204-103c12bd511f0010001-kzYiBJ
Received: from Loki.pcopen.net (loki.pcopen.net [10.0.0.65]) by
 barracuda.pco-inc.com with ESMTP id LRCBgt9xyLEeQ0zS (version=TLSv1.2
 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO);
 Thu, 19 Jul 2018 17:56:44 -0700 (PDT)
X-Barracuda-Envelope-From: lperkins@HIDDEN
Received: from LOKI.pcopen.net ([fe80::39f5:aaff:14af:6002]) by
 Loki.pcopen.net ([fe80::39f5:aaff:14af:6002%10]) with mapi id 14.03.0399.000; 
 Thu, 19 Jul 2018 17:56:44 -0700
From: "Laurence Perkins (OE)" <lperkins@HIDDEN>
To: "bcl@HIDDEN" <bcl@HIDDEN>
Subject: Re: bug#32119: Parted molests system firmware partitions.
Thread-Topic: bug#32119: Parted molests system firmware partitions.
X-ASG-Orig-Subj: Re: bug#32119: Parted molests system firmware partitions.
Thread-Index: AQHUGHupN/OLmVlauk6KE1c+wwV0iaSXoscAgAAqowA=
Date: Fri, 20 Jul 2018 00:56:43 +0000
Message-ID: <1532048200.26260.54.camel@HIDDEN>
References: <1531247249.5345.82.camel@HIDDEN>
 <20180719221845.GD4427@HIDDEN>
In-Reply-To: <20180719221845.GD4427@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.0.20.200]
Content-Type: text/plain; charset="utf-7"
Content-ID: <0D736081A9ADD447B0B5A5BD654FEB51@HIDDEN>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Barracuda-Connect: loki.pcopen.net[10.0.0.65]
X-Barracuda-Start-Time: 1532048204
X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA384
X-Barracuda-URL: https://10.0.0.6:443/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at pco-inc.com
X-Barracuda-Scan-Msg-Size: 1815
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.54019
 Rule breakdown below
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 32119
Cc: "32119 <at> debbugs.gnu.org" <32119 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)



On Thu, 2018-07-19 at 15:24 -0700, Brian C. Lane wrote:
+AD4- On Tue, Jul 10, 2018 at 06:27:30PM +-0000, Laurence Perkins (OE)
+AD4- wrote:
+AD4- +AD4- Calling parted -l however attempts to open these devices read-
+AD4- +AD4- write.=20
+AD4- +AD4- Which fails and generates a dmesg entry that, prior to the 4.14
+AD4- +AD4- kernel,
+AD4- +AD4- was difficult to distinguish from the messages generated by a
+AD4- +AD4- failing
+AD4- +AD4- eMMC device.
+AD4-=20
+AD4- Which version of parted are you using and does it include this patch:
+AD4-=20
+AD4- https://github.com/bcl/parted/commit/44d5ae0115c4ecfe3158748309e9912c
+AD4- 5aede92d
+AD4-=20
+AD4- That should prevent partprobe and parted -l from opening it R/W when
+AD4- it
+AD4- doesn't need to.
+AD4-=20

The latest version available for Gentoo (or Debian as far as I can see)
does not contain that commit.

I pulled the repo you linked and tested it.  It also still generates
the error messages in the kernel log.  I had assumed that the problem
was opening the device read/write due to the wording of the dmesg error
from kernel 4.14.  This may have been a premature assumption on my
part.  (Or maybe not, see below.)

Running parted -l or partprobe with the version from the above repo
results in:

Warning: Error fsyncing/closing /dev/mmcblk1rpmb: Input/output error

Interestingly the 3.2 release version prints the user error twice and
the dmesg error three times while the version from the above repo only
prints the user error once and the dmesg error twice.  So it's also
possible that this commit had some effect but the program goes on to
open the device read/write a couple of times anyway.

If you need access to a device with an rpmb for testing anything, let
me know.  I can probably arrange it.

LMP





Information forwarded to bug-parted@HIDDEN:
bug#32119; Package parted. Full text available.

Message received at 32119 <at> debbugs.gnu.org:


Received: (at 32119) by debbugs.gnu.org; 19 Jul 2018 22:56:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 19 18:56:47 2018
Received: from localhost ([127.0.0.1]:48626 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fgHqp-0003w3-8f
	for submit <at> debbugs.gnu.org; Thu, 19 Jul 2018 18:56:47 -0400
Received: from barracuda.pco-inc.com ([71.4.36.131]:59868)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lperkins@HIDDEN>) id 1fgHqm-0003vq-RF
 for 32119 <at> debbugs.gnu.org; Thu, 19 Jul 2018 18:56:45 -0400
X-ASG-Debug-ID: 1532040997-103c12bd511ef5a0001-kzYiBJ
Received: from Loki.pcopen.net (loki.pcopen.net [10.0.0.65]) by
 barracuda.pco-inc.com with ESMTP id 3euQEiNHcoxntgaQ (version=TLSv1.2
 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO);
 Thu, 19 Jul 2018 15:56:37 -0700 (PDT)
X-Barracuda-Envelope-From: lperkins@HIDDEN
Received: from LOKI.pcopen.net ([fe80::39f5:aaff:14af:6002]) by
 Loki.pcopen.net ([fe80::39f5:aaff:14af:6002%10]) with mapi id 14.03.0399.000; 
 Thu, 19 Jul 2018 15:56:37 -0700
From: "Laurence Perkins (OE)" <lperkins@HIDDEN>
To: "bcl@HIDDEN" <bcl@HIDDEN>
Subject: Re: bug#32119: Parted molests system firmware partitions.
Thread-Topic: bug#32119: Parted molests system firmware partitions.
X-ASG-Orig-Subj: Re: bug#32119: Parted molests system firmware partitions.
Thread-Index: AQHUGHupN/OLmVlauk6KE1c+wwV0iaSXoscAgAAJFwA=
Date: Thu, 19 Jul 2018 22:56:37 +0000
Message-ID: <1532040996.26260.42.camel@HIDDEN>
References: <1531247249.5345.82.camel@HIDDEN>
 <20180719221845.GD4427@HIDDEN>
In-Reply-To: <20180719221845.GD4427@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.0.20.200]
Content-Type: text/plain; charset="utf-7"
Content-ID: <D08673AD7DA2D843B9F7E33EF055880B@HIDDEN>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Barracuda-Connect: loki.pcopen.net[10.0.0.65]
X-Barracuda-Start-Time: 1532040997
X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA384
X-Barracuda-URL: https://10.0.0.6:443/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at pco-inc.com
X-Barracuda-Scan-Msg-Size: 1369
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.54013
 Rule breakdown below
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 32119
Cc: "32119 <at> debbugs.gnu.org" <32119 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)



On Thu, 2018-07-19 at 15:24 -0700, Brian C. Lane wrote:
+AD4- On Tue, Jul 10, 2018 at 06:27:30PM +-0000, Laurence Perkins (OE)
+AD4- wrote:
+AD4- +AD4- Calling parted -l however attempts to open these devices read-
+AD4- +AD4- write.=20
+AD4- +AD4- Which fails and generates a dmesg entry that, prior to the 4.14
+AD4- +AD4- kernel,
+AD4- +AD4- was difficult to distinguish from the messages generated by a
+AD4- +AD4- failing
+AD4- +AD4- eMMC device.
+AD4-=20
+AD4- Which version of parted are you using and does it include this patch:
+AD4-=20
+AD4- https://github.com/bcl/parted/commit/44d5ae0115c4ecfe3158748309e9912c
+AD4- 5aede92d
+AD4-=20
+AD4- That should prevent partprobe and parted -l from opening it R/W when
+AD4- it
+AD4- doesn't need to.
+AD4-=20

I'm running parted 3.2, which appears to be the latest available
release on the gnu.org ftp site, as well as in my distribution
(Gentoo).  However it's also older than that commit, so it probably
does not have it. =20

Is there some super-secret release that's less than four years old that
I'm just not managing to find? Or have distros just been applying
patches themselves and continuing to call it 3.2?  There are some
unstable packages I could try if that's the case just to see if they've
pulled that commit in.

If not I'll try building it my self when I get a chance.

LMP=




Information forwarded to bug-parted@HIDDEN:
bug#32119; Package parted. Full text available.

Message received at 32119 <at> debbugs.gnu.org:


Received: (at 32119) by debbugs.gnu.org; 19 Jul 2018 22:24:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 19 18:24:23 2018
Received: from localhost ([127.0.0.1]:48602 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fgHLT-0003Ai-E7
	for submit <at> debbugs.gnu.org; Thu, 19 Jul 2018 18:24:23 -0400
Received: from mx1.redhat.com ([209.132.183.28]:60070)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bcl@HIDDEN>) id 1fgHLS-0003AW-C8
 for 32119 <at> debbugs.gnu.org; Thu, 19 Jul 2018 18:24:22 -0400
Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com
 [10.5.11.14])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.redhat.com (Postfix) with ESMTPS id 72950C04AC5B;
 Thu, 19 Jul 2018 22:24:16 +0000 (UTC)
Received: from lister.brianlane.com (ovpn-112-35.phx2.redhat.com [10.3.112.35])
 by smtp.corp.redhat.com (Postfix) with ESMTPS id 6BED25D9C9;
 Thu, 19 Jul 2018 22:24:13 +0000 (UTC)
Date: Thu, 19 Jul 2018 15:24:04 -0700
From: "Brian C. Lane" <bcl@HIDDEN>
To: "Laurence Perkins (OE)" <lperkins@HIDDEN>
Subject: Re: bug#32119: Parted molests system firmware partitions.
Message-ID: <20180719221845.GD4427@HIDDEN>
References: <1531247249.5345.82.camel@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1531247249.5345.82.camel@HIDDEN>
User-Agent: Mutt/1.10.0 (2018-05-17)
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (mx1.redhat.com [10.5.110.31]); Thu, 19 Jul 2018 22:24:16 +0000 (UTC)
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32119
Cc: 32119 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

On Tue, Jul 10, 2018 at 06:27:30PM +0000, Laurence Perkins (OE) wrote:
> Calling parted -l however attempts to open these devices read-write. 
> Which fails and generates a dmesg entry that, prior to the 4.14 kernel,
> was difficult to distinguish from the messages generated by a failing
> eMMC device.

Which version of parted are you using and does it include this patch:

https://github.com/bcl/parted/commit/44d5ae0115c4ecfe3158748309e9912c5aede92d

That should prevent partprobe and parted -l from opening it R/W when it
doesn't need to.

-- 
Brian C. Lane (PST8PDT)




Information forwarded to bug-parted@HIDDEN:
bug#32119; Package parted. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jul 2018 18:34:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 10 14:34:34 2018
Received: from localhost ([127.0.0.1]:54346 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fcxT8-0008Ds-8O
	for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 14:34:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39084)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lperkins@HIDDEN>) id 1fcxMX-00083F-EF
 for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 14:27:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lperkins@HIDDEN>) id 1fcxMR-0002MA-64
 for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 14:27:40 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:53861)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <lperkins@HIDDEN>)
 id 1fcxMR-0002M5-2c
 for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 14:27:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58283)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lperkins@HIDDEN>) id 1fcxMP-00025f-RL
 for bug-parted@HIDDEN; Tue, 10 Jul 2018 14:27:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lperkins@HIDDEN>) id 1fcxMM-0002LC-Mb
 for bug-parted@HIDDEN; Tue, 10 Jul 2018 14:27:37 -0400
Received: from barracuda.pco-inc.com ([71.4.36.131]:53887)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <lperkins@HIDDEN>)
 id 1fcxMM-0002Kp-FF
 for bug-parted@HIDDEN; Tue, 10 Jul 2018 14:27:34 -0400
X-ASG-Debug-ID: 1531247250-103c12bd52198c70001-p2I9Xb
Received: from Loki.pcopen.net (loki.pcopen.net [10.0.0.65]) by
 barracuda.pco-inc.com with ESMTP id skZSVV2nQkTwSyw4 (version=TLSv1.2
 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO) for <bug-parted@HIDDEN>;
 Tue, 10 Jul 2018 11:27:31 -0700 (PDT)
X-Barracuda-Envelope-From: lperkins@HIDDEN
Received: from LOKI.pcopen.net ([fe80::39f5:aaff:14af:6002]) by
 Loki.pcopen.net ([fe80::39f5:aaff:14af:6002%10]) with mapi id 14.03.0399.000; 
 Tue, 10 Jul 2018 11:27:30 -0700
From: "Laurence Perkins (OE)" <lperkins@HIDDEN>
To: "bug-parted@HIDDEN" <bug-parted@HIDDEN>
Subject: Parted molests system firmware partitions.
Thread-Topic: Parted molests system firmware partitions.
X-ASG-Orig-Subj: Parted molests system firmware partitions.
Thread-Index: AQHUGHupN/OLmVlauk6KE1c+wwV0iQ==
Date: Tue, 10 Jul 2018 18:27:30 +0000
Message-ID: <1531247249.5345.82.camel@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.0.20.200]
Content-Type: text/plain; charset="utf-7"
Content-ID: <A3B91E48D4081D48A862D5006FDF2378@HIDDEN>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Barracuda-Connect: loki.pcopen.net[10.0.0.65]
X-Barracuda-Start-Time: 1531247251
X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA384
X-Barracuda-URL: https://10.0.0.6:443/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at pco-inc.com
X-Barracuda-Scan-Msg-Size: 1482
X-Barracuda-BRTS-Status: 1
X-Barracuda-BRTS-Evidence: dev-nell.com
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.53364
 Rule breakdown below
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 10 Jul 2018 14:34:33 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.1 (-----)

A few of the cheaper devices I work with have the system firmware, the
RPMB, and the primary block device all backed by the same onboard eMMC
flash chip.  The special ones show up as /dev/mmcblk1boot0 and
/dev/mmcblk1rpmb respectively.

The kernel drivers for the eMMC device automatically detect this
situation and write-protect these special devices unless you
specifically enable writes via a switch in /proc.


Calling parted -l however attempts to open these devices read-write.=20
Which fails and generates a dmesg entry that, prior to the 4.14 kernel,
was difficult to distinguish from the messages generated by a failing
eMMC device.

To keep the logs clean and for safety in the case of someone enabling
writes to these devices for various reasons, parted should probably do
what it can to leave them alone unless specifically instructed to do
otherwise.  Poking these devices in the wrong way can potentially brick
the motherboard, so an extra layer of defense around them would seem
prudent.

For my own purposes I will simply remove these device nodes from my
system as I have no need of them, so I do not personally consider this
to be a critical issue.  Those who actually make use of these special
devices may disagree though.

https://dev-nell.com/rpmb-emmc-errors-under-linux.html documents a
different issue, but has some code references that may be useful for
determining how best to construct a filter for these special devices.

LMP=




Acknowledgement sent to "Laurence Perkins (OE)" <lperkins@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#32119; Package parted. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.