Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1407606pxb; Sun, 19 Sep 2021 16:58:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyywiiJcTaKLf8Guc2UJyA2E49jYpkmkuxN33Ahn3cmilUH1mMqu4JYXPMbCsa8tNtjRcUU X-Received: by 2002:a50:d5c1:: with SMTP id g1mr25321627edj.296.1632095894175; Sun, 19 Sep 2021 16:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632095894; cv=none; d=google.com; s=arc-20160816; b=rZAjg8kK3Z/EtgDcjrPoCm+9yg9FXzsPvp1KLoDC0xyN9ve8zMgkylshpOYmMoMvt2 oPGfV6m6/1mwHWSV5bE8HCwTDga7VIjxwxBwX3b6Lu9QYMQMmaqSfM1nOwhN4zWTJP2j pqFsYEQnZNQuaLzk9ldZVLxIOlJphV6jFyXgW0SRJzlKI7IieuHEj1wotk9bn7jw03cB 7sRSCpv3ljQDwTSMySJHmf7IM1zP9F+TRPS9He6bjaRShc5KSG6i876t/3HoRywR8jQJ YQ82ToJ7mSqq3t/730UrUyEXpCAGTzXGow9y/etYeiHwDRrbrsf7dqQeRhxQWbijf6ur Qp2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gzH6lpxgIId94kETWkC5RxUlfDvzfaMBjEF1eUTu6iE=; b=p0RiIsRG3r02BA1H4dPrUp1Wocix9RNVEcwIh8AchiKpbcO27OSKX/l7OdoAaX8o2H 2R2XeFMjs6JkvKcIt9EI9tFOij3sEE3FVNkJSeobl26VD8NFeglXMtvu8PgXZJN8fPe9 MreMI9Ke0JOuW8P6fFgtALLejSFg49pgzx2EFaP/Lk6mqPKHkYonORZDoq77/WbV3mMW j1SgcebsQAgfws50sOCQojSWHfZffS1cr45Md9cxqHBq4tZBZFYYQov62WFAeSNBAkzC fEAyFq+ScVdpY8jNggAoov8/RiYzG9tFmC7aL7a7RX9yxvLBpKPBuJmCm6qjjccsOlie IDsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si14801201ejg.73.2021.09.19.16.57.29; Sun, 19 Sep 2021 16:58:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231420AbhISTLw (ORCPT + 99 others); Sun, 19 Sep 2021 15:11:52 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:34794 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbhISTLv (ORCPT ); Sun, 19 Sep 2021 15:11:51 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 22E111C0B7A; Sun, 19 Sep 2021 21:10:25 +0200 (CEST) Date: Sun, 19 Sep 2021 21:10:25 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Bart Van Assche , Jens Axboe , Christoph Hellwig , "Martin K. Petersen" , Sasha Levin Subject: Re: [PATCH 5.10 058/306] scsi: bsg: Remove support for SCSI_IOCTL_SEND_COMMAND Message-ID: <20210919191025.GB12836@amd> References: <20210916155753.903069397@linuxfoundation.org> <20210916155755.923264527@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eAbsdosE1cNLO4uF" Content-Disposition: inline In-Reply-To: <20210916155755.923264527@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --eAbsdosE1cNLO4uF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Christoph Hellwig >=20 > [ Upstream commit beec64d0c9749afedf51c3c10cf52de1d9a89cc0 ] >=20 > SCSI_IOCTL_SEND_COMMAND has been deprecated longer than bsg exists and has > been warning for just as long. More importantly it harcodes SCSI CDBs and > thus will do the wrong thing on non-SCSI bsg nodes. I see removing deprecated stuff is good idea in mainline, but do we want to do that in -stable? Best regads, Pavel > +++ b/block/bsg.c > @@ -371,10 +371,13 @@ static long bsg_ioctl(struct file *file, unsigned i= nt cmd, unsigned long arg) > case SG_GET_RESERVED_SIZE: > case SG_SET_RESERVED_SIZE: > case SG_EMULATED_HOST: > - case SCSI_IOCTL_SEND_COMMAND: > return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, uarg); > case SG_IO: > return bsg_sg_io(bd->queue, file->f_mode, uarg); > + case SCSI_IOCTL_SEND_COMMAND: > + pr_warn_ratelimited("%s: calling unsupported SCSI_IOCTL_SEND_COMMAND\n= ", > + current->comm); > + return -EINVAL; > default: > return -ENOTTY; > } --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --eAbsdosE1cNLO4uF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmFHiyAACgkQMOfwapXb+vLmdwCgs0WQx7XvtgmcxnDZppaLxCuR rcYAn1402PBt/0JDtUe9J3j40oWqWZYE =UZBQ -----END PGP SIGNATURE----- --eAbsdosE1cNLO4uF--