Return-Path: Received: from verein.lst.de ([213.95.11.211]:48268 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726555AbeLJLRb (ORCPT ); Mon, 10 Dec 2018 06:17:31 -0500 Date: Mon, 10 Dec 2018 12:17:29 +0100 From: Christoph Hellwig To: Bart Van Assche Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Todd Aiken , Keith Busch , Laurence Oberman , stable@vger.kernel.org Subject: Re: [PATCH] block: Restore tape support Message-ID: <20181210111729.GA21553@lst.de> References: <20181210030814.13235-1-bvanassche@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181210030814.13235-1-bvanassche@acm.org> Sender: stable-owner@vger.kernel.org List-ID: On Sun, Dec 09, 2018 at 07:08:14PM -0800, Bart Van Assche wrote: > According to what I found in > https://bugzilla.kernel.org/show_bug.cgi?id=201935 patch "block: Clear > kernel memory before copying to user" broke tape access. Hence revert > that patch. This looks wrong. The patch from Keith is obviously correct for normal usage of bio_copy_user_iov. The SCSI tape drivers use the somewhat odd null_mapped case, so we probably need to refine the checks for that a bit.