From patchwork Wed May 31 21:43:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9758203 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A36D60390 for ; Wed, 31 May 2017 21:44:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C8601FE85 for ; Wed, 31 May 2017 21:44:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 717C628451; Wed, 31 May 2017 21:44:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7AD6284C4 for ; Wed, 31 May 2017 21:44:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751067AbdEaVoD (ORCPT ); Wed, 31 May 2017 17:44:03 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:54498 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbdEaVoB (ORCPT ); Wed, 31 May 2017 17:44:01 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="124437072" Received: from mail-co1nam03lp0022.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.22]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 05:43:59 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DWF5jaN6LZT7fzDrR0YwIAwrLx/44Dlx0o35jS8Pip0=; b=tBKlSYoTJjFj6/p8eVk322M3gZSv/sYyLQ5r4RFBVtXAA2WEFa536XHZhCSe1UMTWnKHO+SlnrpQriDOKNVJBt0WRgJH2I+hA0/wHFXlEtHHmvdKzH4f/1xWN2ts0VxGo8WXruOL/0sp2ZskkGRxpSRQ2wSWJ5ApRldFJbqgVH8= Received: from DM5PR04CA0046.namprd04.prod.outlook.com (10.171.152.160) by DM5PR04MB0397.namprd04.prod.outlook.com (10.173.169.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 21:43:57 +0000 Received: from CO1NAM04FT009.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::208) by DM5PR04CA0046.outlook.office365.com (2603:10b6:3:12b::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 31 May 2017 21:43:57 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by CO1NAM04FT009.mail.protection.outlook.com (10.152.90.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 21:43:57 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 65.22.51736.B193F295; Wed, 31 May 2017 14:43:55 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Wed, 31 May 2017 14:43:54 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-bb-592f391bc62c Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id FA.DD.18148.A193F295; Wed, 31 May 2017 14:43:54 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" Subject: [PATCH v2 5/6] cdrom: Check SCSI passthrough support before reading audio Date: Wed, 31 May 2017 14:43:49 -0700 Message-ID: <20170531214350.31157-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531214350.31157-1-bart.vanassche@sandisk.com> References: <20170531214350.31157-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsXCddJ5ka60pX6kwbmbehar7/azWSx4s5fN YuXqo0wWe29pWxy+d5XFgdVjYvM7do/LZ0s9dt9sYPNYv+Uqi8fnTXIBrFFcNimpOZllqUX6 dglcGX37WtkLTnBWbPt2g7mB8Rt7FyMnh4SAicSC7VNYuhi5OIQEljJJbFn/hRHC2cYo0XN3 FStMVfu1u1BVmxklPt9dB5ZgEzCS+PZ+JguILSKgINHzeyUbSBGzwBZGiQtbVzOCJIQFgiTu zbnMBGKzCKhKfD+xEGw3r4C9xLUND6DukJc4u2UnM4jNKeAgMaXjGVhcCKjm/f0OsM0SApNY Jbr2rWaDaBaUODnzCdhmZgEJiYMvXjBDNKhLnFwyn2kCo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ront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39450400003)(39840400002)(39850400002)(39410400002)(39400400002)(39860400002)(2980300002)(438002)(9170700003)(8936002)(8676002)(2950100002)(6666003)(81166006)(38730400002)(110136004)(356003)(86362001)(48376002)(50226002)(6916009)(53936002)(50466002)(5003940100001)(47776003)(50986999)(2906002)(36756003)(1076002)(106466001)(33646002)(189998001)(4326008)(478600001)(54906002)(305945005)(77096006)(72206003)(5660300001)(76176999); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0397; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT009; 1:74ehNSwJyb4GLDemNIZVYxphIrJxNUgEPCM2sp25HNiQ0kxHRIhT6u0SvyCudEWpYY/rNWnzKsGJcgsPcbyZbsHs0+qb4pWUNF6dmDUS4u1tzPQpah6DPlLmFmdco2f+j8HWyTzmadpmvQqz5Kt2iO2thpyoKd11awBdHB01g34Wuu1uxQEs8A8vaLHkd7iWgIQlujaXMVkI284eZCl3Jp0vOO4KNREK1ehSRazu6GsZ56Y0BBiRcyFE64JB3jLIkkKcWt5g4xxpCPO4cpZhy1M2uvgHflN56oy4/TS4AFEVzWy5ID05rDivba7Bu2YclJraalEvBVKOBnCmtX9trlmMGOvdI6TT1lRgHZX4mnrPufLLcubHkRdajr23VvxujREqRtP9w9lTfIeb1tpA4M2OEJ1C4A+HL/7y4YlZdaSdnIKE2L67jHLIeuSPjtkHQ8XQ0yPVKuf+k2bxeCmVSoXZNb/M632KFpfji75ZYvRwBX55UO2dIOuzwbRadZSV8jcUSoejv0fHaH/Rbr2Qb+PBakt6d1KIYUqU83qb1bo= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0397: X-MS-Office365-Filtering-Correlation-Id: 0abbb2ae-435a-481e-5081-08d4a86e243f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0397; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 3:N5ywPG4+x3ptbPvaoozdZVGSMu7I/8pkEKhj1/t6w5X9PLt4VhQyqFdP9H4wFHCZelbABwDqPnfDB4DiSmm6jS1NNMWVm9wixv44Ic/5HuDTNsBWpHmcqSJqofwlycxlfhmLUZHtYQjpvBdM00HS+2AIW34UbMGoso0qjih4Zv7v3Ts/VmeFX8DsNih4fDtSjysdJlH5t5XVRrb81vwbsQWsCCJe4en++EuFUeIMXZpMmZAnN30gC7PN7skhr3SDZUVGsafSeZPlH9c8rLIKZrDJV604PBGjyHlRJBz/6u7TW1I8BsB8uZ7GsAzan475iJZWhVl6wZO7q8+IQoa1oWyN/mSRP4dioFonhyi0DR2MEtyYlA5cjoi50P3Yqjfwp5ohK2JJG1a8mxRyXZs7fhVP7jvz3KF9ix3YNQOnOW+k6Nnj0Adz9jz/IVdHvb0HlmY0j5mv5KvGQJP81YVlO//ARovwCx7y/zoTMeiCN5uDXGCnQ1fNJCpdG98HvqTE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 25:m0kutVFWZ2pHgE/Ht0yynunft68ec7yppmNZUCstq/DGjCIz1g/Xz2xFq/y8ISlyNHPEgJX096HqfgFEFdwC0OojX0O5KhkkGDQcxTP4JESbYd21FTY5p4X4HZsiIEfybEIxqQ5QWnTmc1+salUUnwKJC0ra3ER8VdS6Y+3Mz0aNinVwiUuqrllrvq+//utssl3wnmLYFqTgWhYVveeFBPaHx46KxNg/p8eJ8P8Ei4+i8sfAMLnV/hcVPLpn7rvLI8gAhH7nQyWAlApLgdnVGba+zBkazJOGUVT8R7TwlhReMu9LeKSVmMuCGbrzLEbNuFjis4B1IXQGcwTP0+Wb8qlbumkBpFeZCBFu66M2uL9UUJhC3f/asCq0P0WT3CpEk0VdXIupeKYx7sQ0NOgjWKpMvi3YyNuTCwC0Ta5CVUXUo9LwO+tKKmUdU9xPFP9gNCaLRIQoD+fW3Dfnva7eVBGRQDOwA/GrqjCYGBNL54A=; 31:qYKWSil9nb5up+b7nnnjwvQ0uKyEkZY6k95woAjhG3c3tjiuJ4MnNSeEsy7vPaRC/eacif+wS6IRdsIWgc2S5QC6elYZT70vqdS2RNJDFkldLlQES57k4l5MQ2Rt72ZZb6PJ1PgaAtZmCpVaPbRUsPUE7fCAZXZRxnrrSbpfH8mlm+jiydd2DMYAGGnsg6KeHkFDDZPMka9hQTo81pjOSnuJnLJn6+RFUi6p2lwW0dYLb8WhWaCWxqBeDY8DFA50 WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 20:kyuvw3tIRaYfaMjQToIKp8ayBSKjEONK3K2IM3h41Xm9s9ilHwzeRjzPj3rP2orurE++bTaGEjUDFhrezbsD7q7+6mTNDztNBRiiBcL7HrecxMzPvpzqrVHLUnVVYPB1MNlvsn7tBsFRFbKIwHbnmnEaf9+SggXMIAEeDNN6kkJbC7xZxWOOdZJ8RrGA3DKzSzD/lYazg2ogu1zwmaWS2jCMuq6C+gG6UsEbDGcYAotZjq8NcHtKiJAHcdGti0I52pBc6s/qHOSjFkMtmPShElmkXo8EhEH+2chskLI/EdL7sl0UtLgpoP8bbthtyyvWScnKBidvePHYNHvZ0q9drq6ri1PW2Y8q2opyUtIn5MqNW1+rPQLH4Lcs971mZeIstHV945mXch5WY7tnkLkbG+mpSPg0lw46gbwdHBqr4f/AyUIGRH0TpHPk1p8eTMVZTrO8ozag8My7UnOe8Flj8Gf9xHBw+o7XmoPpRdVIhh8flDyZI8bVEO5jph8tk3L9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:DM5PR04MB0397; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0397; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 4:RjHyIQDsij5cWL62hveLVYvQZgqKO/uw2MPZbmjl9NoMyx+0Zvokj06M/cwEER8rIr4KNZ/T6e2jOGV2/7DBAd1hEMf/0aFpm3yIY+Ch6If7nS9pE+I4kMB/E6cctcI/eslAvVV5X+lGcBzu2h+IOUVlpyNeCKZ76s0dG5r7uu/NauaSzy9QnvgI8IoojJqjhu70Xo9jEdBL0hvgded+baN/q/F0lhO3T26Pc9LRiLW52M723YBM3mp/k0AsovPq/KnkHMuei3D7AB67frcfwjKxvVO/OsBJs0WNnuKbCzAH85u+Sm68Ly1w3SISRE3EbmwIWkpxbMioG4W/sUa/Q9TANeUEOebumjmHKPCP3Fnh0YeT/Jw2wDw5f9W1o5w8FrkKaf34960SWv5HUIxMyakvEiXHtV++Qp8tqnh0egRZTplrYUntA/6GxuvTF6HRdCDP/nA6WehDOErTRhkJx9BjnYKaGivg0/bJNYUAo7BuHeJKa8TGa2U/OWKxPBIOdCsT1AP9B1JWvWYIxFRUIA6vYxdLc6nZv57/ONW7PuotJfHs9v0PjRjbM+GavXB0ipH0Hve0o26wws/2wzPV9mfAlLuqCaXDoxV0a4G1OPSFx4c8fACcuqDVk5Sa+4Xb+S2GY/YixZ7/zMgzR2YDQvL2JdQrO4pQbroonAdaXs81p+NPPot8oEVmcwwk+TUfbmuMidN6/TYytrlLQIwHwehzPVzdTVASX2WzFzsVSgM0fCgo6rvU2RURSm16Y5sMUagTK3TKRNBO+bEeECIgwhsLQoVwd5T9BRB/W7nVkGYFuDH1RSgQG48q6hWALlowaZxS3pDD+R81yeZsId7mggqPY+yJV/7q0tqMBmEUgPRw6wacBSarbF6kAvPj0nLB1wC2VgA+CdU8jgFHJ4on3cOcMN4CGF0o2DPFwhupEj TGkNXkUUTue8XX+fOYzZT4 X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0397; 23:kltlQqw56X20ZzAUTIkH7827qgfKfG6BLx+lcjQjL?= =?us-ascii?Q?1MlPeIStrGlnEVmB4ujF4HVIH4RvJQgra30rA5iYDOWs5KwZ6ORlo7l3J7G/?= =?us-ascii?Q?febD4QRGHWlWli/RF5bJM0gp60NjDUHBy7hpOXsZjQVhVjKmowoEXY7HILBb?= =?us-ascii?Q?QQhYSX6CgQN0Xop0AwRFManjqufKSRLGkEBSo8v9mpU3sALFgfPuXpaSyYZ1?= =?us-ascii?Q?MfyOqpgZW/CoSp4x6MvEAPEWVPLPrTc3dT5+eXT16CC6qdYKCAODs1Ic+6QS?= =?us-ascii?Q?sLklhNbG39OxJ7KQk3zFc+o9lD8Tf7g2r3uwIfSEok9xqejt0/INjnZKYQmp?= =?us-ascii?Q?saOsFR8qNRV+rd6Xsxq89LbdumIW55774t0lt5s0BMcCYnC5T3JGdGIVjrJl?= =?us-ascii?Q?RIV2wRTY4zxz7aT8/6ZUqMRncuxwC9ridObZs+5uv5nKd/NFmmIbdeCVIS0Y?= =?us-ascii?Q?7Lsp8GmDUCZM3KgaSgrrb12m47lCUT8htdIhFiqEJpWJZcs+JjAvxcdA9bdZ?= =?us-ascii?Q?+auXF20VmEc033OwBB49v/ryp8UeQPESYYfiyE74+nR4L5Nz8JfJ1fje/zzQ?= =?us-ascii?Q?KajtmqVFKFBWNnUU03ZK2fMKROd1YkEJ0mjONSt7xYly21gqoMkWhpYGQXAL?= =?us-ascii?Q?ndoIVOQxrPpUGi9QWVDysZaRsYQDuFy5BJirMfxrZxBhvRfzoqZV/W5ibgQR?= =?us-ascii?Q?4TZHQfpbtbyQY4iXzFDON6u4j8IBdhxQpuWrWjNzZEVg5cBzgzXwpnHNMycx?= =?us-ascii?Q?Dooxv0FjW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qgRTjlVtO8LigH2AaSziVy8PyEWM9Hqn2XdjoxVbkA==; 24:yunafqtWYJ7Ww5hiTG1NbOyecF6fgg06gYiMEjepd+coS48APx0x3QUCdhUu2sZtDpYKHJxnDCgYMS09tu4Qd+sDIYYXhZsrzpRLQmYtQXM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 7:1jZoUWLuGVstLFnB5SybXC0qb8bXwj+PAdkwEjb9aKwOvIua3/Hn83tt+rfptjdQiiuI9M1xI9/NUCpamMbBk3L+6bwRfm/dG+fxLTjMT9cq10wQ7EEK8vhmO0+cTwiVUcU/HP/QY3p14EjJJNEJzbik+Tk2iAJ9/aJanVqDYtDlTMkwNoURXGRX0p17ZtxQGJV/SsAW2XKIVFU0zhZb7ZJptEXjgJxoQDo6hYFi9ffSzKqgR25iVtv3kXb4QQC/MALL+YwFmrvd38vKzCB1AOcPeiNpDlaGSfMjhzrdwUGSFSH9XZWseUSgjI4Zgl2XXSUU5Y7Z6HdURxt7sPxOmw==; 20:8Oqfz9gTdgHP1FiKYChfOrfDarTG2xquAxMsyClayLhZ8CUHn1gX/+r+L0sndUN1cDYiiZY2RwciOgaIKEN3YWFt9EFVfVbX9YFtc+QJESRpMKTZ4DuksWbL8MT1CDolNv/Ep0kyS6m5HXLR7Xz42sP1FpI9ZEXP9QhDYyL3qt8= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 21:43:57.0799 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB0397 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The CDROMREADAUDIO ioctl uses SCSI passthrough when the .disk pointer has been set in struct cdrom_device_info. Hence check whether SCSI passthrough is supported before submitting a SCSI command. Note: both the ide-cd and sr drivers set the disk pointer in struct cdrom_device_info but neither the pcd nor the gdrom driver sets that pointer. References: commit 82ed4db499b8 ("block: split scsi_request out of struct request") Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: linux-block@vger.kernel.org Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/cdrom/cdrom.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index 76c952fd9ab9..ff19cfc587f0 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c @@ -2178,6 +2178,12 @@ static int cdrom_read_cdda_bpc(struct cdrom_device_info *cdi, __u8 __user *ubuf, if (!q) return -ENXIO; + if (!blk_queue_scsi_passthrough(q)) { + WARN_ONCE(true, + "Attempt read CDDA info through a non-SCSI queue\n"); + return -EINVAL; + } + cdi->last_sense = 0; while (nframes) {