Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp181883imm; Tue, 22 May 2018 16:33:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp4U+s7sHTCfjQcN8RIKAk2oGj7Ma7XQoq+iXDy8vDeAkC8J17hKH9ZKmDb+tXW658G/JFa X-Received: by 2002:a62:c050:: with SMTP id x77-v6mr458938pff.67.1527032008079; Tue, 22 May 2018 16:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527032008; cv=none; d=google.com; s=arc-20160816; b=JrouGvOiaESFgHs3BpvrpJfKNNLTds6uFCcpCwTT2LxjHwtnMeHrDH/GZWzXpQSmjP 7JJS7I5ocq+BCDxSocuagfnBnB4LR7OlG1iFUtuPm+o288/oF5vU5kdNaH5lTyNP6dHh L/nXHCac3N/yS2bwrCCCmMTu1PZwsFlZh7LZJQF6pBlCXKhd4ZqFl2j8krr1i4XYSrcL 4I/YvxNTi3edpFmWe8k79dtH5TboMId3pbdn3Uu9kDsxvGRdVUwE14nS9v2Tu+GrhK1G Es9K2+ckoYGoEpdoY1rvECJwrU5T65OEwCzW2gljZAjkZDBbfdaIrM9h9dRutJh8Q8bd L7TA== 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=OyTJx0mJyCr+pi//I0a/qSdzFYu0akV/kZUuXtpYRFM=; b=vwdAxSkX3u7BZZ4RuNkp9l/pDo0cMQiOvrItGWmEAKsqPePqhJ8LnVwSNvt41CIo1r G87/rmcIJyqFnsyonCN/OlgGMnDCyLbZEk5lpBhb4LPMYaFrVtaJB8v5vHqzJ1vowlTS yXup0NO6Cq+UVYROJ7H+GS7L+vWOXCG3XxfopxQPd5mq5FyePBlAGKfvu/S2wee5f/UD 0BTlbuBre0/dpOVSVdQJsq5QF0Uw9MO6ohcbZdCl5LnDvYco/DjvkHgzPkkrytJmMDh8 I6XLn5VAnO5NTrImU0lxmxcPy5AKCOJA8KjgrtNDbW9nYapGDs30Nomch965ApcKblUh LytA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=YLbxcGTV; dkim=fail header.i=@chromium.org header.s=google header.b=Zlpb9WUU; 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 q12-v6si16787467plr.358.2018.05.22.16.33.13; Tue, 22 May 2018 16:33:28 -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=YLbxcGTV; dkim=fail header.i=@chromium.org header.s=google header.b=Zlpb9WUU; 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 S1753478AbeEVXcD (ORCPT + 99 others); Tue, 22 May 2018 19:32:03 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:40619 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753105AbeEVXb7 (ORCPT ); Tue, 22 May 2018 19:31:59 -0400 Received: by mail-vk0-f66.google.com with SMTP id e67-v6so12005133vke.7 for ; Tue, 22 May 2018 16:31:59 -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=OyTJx0mJyCr+pi//I0a/qSdzFYu0akV/kZUuXtpYRFM=; b=YLbxcGTVIaC6PSWffulH+jYoZusdPh/m/iQlfJ+34tTvR23Iu0FcOK9ZBakdMC6ofn WzPwXxQGFgOwmLKEzMlmkyUYJYTpuvr7/HG23sNFOsT0fJMQDFbrvUQFsodyQ9S0KD9c gnbouQS6hOIK/5LYmfuPM1Ojc2NBwo5E/EUG6OC3hMooTwhLG0u2h109m+Mo9FMyVlKx 0lHmp9LNWRDUByt7/u4Mrz1eqbS4NKnMrGKd8yolEe3IuR/8BCMEfp6xcJLlaCifCUuo sGAshzoKH01iGzZmyXrRWtfQjXS/eLwCOEbnIEk6itOfi52IlyUCr2qKpGPiisALTw0z 56dQ== 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=OyTJx0mJyCr+pi//I0a/qSdzFYu0akV/kZUuXtpYRFM=; b=Zlpb9WUU7tOEw6MdtzQ6h9CVK/TIvgT7wcsxjIr7JXSZPJHfr7fyd+XzpazvnqCOYh KCz5pWpqoN8OKJp3ZsQotHmKl/sBR9y9sVJu1riwZUXcuKcQhi5bubMdg2AIM/UJ5JDH PSXb562teQOeO7jRfgjK9epERQyxlTU+rvi7Q= 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=OyTJx0mJyCr+pi//I0a/qSdzFYu0akV/kZUuXtpYRFM=; b=iwMkmQqAzSa9dXxoXBgdl2/NnTVCp7QpWCp4BVMpDzqx+6IhWB5O2zCkHc3J4h40q3 ILrF5VKzQCDrmKaOsfG3Rsd2hoAxJ6nWWkRhElK6BhdhsEhGiL0THKC2pfY3LcuCE5k/ GxOby7qI82Z2m68/37XstHfMX+xnX4NK/2pGfUokviLPx+ZW9wgPI2/Z7iBEI17uyQAD VCtxHtNWE+YWpplC7mI5oTOQjAwy1F/ZiXJ5hkTTmEjhKG39B0Jd/uXSxB8TLYYqu4P+ TrqvU91J9jV2jB3IUZ93tgXMm/YL9CYvsG/RrFxuFYvSr/fQrXzNoaAsZV+S8c9N/RGY yLnQ== X-Gm-Message-State: ALKqPweuY1cl+NkMtTS3ZkqeqGiWQ9CHVd5dnliGcA4A2v64oykEOUAY aB1t/7KbFBwpGebsQnb++8mr8NRPYWF18wEbHe1svQ== X-Received: by 2002:a1f:3096:: with SMTP id w144-v6mr332742vkw.121.1527031918492; Tue, 22 May 2018 16:31:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:bd1:0:0:0:0:0 with HTTP; Tue, 22 May 2018 16:31:57 -0700 (PDT) In-Reply-To: <8d4af5c4-96fa-54ee-d5c1-b887b1de5a3c@kernel.dk> References: <20180522181512.39316-1-keescook@chromium.org> <20180522181512.39316-4-keescook@chromium.org> <20180522183613.GA3784@infradead.org> <732f4249-5681-4a54-ec21-4ecc3d3a74e5@kernel.dk> <20180522191309.GA23615@infradead.org> <8d4af5c4-96fa-54ee-d5c1-b887b1de5a3c@kernel.dk> From: Kees Cook Date: Tue, 22 May 2018 16:31:57 -0700 X-Google-Sender-Auth: la2ZXY6LMvHf5sYEHvLwc0MCk0s Message-ID: Subject: Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI To: Jens Axboe Cc: Christoph Hellwig , "Martin K. Petersen" , 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 12:16 PM, Jens Axboe wrote: > On 5/22/18 1:13 PM, Christoph Hellwig wrote: >> On Tue, May 22, 2018 at 01:09:41PM -0600, Jens Axboe wrote: >>> I think Martin and Christoph are objecting to moving the code to >>> block/scsi_ioctl.h. I don't care too much about where the code is, but >>> think it would be nice to have the definitions in a separate header. But >>> if they prefer just pulling in all of SCSI for it, well then I guess >>> it's pointless to move the header bits. Seems very heavy handed to me, >>> though. >> >> It might be heavy handed for the 3 remaining users of drivers/ide, > > Brutal :-) Heh. I noticed a similar sense buffer use in drivers/cdrom/cdrom.c too. Is this okay under the same considerations? diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index ad9b687a236a..220ff321c102 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -79,7 +79,7 @@ config GDROM tristate "SEGA Dreamcast GD-ROM drive" depends on SH_DREAMCAST select CDROM - select BLK_SCSI_REQUEST # only for the generic cdrom code + select SCSI help A standard SEGA Dreamcast comes with a modified CD ROM drive called a "GD-ROM" by SEGA to signify it is capable of reading special disks @@ -345,7 +345,7 @@ config CDROM_PKTCDVD tristate "Packet writing on CD/DVD media (DEPRECATED)" depends on !UML select CDROM - select BLK_SCSI_REQUEST + select SCSI help Note: This driver is deprecated and will be removed from the kernel in the near future! diff --git a/drivers/block/paride/Kconfig b/drivers/block/paride/Kconfig index f8bd6ef3605a..7fdfcc5eaca5 100644 --- a/drivers/block/paride/Kconfig +++ b/drivers/block/paride/Kconfig @@ -27,7 +27,7 @@ config PARIDE_PCD tristate "Parallel port ATAPI CD-ROMs" depends on PARIDE select CDROM - select BLK_SCSI_REQUEST # only for the generic cdrom code + select SCSI ---help--- This option enables the high-level driver for ATAPI CD-ROM devices connected through a parallel port. If you chose to build PARIDE >> but as long as that stuff just keeps working I'd rather worry about >> everyone else, and keep the scsi code where it belongs. > > Fine with me then, hopefully we can some day kill it off. I'll send a v2. I found a few other things to fix up (including the cdrom.c one). Thanks! -Kees -- Kees Cook Pixel Security