X-Loop: help-debbugs@HIDDEN Subject: bug#29895: Parted 3.2 accessing /dev/mmcblk0rpmb considered a bug? Resent-From: Ceriel Jacobs <linux-ide@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-parted@HIDDEN Resent-Date: Fri, 29 Dec 2017 17:08:02 +0000 Resent-Message-ID: <handler.29895.B.15145672812973 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 29895 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 29895 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-parted@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.15145672812973 (code B ref -1); Fri, 29 Dec 2017 17:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Dec 2017 17:08:01 +0000 Received: from localhost ([127.0.0.1]:56873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1eUy8W-0000ls-IS for submit <at> debbugs.gnu.org; Fri, 29 Dec 2017 12:08:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <linux-ide@HIDDEN>) id 1eUvDo-0004Eu-0p for submit <at> debbugs.gnu.org; Fri, 29 Dec 2017 09:01:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <linux-ide@HIDDEN>) id 1eUvDf-0003Lq-Nw for submit <at> debbugs.gnu.org; Fri, 29 Dec 2017 09:01:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_20, TVD_SUBJ_NUM_OBFU_MINFP autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43706) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <linux-ide@HIDDEN>) id 1eUvDf-0003Le-Ka for submit <at> debbugs.gnu.org; Fri, 29 Dec 2017 09:01:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <linux-ide@HIDDEN>) id 1eUvDZ-0002gh-Rc for bug-parted@HIDDEN; Fri, 29 Dec 2017 09:01:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <linux-ide@HIDDEN>) id 1eUvDW-0003GG-RQ for bug-parted@HIDDEN; Fri, 29 Dec 2017 09:01:01 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:53513) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <linux-ide@HIDDEN>) id 1eUvDW-0003Ec-LF for bug-parted@HIDDEN; Fri, 29 Dec 2017 09:00:58 -0500 X-Originating-IP: 81.28.80.241 Received: from mac02.local (d.probackup.nl [81.28.80.241]) (Authenticated sender: linux-ide@HIDDEN) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 76797C5A5D for <bug-parted@HIDDEN>; Fri, 29 Dec 2017 15:00:55 +0100 (CET) From: Ceriel Jacobs <linux-ide@HIDDEN> Message-ID: <8f27a184-3dd5-e1db-c4d0-91dca115889f@HIDDEN> Date: Fri, 29 Dec 2017 15:00:54 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: nl Content-Transfer-Encoding: 7bit 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: -3.1 (---) X-Mailman-Approved-At: Fri, 29 Dec 2017 12:07:58 -0500 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: -4.1 (----) eMMC spec 4.5 has a tiny (2MiB or 4MiB) Replay Protected Memory Block. As well as UFS and NVMe have support for RPMB. That RPMB area is protected from readwrite access. --- The kernel has been patched to not access this rpmb area: $ dmesg | grep rpmb [ 6.712468] mmcblk0rpmb: mmc0:0001 SEM04G partition 3 2.00 MiB --- Parted (GNU parted) 3.2 still tries to access the RPMB: Error: /dev/mmcblk0rpmb: unrecognised disk label Warning: Error fsyncing/closing /dev/mmcblk0rpmb: Input/output error Retry/Ignore? Resulting in dmesg logged errors like: [46684.715228] print_req_error: I/O error, dev mmcblk0rpmb, sector 0 --- Should (GNU) parted be patched too, or not? Cheers, Ceriel
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ceriel Jacobs <linux-ide@HIDDEN> Subject: bug#29895: Acknowledgement (Parted 3.2 accessing /dev/mmcblk0rpmb considered a bug?) Message-ID: <handler.29895.B.15145672812973.ack <at> debbugs.gnu.org> References: <8f27a184-3dd5-e1db-c4d0-91dca115889f@HIDDEN> X-Gnu-PR-Message: ack 29895 X-Gnu-PR-Package: parted Reply-To: 29895 <at> debbugs.gnu.org Date: Fri, 29 Dec 2017 17:08:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-parted@HIDDEN If you wish to submit further information on this problem, please send it to 29895 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 29895: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D29895 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#29895: Parted 3.2 accessing /dev/mmcblk0rpmb considered a bug? Resent-From: "Brian C. Lane" <bcl@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-parted@HIDDEN Resent-Date: Tue, 02 Jan 2018 17:26:01 +0000 Resent-Message-ID: <handler.29895.B.151491394910035 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 29895 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 29895 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-parted@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.151491394910035 (code B ref -1); Tue, 02 Jan 2018 17:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jan 2018 17:25:49 +0000 Received: from localhost ([127.0.0.1]:33380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1eWQJx-0002bn-91 for submit <at> debbugs.gnu.org; Tue, 02 Jan 2018 12:25:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bcl@HIDDEN>) id 1eWQJv-0002ba-5x for submit <at> debbugs.gnu.org; Tue, 02 Jan 2018 12:25:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1eWQJp-0001xo-0p for submit <at> debbugs.gnu.org; Tue, 02 Jan 2018 12:25:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50960) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1eWQJo-0001xg-UL for submit <at> debbugs.gnu.org; Tue, 02 Jan 2018 12:25:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1eWQJn-0007qf-Tc for bug-parted@HIDDEN; Tue, 02 Jan 2018 12:25:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1eWQJk-0001sj-MS for bug-parted@HIDDEN; Tue, 02 Jan 2018 12:25:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41078) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1eWQJk-0001r3-Fb for bug-parted@HIDDEN; Tue, 02 Jan 2018 12:25:36 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AEFE291FCE for <bug-parted@HIDDEN>; Tue, 2 Jan 2018 17:25:34 +0000 (UTC) Received: from lister.brianlane.com (ovpn-112-17.phx2.redhat.com [10.3.112.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4A18660C95 for <bug-parted@HIDDEN>; Tue, 2 Jan 2018 17:25:34 +0000 (UTC) Date: Tue, 2 Jan 2018 09:25:31 -0800 From: "Brian C. Lane" <bcl@HIDDEN> Message-ID: <20180102172531.GB32512@HIDDEN> References: <8f27a184-3dd5-e1db-c4d0-91dca115889f@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8f27a184-3dd5-e1db-c4d0-91dca115889f@HIDDEN> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 02 Jan 2018 17:25:34 +0000 (UTC) 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-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: -4.1 (----) On Fri, Dec 29, 2017 at 03:00:54PM +0100, Ceriel Jacobs wrote: > eMMC spec 4.5 has a tiny (2MiB or 4MiB) Replay Protected Memory Block. > As well as UFS and NVMe have support for RPMB. > > That RPMB area is protected from readwrite access. > > --- > The kernel has been patched to not access this rpmb area: > > $ dmesg | grep rpmb > [ 6.712468] mmcblk0rpmb: mmc0:0001 SEM04G partition 3 2.00 MiB > --- > Parted (GNU parted) 3.2 still tries to access the RPMB: > > Error: /dev/mmcblk0rpmb: unrecognised disk label > Warning: Error fsyncing/closing /dev/mmcblk0rpmb: Input/output error > Retry/Ignore? > > Resulting in dmesg logged errors like: > > [46684.715228] print_req_error: I/O error, dev mmcblk0rpmb, sector 0 > --- > > Should (GNU) parted be patched too, or not? What was the parted cmdline you were running? And what are the permissions of the device node? -- Brian C. Lane (PST8PDT)
X-Loop: help-debbugs@HIDDEN Subject: bug#29895: Parted 3.2 accessing /dev/mmcblk0rpmb considered a bug? Resent-From: Phil Susi <psusi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-parted@HIDDEN Resent-Date: Wed, 14 Feb 2018 19:15:01 +0000 Resent-Message-ID: <handler.29895.B29895.151863569319568 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 29895 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: Ceriel Jacobs <linux-ide@HIDDEN>, 29895 <at> debbugs.gnu.org Received: via spool by 29895-submit <at> debbugs.gnu.org id=B29895.151863569319568 (code B ref 29895); Wed, 14 Feb 2018 19:15:01 +0000 Received: (at 29895) by debbugs.gnu.org; 14 Feb 2018 19:14:53 +0000 Received: from localhost ([127.0.0.1]:43162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1em2W5-00055Y-Ba for submit <at> debbugs.gnu.org; Wed, 14 Feb 2018 14:14:53 -0500 Received: from ec2-34-202-238-73.compute-1.amazonaws.com ([34.202.238.73]:48370 helo=vps.thesusis.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <psusi@HIDDEN>) id 1em2W3-00055K-0s for 29895 <at> debbugs.gnu.org; Wed, 14 Feb 2018 14:14:51 -0500 Received: from localhost (localhost [127.0.0.1]) by vps.thesusis.net (Postfix) with ESMTP id A4796247E7; Wed, 14 Feb 2018 14:14:45 -0500 (EST) Received: from vps.thesusis.net ([127.0.0.1]) by localhost (vps.thesusis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KewiGSz2qSce; Wed, 14 Feb 2018 14:14:45 -0500 (EST) Received: from [10.1.1.181] (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 1C66D26A18; Wed, 14 Feb 2018 14:14:45 -0500 (EST) References: <8f27a184-3dd5-e1db-c4d0-91dca115889f@HIDDEN> From: Phil Susi <psusi@HIDDEN> Message-ID: <ed86b5c5-159c-d424-7984-1321e8b3f2f4@HIDDEN> Date: Wed, 14 Feb 2018 14:14:44 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <8f27a184-3dd5-e1db-c4d0-91dca115889f@HIDDEN> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) 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.4 (/) On 12/29/2017 9:00 AM, Ceriel Jacobs wrote: > eMMC spec 4.5 has a tiny (2MiB or 4MiB) Replay Protected Memory Block. > As well as UFS and NVMe have support for RPMB. This came to my attention a while back elsewhere.. probably the debian bug tracker. The question is how to identify such a device so it can be excluded? Does it have a unique dev no? Or some sysfs attribute that flags it as an RPMB?
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.