Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1946257imm; Tue, 22 May 2018 11:59:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqsuxxrl6v/U2D5gkkKXrEl/hFV14ZE+DNW84iO0iLXSCr+kUxbDvQbNpnDRiyj7ll4NXFZ X-Received: by 2002:a17:902:6113:: with SMTP id t19-v6mr25517550plj.372.1527015579990; Tue, 22 May 2018 11:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527015579; cv=none; d=google.com; s=arc-20160816; b=KTPKSWDxR2apWenxtZ2LkpsXUEfwD7tJpetFGZPs5j6tstAzru9mxLPWFU/0M3uBif bVbzS7ibsYFoBwgZm4VUFb7Kq6UGrlC6o7jWl0A4N38vnKevVsw7tdnQ+3HeAKASubPj AJPCuAAOn98g43/ii5zcm4Q8D6Ht1KeMnkrCClu7FT4YW+xpo0pjSaD6p08daKRgsd79 i3YZPxNeoilDidmW3I4LH4DB+UeqbNCivsR5FqLEPsENVV5rFX9HzOyfPer/HJ5l7bOh 8JfwJHucEGt9s8To22muUGziDUwQDcuSEOt0VMVX7BbHW0xiezD+DU3vIvZ6Yivuf5tG CYzw== 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:dkim-signature :arc-authentication-results; bh=Kytch2D4NLpvM7xgO2ckEulpxKFP9+SXJtNP29//Pl0=; b=C54syB59OjX1uM0HtldpUSCIf/5V1kykRATp/a0bCslXe52WS2T/j7nUUAA6Mj2EQy Gweh1k4rc5j7K52VrTVQe6QUeJ8oIi/KA1fL+r8mBwZ9SdApDGnq6VjyHqVKFZWnjANE yS0NyYuyMN8YfgVwTkZVFb22W/4h4W+bfsSP68eltJnu5pLQY1xrRFMaJc0PVAziTjBw LGncV81TZGEco3Rs7YeudfUZqMHdal1lEkFL2SNlwDcjOgYomIbKgFFGPMGbGX6Gd6cz +2cDtJLYW0Tt2VLXohm/8VNqR26dcxogDpYcH/OilytIZclzj4Xv6J0sO7EdPyjUTwDA 1s4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=gIS+ycNS; dkim=fail header.i=@chromium.org header.s=google header.b=XjMi4SsB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6-v6si17069371pla.12.2018.05.22.11.59.24; Tue, 22 May 2018 11:59:39 -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=fail header.i=@google.com header.s=20161025 header.b=gIS+ycNS; dkim=fail header.i=@chromium.org header.s=google header.b=XjMi4SsB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbeEVS7N (ORCPT + 99 others); Tue, 22 May 2018 14:59:13 -0400 Received: from mail-vk0-f65.google.com ([209.85.213.65]:42055 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411AbeEVS7J (ORCPT ); Tue, 22 May 2018 14:59:09 -0400 Received: by mail-vk0-f65.google.com with SMTP id j7-v6so11574674vkc.9 for ; Tue, 22 May 2018 11:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Kytch2D4NLpvM7xgO2ckEulpxKFP9+SXJtNP29//Pl0=; b=gIS+ycNSj/gpo+8xD0uzGtBM4rzga+wZi0Ek54wR9FTY00D5/LgbYr8m43/XfhaTLP 22EFHZwwwA6EVSiUAneebh6VW0g8DqtEe3yIsRTCzA9lJ31sVobT662wPrvNwOQIYDUB Go8VJEYuKC0nnUOoT8kiuqq4Z4tAhmo3sRfxvPVTP1duaO6scjzVQIiOw0K8wRfMXYjV LqTL1ssJnJDIUzoY4skoFRs6rpgo0elckZJ9niX2vd31mwISkkK89P/slpP6qhsT0TDL NBn4kPYVV1pFt+nIfhab6fEil3MCNZBqG2oCB5Q2pj0Hd+s4SD62eTb+LhkXa+Zf+yyd JxaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Kytch2D4NLpvM7xgO2ckEulpxKFP9+SXJtNP29//Pl0=; b=XjMi4SsBd2degSxeZa2TGnIUpW2yaBrAVF6ZX8Bet1VKM4CyLWuTxuDrjTbAmGwwii 6jVO/0cUkEGX+QBPSx5XkaTrhhQccmzdJQgQx5FWhmfzRgoITxNyBwZfWfTvDCPRm32+ /ni8hL/rahywSjvt6OjRlKKi+tJ9HjP0M+zmU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Kytch2D4NLpvM7xgO2ckEulpxKFP9+SXJtNP29//Pl0=; b=SgrV7YwPeiv69c0gZHemqvnhk0I7p1XvXfbCe9Dymc+OVW/wt0zhxUSlcSCQ780LLm 32QznnSRn8eBJ7Adxj7iv+jg9UJ8gNdx/FD2s9NJLFjPa2reqoV4zBlLoasgf8KBE1br PIO3HxCTC+N6lVT1KO0oSPiCWe1kuFB7AHC6UEpdnHu4ezAafQlUZnX2+rq83Pt3Q6Yl +Tnjcge8Gm6jMqzf/GmmF5kHla6q4HGi0Qs9FG6siDbx1OvItvKc2UzBw2lkbdDmOhCe LFAnxeODhv+jhl+J2OdDJOIWsmHg7qvOn+no1dW+azj/fTcEeBrdT+6mDOU8oNkUO283 oArA== X-Gm-Message-State: ALKqPwegnRw/N7DD+Va2APfeFBa4qWjDQ3WXzld/DL6CE2zx03iEWt2H dZsiXoG8sD2cw3yFbgP5N9YXdneBe+ynUSlThcRv8A== X-Received: by 2002:a1f:b9d2:: with SMTP id j201-v6mr16788717vkf.123.1527015548601; Tue, 22 May 2018 11:59:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:bd1:0:0:0:0:0 with HTTP; Tue, 22 May 2018 11:59:07 -0700 (PDT) In-Reply-To: References: <20180522181512.39316-1-keescook@chromium.org> <20180522181512.39316-4-keescook@chromium.org> <20180522183613.GA3784@infradead.org> From: Kees Cook Date: Tue, 22 May 2018 11:59:07 -0700 X-Google-Sender-Auth: 8KAiizuwi8z8wfhjziGSJbn_8fw Message-ID: Subject: Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI To: "Martin K. Petersen" Cc: Christoph Hellwig , Jens Axboe , James Bottomley , Tejun Heo , Borislav Petkov , "David S. Miller" , "Manoj N. Kumar" , "Matthew R. Ochs" , Uma Krishnan , linux-block , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, 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 Tue, May 22, 2018 at 11:50 AM, Martin K. Petersen wrote: > > Christoph, > >> On Tue, May 22, 2018 at 11:15:09AM -0700, Kees Cook wrote: >>> Both SCSI and ATAPI share the sense header. In preparation for using the >>> struct scsi_sense_hdr more widely, move this into a separate header and >>> move the helper function to scsi_ioctl.c which is linked with CONFIG_IDE >>> by way of CONFIG_BLK_SCSI_REQUEST. >> >> Please keep the code where it is and just depend on SCSI on the legacy >> ide driver. No need to do gymnastics just for a legacy case. > > Yup, I agree. Oh, er, this was mainly done at Jens's request. Jens, can you advise? -Kees -- Kees Cook Pixel Security