Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4111021imm; Mon, 18 Jun 2018 09:18:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLG7AfUlJVrtOUfKeW89/LRVIw7TX9FVCNBTbqZ03fUtDqJ9KAeQLaHhbdSXTwYgNjCMw8x X-Received: by 2002:a17:902:bb90:: with SMTP id m16-v6mr14755891pls.50.1529338696880; Mon, 18 Jun 2018 09:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529338696; cv=none; d=google.com; s=arc-20160816; b=qtfrnvjFsWv+WwltSG4NkCkGMyK9vrltnFfFka/euVu9hd0mp9YaXZepX0M/rOvSTu pVTUejk+xtF/XNsZaZT06GmXqiYLlytZ55Ze2jhUe4vD+3IBIttGMSFUG6y7sX962R8/ EkOeFgMMbezsyC+STY84y4WTC5pfZ8iLp4GSFukdSY4hHz1unFrGewCV2TbVXnsOVKzo jVqNndPZfnSwF/gx5r/U2aC120qc8ywHz5t/5J+lgtGgn6cqL5lLGrPXzpkJPc/0iGOc F/0FO5OK2XG04BdNvJ5qIkpulkg/ruiAHSn5SjS+ihFbOKyk3UyQHiM+yes1E3KM+JW4 PpEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=dXGwfkCJbnILmuhKidMUMqoQd5Ry3mnANi1QaKntz4U=; b=D0JZ+iRDPMGyMN8635ViM2V4rhJOI2arBkIeuxeTcHkmWZ002VXeRtKu7gfp0QLeVY mPTEZ0QsZ32pETbWvENJ/qDwHeLJ3hKBC4rj6RhdFCZAzQtdFJX9t3aeCLUgT7Mgppds 1lFAddU5yhfLamd2M+M45RivQhzc0R7rc69ocn1jnpjU0+guGCg2mW+1s/SJCQ1j2dYi PpFTqvQFKt82amNY4Pp2bjmsHBMac+2Sbj//LEqulmSpjzQWDTb4oNuEyIblNExAgOsd qNuNRnEflkjm4Z+t5xizw22N9cojcVZGdIak/naJUr1udLmMsbYFuRk3ql5pvugpSKDc rdbg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14-v6si14928290pls.32.2018.06.18.09.18.02; Mon, 18 Jun 2018 09:18:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755307AbeFRQRK (ORCPT + 99 others); Mon, 18 Jun 2018 12:17:10 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:50292 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755235AbeFRQRJ (ORCPT ); Mon, 18 Jun 2018 12:17:09 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fUwpu-0004K3-3T; Mon, 18 Jun 2018 16:16:58 +0000 Date: Mon, 18 Jun 2018 17:16:58 +0100 From: Al Viro To: Jens Axboe Cc: dgilbert@interlog.com, Jann Horn , FUJITA Tomonori , "James E.J. Bottomley" , "Martin K. Petersen" , linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, security@kernel.org Subject: Re: [PATCH] sg, bsg: mitigate read/write abuse, block uaccess in release Message-ID: <20180618161657.GP30522@ZenIV.linux.org.uk> References: <20180615152335.208202-1-jannh@google.com> <20180615164009.GD30522@ZenIV.linux.org.uk> <90063ef3-68fa-e983-9b47-838e6076b0f4@interlog.com> <813e817b-bb2f-4a47-6225-9e39f19be278@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <813e817b-bb2f-4a47-6225-9e39f19be278@kernel.dk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18, 2018 at 09:37:01AM -0600, Jens Axboe wrote: > > The folks responsible are no longer active in kernel development *** > > but as far as I know the async write(command), read(response) were > > added to bsg over 10 years ago as proof-of-concept and never properly > > worked in this async mode. The biggest design problem with it that I'm > > It was born with that mode, but I don't think anyone ever really used it. > So it might feasible to simply yank it. That said, just doing a prune > mode at ->release() time doesn't seem like such a hard task. "prune mode" being...?