From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933932AbcKGTB2 (ORCPT ); Mon, 7 Nov 2016 14:01:28 -0500 Received: from verein.lst.de ([213.95.11.211]:59404 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933893AbcKGTBL (ORCPT ); Mon, 7 Nov 2016 14:01:11 -0500 Date: Mon, 7 Nov 2016 20:01:09 +0100 From: Christoph Hellwig To: Tomas Winkler Cc: Greg Kroah-Hartman , Ulf Hansson , Adrian Hunter , James Bottomley , "Martin K . Petersen" , Vinayak Holikatti , Andy Lutomirski , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Michael Ryleev , Joao Pinto , Christoph Hellwig , Yaniv Gardi , Avri Altman , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-scsi@vger.kernel.org, linux-doc@vger.kernel.org, Alexander Usyskin Subject: Re: [PATCH v7 09/11] scsi: ufs: connect to RPMB subsystem Message-ID: <20161107190109.GA5110@lst.de> References: <1478548394-8184-1-git-send-email-tomas.winkler@intel.com> <1478548394-8184-10-git-send-email-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1478548394-8184-10-git-send-email-tomas.winkler@intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 07, 2016 at 09:53:12PM +0200, Tomas Winkler wrote: > Register UFS RPMB LUN with the RPMB subsystem and provide > implementation for the RPMB access operations. RPMB partition is > accessed via a sequence of security protocol in and security protocol > out commands with UFS specific parameters. This multi step process is > abstracted into 4 basic RPMB commands. This is a giant layering violation - the security protocol is not something up to the LLDD but the core code. And honestly the idea of defintining a security protocol in the UFS spec is just as braindead. If you care about this please take it up with T10 to get RPMB support into one of the core SCSI specs instead of a transport.