GNU bug report logs - #29895
Parted 3.2 accessing /dev/mmcblk0rpmb considered a bug?

Previous Next

Package: parted;

Reported by: Ceriel Jacobs <linux-ide <at> crashplan.pro>

Date: Fri, 29 Dec 2017 17:08:02 UTC

Severity: normal

To reply to this bug, email your comments to 29895 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#29895; Package parted. (Fri, 29 Dec 2017 17:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ceriel Jacobs <linux-ide <at> crashplan.pro>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Fri, 29 Dec 2017 17:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ceriel Jacobs <linux-ide <at> crashplan.pro>
To: bug-parted <at> gnu.org
Subject: Parted 3.2 accessing /dev/mmcblk0rpmb considered a bug?
Date: Fri, 29 Dec 2017 15:00:54 +0100
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




Information forwarded to bug-parted <at> gnu.org:
bug#29895; Package parted. (Tue, 02 Jan 2018 17:26:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: bug-parted <at> gnu.org
Subject: Re: bug#29895: Parted 3.2 accessing /dev/mmcblk0rpmb considered a bug?
Date: Tue, 2 Jan 2018 09:25:31 -0800
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)




Information forwarded to bug-parted <at> gnu.org:
bug#29895; Package parted. (Wed, 14 Feb 2018 19:15:01 GMT) Full text and rfc822 format available.

Message #11 received at 29895 <at> debbugs.gnu.org (full text, mbox):

From: Phil Susi <psusi <at> ubuntu.com>
To: Ceriel Jacobs <linux-ide <at> crashplan.pro>, 29895 <at> debbugs.gnu.org
Subject: Re: bug#29895: Parted 3.2 accessing /dev/mmcblk0rpmb considered a bug?
Date: Wed, 14 Feb 2018 14:14:44 -0500
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?




This bug report was last modified 7 years and 123 days ago.

Previous Next


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