Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2075278imm; Thu, 2 Aug 2018 05:58:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpckKjcLsXHPJtQnrGXon2eF+BQSOm5u4AtZVprF1mFtmuiRNSx6cwJuxOGpUw7HxP+AI8yh X-Received: by 2002:a62:f50b:: with SMTP id n11-v6mr2903250pfh.120.1533214704566; Thu, 02 Aug 2018 05:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533214704; cv=none; d=google.com; s=arc-20160816; b=yjBMGgmwgRnMeK83SFIncdCaic6X4Bj5Bfv6/S2Yr4UkMdd0KvvU1PrI/N/jFLp5hm y8oswtR0thzYtvtuaqbqYDdiaPRsOW7QsLF66q0Ko5zonQvnfLzLdIhHCuqf31nEMc6l 0Ee1MEbBfEPw4p3X5x4WFY4nuYenWzcGA34fNtpvtZhu3Mf3atfyTE9nwvwMtxMqTINn PpxIQFnmmyBZTAtfu1Vt3D+sriaNcwRzsyezcJtwosfoKwXTt4lqehhfbPzF3cU3ZZq6 hUAJ7B7g/BZ/OYEufW3V9Q8rynKwhUNTJMYbyZ1yHJdZvRxm7aKdvVpJqOudMOgE9VFb jJhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=GLyB/82VIzTzdmHxzT2S/kEVm7jpJGLASkuCq657Awg=; b=c59DX4tTo4fJkdBUm0TOKJkJKgFzV3soOI7NrIXTnaPYckXKI0R1r49C0j+xoQ7RGC VjKKpMfeLonx5ruBlpEjg7np7pxcMi3o644JGDybTPo8uXPWrfm/t6aTUNm1p8k49qYZ tzU4PwsMiW8futCg+eemIeurqMJC/Rpx2nrB0HynrhPRiGHYlGNS9TRyOQjaO3AiaJNG lRkmup7bSD2eaxT1mFt9JTjuvvDLqxvOJy9OQDiTJi7r0ez0K0w5K2cMOsnnTPxWNikQ UU0tb0abOEYEps2J0tVe21o64xYD7vgim4MFImeFBSI/DTzl/LKBNUdWFrigDyT5BM5A 8ldA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CGTHXGU0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y86-v6si2002080pfi.195.2018.08.02.05.58.09; Thu, 02 Aug 2018 05:58:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CGTHXGU0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732341AbeHBOrV (ORCPT + 99 others); Thu, 2 Aug 2018 10:47:21 -0400 Received: from mail-qt0-f179.google.com ([209.85.216.179]:44888 "EHLO mail-qt0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732110AbeHBOrV (ORCPT ); Thu, 2 Aug 2018 10:47:21 -0400 Received: by mail-qt0-f179.google.com with SMTP id b15-v6so2073601qtp.11 for ; Thu, 02 Aug 2018 05:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GLyB/82VIzTzdmHxzT2S/kEVm7jpJGLASkuCq657Awg=; b=CGTHXGU02puxzzGUBuDIIREbNcbzEZSvx170/XibPIOATuZuv/2mqP9ZMCbNpYi9dU IwKpiJY421HOswTMm4ycb4Zm1bHFsU8n8xNpWAteHzX9z/gLl/gBAaXd7wIQdjjGVPs5 4oDRIojCCNvkYUdaZCYKDMU2onIynmEtJeMnZowFZjeOKElDZQ7Tf+b9sW8IkegdREBs Vk8zj9WYJ/fSmen3NDmhuQnwi2piIEykd53BIkaAH1QBsxVKZ2W7uP3GAZSa/F0etBQk D/pOhnWD60Fjms4drSpUNge7wLsQN/Ugzc+iVUBheBWoSEZaEF8JRB7nece+Y4RX/7I9 c0Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GLyB/82VIzTzdmHxzT2S/kEVm7jpJGLASkuCq657Awg=; b=G7O/KzDH+op/nNNVbyERrwq9lkuyH7aSfZ0mvZK6uqr6mnqsT3kAGdPkw7l+jR6xHY FRuLqO5b1I+KqWD9o30pAtFybd6TZiP3F018HHtsmn5DCpVbXjgs7kNxIV+DxVYuIUXc toCgqTN0v6owTQsRIbmmUEDQfapTQ6bzsU5Woi3nmuua5qKvW0bxF11dLX2kbA6npFXK BUbJCxHLVgHMWk5OUMwI8UoMumjrLKN9L29PoO3UwLzkXOND/uTcyl6B2wsBnWMAuYed FsjrVtLjymKxy5kuSU2tVaj6bP/2NmzE7Z0igClE8dteYzAS9tf/G/230Hz04U0Sro4E 2v1w== X-Gm-Message-State: AOUpUlGsAQOeWUi0hUoTuVeSQ+qVc/cazXYAeiiu4mKeVV8IwR5XMPUi 1K4z3FFxxbnNYYVQb9eMetEDPcrA7ZXrSXdl3UY= X-Received: by 2002:ac8:6055:: with SMTP id k21-v6mr2521553qtm.204.1533214576386; Thu, 02 Aug 2018 05:56:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:c482:0:0:0:0:0 with HTTP; Thu, 2 Aug 2018 05:56:15 -0700 (PDT) In-Reply-To: <20180802132956.6b7110ed@alans-desktop> References: <20180802132956.6b7110ed@alans-desktop> From: Jeff Chua Date: Thu, 2 Aug 2018 20:56:15 +0800 Message-ID: Subject: Re: How to secure erase PCI-E NVME SSD connected via USB3? To: Alan Cox Cc: Ming Lei , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 2, 2018 at 8:29 PM, Alan Cox wrote: >> # 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, You're right. I wrote to JMicron, and they are kind to reply that "hdparm not support secure-erase feature with USB to NVMe device", and told me to plug the card into a PCI slot to perform the security-erase. I'm asking JMicron again if the JMS583 even support security-erase. Thanks, Jeff