Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2048155imm; Thu, 2 Aug 2018 05:31:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcukaog2SQ424+i1iPPIvIRyR00qBf2kPQmRzzVMfQ9ypnqE+V//UXo6c5kdKgiXQ8UcUMl X-Received: by 2002:a17:902:740a:: with SMTP id g10-v6mr2241944pll.204.1533213077523; Thu, 02 Aug 2018 05:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533213077; cv=none; d=google.com; s=arc-20160816; b=siN9Q1RUfScri0QMqTv8KpsyRVXCev9mpr8VTPfUWDigQOqopzqQDcOvrosWAHFBj8 jQpZQwgPd8NOfx0R6SO4Pumf1NUnt7ffKzd+0O0j2nJuQltQZhrSlRDPF0fguNoQ0PZ1 k0fJWF5WQv7g6qz0AjuvNVKJSnEO8y/ADxs7jiVMFRRLTR2FCXn73IjzpL+JokxjQ9ag d3N93Funp68P38Uxc2eYivMV03SLl2y3kKYA7gaEbAZOsCRnfdJueK+9Ao2a2w+06o6W hMX0ygXTnnEDLGNStEpz5cjcdd5m31ayerJKGD/+vz4YgIKRYZRlq2INrs6msPNjLWI9 aw6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=7eyyokCTObIbyfa+KpoVQ5/ZQY/Ov18n649w1cfHIOA=; b=X8RvBsd6E37pjzXoyxpZKiIXxx2FHKCjWm2atyuED0VHYKL7gG5/J9h7ZQyTWSeiCz aXVPCtd0OghCE3yQ0L3xuxQweqh7rx+4FGpBpXm6YCLo2YDXsH0VGZX6KV79UwjsPJKH EvlB8A4kdN2Fc3NMcpGvy29lOJx7qqlVtu2Cdi3EeLWU01sG+yqXNaJKEw10ePoSetWC sfQH7Ea6z8zhJhZOwgUtxdrzGtxIJ7CgmZ4Hm6GIGuJ0csMHVaqfJuhqi9Yapo+FXBOI 9zvAC1OT3TV8cHTCMR+iR2sYb0MZCMH7HP9fQHixN6XxFiTjhnrhWen0I1dejLcIyg6X teVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18-v6si1924989pgi.688.2018.08.02.05.31.02; Thu, 02 Aug 2018 05:31:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732337AbeHBOU4 (ORCPT + 99 others); Thu, 2 Aug 2018 10:20:56 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:46544 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728797AbeHBOU4 (ORCPT ); Thu, 2 Aug 2018 10:20:56 -0400 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w72CTu1d017908; Thu, 2 Aug 2018 13:29:56 +0100 Date: Thu, 2 Aug 2018 13:29:56 +0100 From: Alan Cox To: Jeff Chua Cc: Ming Lei , lkml Subject: Re: How to secure erase PCI-E NVME SSD connected via USB3? Message-ID: <20180802132956.6b7110ed@alans-desktop> In-Reply-To: References: Organization: Intel Corporation X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > # hdparm --user-master u --security-erase p /dev/sda > (returns immediately and does nothing). > > I've tried hdparm on an SSD connected via USB3 and it secure-erased ok. > > Anyone working on this? Sounds to me like you need to contact the vendor of the interface in question. If it accepted a security erase command and didn't do it then it's broken. It's at liberty to refuse it, or report it doesn't know what you are talking about, but if it just returned and after re-plugging the device its still using the old keys then it or the device is busted and it's not something the OS can do much about. Alan