GNU bug report logs - #43362
Linux kernel 5.8.8 and newer

Previous Next

Package: parted;

Reported by: Bureau <skyrostyan <at> orange.fr>

Date: Sat, 12 Sep 2020 20:28:01 UTC

Severity: normal

Done: "Brian C. Lane" <bcl <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43362 in the body.
You can then email your comments to 43362 AT debbugs.gnu.org in the normal way.

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#43362; Package parted. (Sat, 12 Sep 2020 20:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bureau <skyrostyan <at> orange.fr>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Sat, 12 Sep 2020 20:28:01 GMT) Full text and rfc822 format available.

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

From: Bureau <skyrostyan <at> orange.fr>
To: bug-parted <at> gnu.org
Subject: Linux kernel 5.8.8 and newer
Date: Sat, 12 Sep 2020 17:35:00 +0200
Hello,

Since kernel 5.8.8, parted gives the following error message each time 
parted attempts to modify something on the disk.

libparted 3.3
Partition(s) 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 
57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 
93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 
109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 
123, 124, 125, 126, 127, 128 on /dev/sda have been written, but we have 
been unable to inform the kernel of the change, probably because it/they 
are in use.  As a result, the old partition(s) will remain in use.  You 
should reboot now before making further changes.

In the example above, my disk contains 4 real partitions.
This bug appears on all the computers I have tried here.
Is this a new kernel feature or a parted bug?

Best regards.

Alain




Information forwarded to bug-parted <at> gnu.org:
bug#43362; Package parted. (Sun, 13 Sep 2020 15:52:02 GMT) Full text and rfc822 format available.

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

From: Bureau <skyrostyan <at> orange.fr>
To: 43362 <at> debbugs.gnu.org
Subject: SOLVED
Date: Sun, 13 Sep 2020 17:51:50 +0200
Hello,

After digging in the kernel, it is a new kernel feature.

In kernel source files :

block/partitions/core.c

have been changed.

To get parted-3.3 working again, in the source code of parted-3.3, 
modify the file:

libparted/arch/linux.c

in the function :

static int _disk_sync_part_table()

line 3203, replace :

if (ok [i - 1] || errnums [i - 1] == ENXIO
by
if (ok [i - 1] || errnums [i - 1] == ENOMEM

Accordingly to the changes made in block/partitions/core.c
That is making parted working again.

Alain






Information forwarded to bug-parted <at> gnu.org:
bug#43362; Package parted. (Mon, 14 Sep 2020 16:27:02 GMT) Full text and rfc822 format available.

Message #11 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#43362: SOLVED
Date: Mon, 14 Sep 2020 09:25:05 -0700
On Sun, Sep 13, 2020 at 05:51:50PM +0200, Bureau wrote:
> 
> Hello,
> 
> After digging in the kernel, it is a new kernel feature.
> 
> In kernel source files :
> 
> block/partitions/core.c
> 
> have been changed.
> 
> To get parted-3.3 working again, in the source code of parted-3.3, 
> modify the file:
> 
> libparted/arch/linux.c
> 
> in the function :
> 
> static int _disk_sync_part_table()
> 
> line 3203, replace :
> 
> if (ok [i - 1] || errnums [i - 1] == ENXIO
> by
> if (ok [i - 1] || errnums [i - 1] == ENOMEM
> 
> Accordingly to the changes made in block/partitions/core.c
> That is making parted working again.

Thanks for tracking that down.

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





Information forwarded to bug-parted <at> gnu.org:
bug#43362; Package parted. (Mon, 14 Sep 2020 16:30:01 GMT) Full text and rfc822 format available.

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

From: Curtis Gedak <gedakc <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: Re: bug#43362: SOLVED
Date: Mon, 14 Sep 2020 10:29:34 -0600
The regression in the kernel was reversed.

See
https://gitlab.gnome.org/GNOME/gparted/-/issues/111

Regards,
Curtis

On 2020-09-14 10:25 a.m., Brian C. Lane wrote:
> On Sun, Sep 13, 2020 at 05:51:50PM +0200, Bureau wrote:
>>
>> Hello,
>>
>> After digging in the kernel, it is a new kernel feature.
>>
>> In kernel source files :
>>
>> block/partitions/core.c
>>
>> have been changed.
>>
>> To get parted-3.3 working again, in the source code of parted-3.3, 
>> modify the file:
>>
>> libparted/arch/linux.c
>>
>> in the function :
>>
>> static int _disk_sync_part_table()
>>
>> line 3203, replace :
>>
>> if (ok [i - 1] || errnums [i - 1] == ENXIO
>> by
>> if (ok [i - 1] || errnums [i - 1] == ENOMEM
>>
>> Accordingly to the changes made in block/partitions/core.c
>> That is making parted working again.
> 
> Thanks for tracking that down.
> 




Reply sent to "Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility. (Mon, 14 Sep 2020 18:00:02 GMT) Full text and rfc822 format available.

Notification sent to Bureau <skyrostyan <at> orange.fr>:
bug acknowledged by developer. (Mon, 14 Sep 2020 18:00:02 GMT) Full text and rfc822 format available.

Message #19 received at 43362-close <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Bureau <skyrostyan <at> orange.fr>
Cc: 43362-close <at> debbugs.gnu.org
Subject: Re: bug#43362: SOLVED
Date: Mon, 14 Sep 2020 10:59:06 -0700
On Sun, Sep 13, 2020 at 05:51:50PM +0200, Bureau wrote:
> 
> Hello,
> 
> After digging in the kernel, it is a new kernel feature.
> 
> In kernel source files :
> 
> block/partitions/core.c
> 
> have been changed.
> 
> To get parted-3.3 working again, in the source code of parted-3.3, 
> modify the file:
> 
> libparted/arch/linux.c
> 
> in the function :
> 
> static int _disk_sync_part_table()
> 
> line 3203, replace :
> 
> if (ok [i - 1] || errnums [i - 1] == ENXIO
> by
> if (ok [i - 1] || errnums [i - 1] == ENOMEM
> 
> Accordingly to the changes made in block/partitions/core.c
> That is making parted working again.

I dug into this and it's a kernel bug that will be fixed in 5.9 rc5 as
well as backported to 5.8.10 so changing it in parted isn't the right
solution.

Thanks,

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Oct 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 196 days ago.

Previous Next


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