Package: parted;
Reported by: <Johnson.Yan <at> microchip.com>
Date: Tue, 26 Oct 2021 10:02:01 UTC
Severity: normal
Done: "Brian C. Lane" <bcl <at> redhat.com>
Bug is archived. No further changes may be made.
View this message in rfc822 format
From: help-debbugs <at> gnu.org (GNU bug Tracking System) To: "Brian C. Lane" <bcl <at> redhat.com> Cc: tracker <at> debbugs.gnu.org Subject: bug#51407: closed (parted didn’t check the returned sense data) Date: Thu, 28 Oct 2021 16:26:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 28 Oct 2021 09:25:16 -0700 with message-id <YXrO7Nlm6GmXadlM <at> ohop.brianlane.com> and subject line Re: bug#51407: parted didn’t check the returned sense data has caused the debbugs.gnu.org bug report #51407, regarding parted didn’t check the returned sense data to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs <at> gnu.org.) -- 51407: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51407 GNU Bug Tracking System Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: <Johnson.Yan <at> microchip.com> To: <bug-parted <at> gnu.org> Subject: parted didn’t check the returned sense data Date: Tue, 26 Oct 2021 09:55:02 +0000[Message part 3 (text/plain, inline)]Hi, When we did secure erase for large capacity drive (18TB), the drive capacity will changed to 0. This issue can be reproduced each time, please refer to attached files for details. From the system log we found parted send Read(16) to sde at Oct 13 01:30:02, due to security erase in progress “Not Ready” is returned from this drive which is expected. Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 Oct 13 01:30:02 localhost kernel: blk_update_request: I/O error, dev sde, sector 0 Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read Oct 13 01:30:02 localhost kernel: Buffer I/O error on dev sde, logical block 0, async page read // host tried to recover this drive by spinning up but no responding, which due to the same reason, i.e. security erase in progress. Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Spinning up disk... Oct 13 01:31:43 localhost kernel: ....................................................................................................not responding... // host send Read Capacity(16) and Read Capacity(10) but still failed (security erase in progress), finally host changed the capacity to zero. Oct 13 01:31:43 localhost kernel: sd 13:0:3:0: [sde] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:31:43 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:31:43 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:31:43 localhost kernel: sd 13:0:3:0: [sde] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Oct 13 01:31:43 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor] Oct 13 01:31:43 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress Oct 13 01:31:43 localhost kernel: sde: detected capacity change from 18000207937536 to 0 I suppose parted should check the returned sense data and not change drive capacity to 0, could you please help to check this issue? Many thanks. Regards, Johnson[Message part 4 (text/html, inline)][sde_test.log (application/octet-stream, attachment)][messages.log (application/octet-stream, attachment)]
[Message part 7 (message/rfc822, inline)]
From: "Brian C. Lane" <bcl <at> redhat.com> To: 51407-close <at> debbugs.gnu.org Subject: Re: bug#51407: parted didn’t check the returned sense data Date: Thu, 28 Oct 2021 09:25:16 -0700On Thu, Oct 28, 2021 at 02:32:43AM +0000, Johnson.Yan <at> microchip.com wrote: > Hi Brian, > Thanks for the reply. > Seems Kernel called parted to send Read(16) command to the drive, it is more likely kernel didn't check the returned sense data and change the drive capacity to 0. > I suppose this bug#51407 can be closed. Thanks again. The kernel doesn't call parted. So this is bound to be something else. Thanks, Brian -- Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.