X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CADAA383F851
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1592590772;
	bh=qlypUzxOUjfZbIrfDZC/4XIpsAi00JuJCCojvmZC1Jg=;
	h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=g48HYRDv6QS9q2vMji/VABrnLXV6UEIGsCbGPX/Rzcu2upzpYQj7v+WgewsBgE8WI
	 dgdZxN5RLtKNKEtLpgoPqTVVEDdmY8Z5c4fdwCt31L29hxkFmUxLckGzm64xhIelAx
	 NF72KIyGYQnpKNYu2NaN441XjqHqvaDXFKthy9Uk=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BA2D1385DC0A
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Mm2ZChX7BlCl2C8y+1m/VUT97qxo3HIqgSt1sAnEwttKLzbK8oKIoTbGh0MXuK5RtOkJ+2ef6mVPiQAd9Zwcev6BSExLYJU50RpTiEBwNkVhGgdEncWLJCcFD6SNaDUVTRfPqkkvhxnLYP5GMclhW4Dvnkyt/gvKeCZht9c7/jHkiitob/mG8lcrFWFU8CyLX9eVSNFpvxByCTbAAHBieEVJDizsoNhfd9S2+twKMDmMb7/YMzAu7oIXJ6kwc7kbdMWTdaZ3RPiKCuRZsHr4nigt21SiNa5C94P0FRULseqEcnAx1FUOuht0roiLRoT/KG8javGte66pOT0OR/9iUA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=RvvbCIL9vc/1lj+GH3DdWRo/NdzTEVSNf77/Ito+G7s=;
 b=lVzUb4jDMM98wvZ0AsieMSshpm/urG/w/o5WyEq5Ar2JMVFB9ZlksbWkcFosF2k6IruF3E0J6l11RFtJEjg8Tlws1lzGdTglo3VQipckXF8YlhKc33k/K5XFPXhOv9j+MoIRAoiQzqC6Iz5NgAWc5AxfUg4iI1yJR6MkY/EjTWg+6JItqovBr/5p/JqxRBZKWmO9seJiVes/H4qk+bZrkxfO+MMSg4Oz8uYroACVfcURKbMO5C0Fzfaq3o7RNU4XemrRsbrvFM03XyIS1O3ZyYRXlVrqX3E0gwDUuW5+2ALH5ltamM7JsxVQuJsUZWf9mzMv0I1dF75n+PsMmKeRYA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
To: cygwin <cygwin@cygwin.com>
Subject: DD bug fails to wipe last 48 sectors of a disk
Thread-Topic: DD bug fails to wipe last 48 sectors of a disk
Thread-Index: AQHWRlgtCZZ0g6noFEKBC6QD7s7xqA==
Date: Fri, 19 Jun 2020 18:19:28 +0000
Message-ID: <DB7PR01MB5193A18F1D947ED4C276CD25D5980@DB7PR01MB5193.eurprd01.prod.exchangelabs.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-incomingtopheadermarker: OriginalChecksum:7D5D21A0FE4A00C5AAB1AD5F1C36BB8E62F21CAE96382AF70E8A03ADBDDC94D0;
 UpperCasedChecksum:072C87F77ED7CF56621F7AFEF322E9B12601623A59904FD502FE3524B7525AC9;
 SizeAsReceived:6706; Count:42
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [EJbs55h46BT7KgDtPK0unOmF4LY4V3Al]
x-ms-publictraffictype: Email
x-incomingheadercount: 42
x-eopattributedmessage: 0
x-ms-office365-filtering-correlation-id: 7efb08e5-1e0c-45d5-df4a-08d8147d4dcd
x-ms-traffictypediagnostic: DB8EUR06HT214:
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: hVs2yC/+WabhGNk1uOdEtVy0W2WmZ+xJTcNWdS4XZ4/M8Oh0mMxmaf7Fggh0cBSmsyD6Q75jlfguaY/eQ6hS0GA1pizAHlcPHjVI6cFpwHC1r64fuOqfN8FSubqF+cuX7/K4qjvQ4Kf8wzE0xLZF9LFXhVyNxpN6H8C0/TFw/A3FuHnPajqqGIWM/Sdtl/vxQGq6oQk11HOiKBjS1RDka0BGa0n6L0W+88ohw14+FjDlreJpEbUVRpg0ritOALur
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:;
 IPV:NLI; SFV:NSPM; H:DB7PR01MB5193.eurprd01.prod.exchangelabs.com; PTR:;
 CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; 
x-ms-exchange-antispam-messagedata: vjBoWO9N2PSfWAcSf4DLaqgynjZjBvyavSAURJcoAlAF6qe0UwtvQDR1c49cLuYB0Xb72qw+W/YoPpA0gjQjFQxxgIcisnntJsFM7Hu5E4ztWdTmgg7XHeFw8kDjHq7UITDqqedX1yX3Yh/x6bE9BA==
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 7efb08e5-1e0c-45d5-df4a-08d8147d4dcd
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2020 18:19:28.0940 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR06HT214
X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_20, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Hashim Aziz via Cygwin <cygwin@cygwin.com>
Reply-To: Hashim Aziz <hashaziz@hotmail.com>
Content-Type: text/plain; charset="windows-1252"
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 05JIK0GV005494

I first came across this bug last year, and wrote up my findings in a detailed answer to the StackExchange network:

https://superuser.com/questions/1505715/why-does-dd-give-me-an-error-at-the-end-of-zero-writing-a-disk

I didn’t then have the time to report it to this mailing list, but have just tested it using the latest version of Cygwin on the same two disks as I did then, and can confirm that the problem still persists. It’s also of note that I was running Windows 7 back then and am currently running 10, so this is now confirmed to manifest on both of the last two Windows OSes. I’m happy to work with the team to get this fixed, as I frequently need to make use of Cygwin dd to zero out drives for both security and regulatory compliance reasons, and failing to wipe the last 48 sectors of all drives is a pretty significant security risk.

Thanks,
Hashim


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

