From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5728C433EF for ; Tue, 28 Jun 2022 18:36:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232449AbiF1Sgm (ORCPT ); Tue, 28 Jun 2022 14:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbiF1Sgl (ORCPT ); Tue, 28 Jun 2022 14:36:41 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B72C01F63D for ; Tue, 28 Jun 2022 11:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=yYNL0wXAVauQl3AW7aadY26+DFdEzYsbe5qQbwSJNh4=; b=BHFfFMm31MaiDU9gUlc5urXtnD TQtJ7v6QODoXB2IgWGgbAs4xMp255Am+nfr4/Q/EmKGZ/TFXMfXiapqnbzxOHc8K/fEYVUfbKvKEY HB/c1m4P7nNnzscCGmGXyxHgIlSglugkAVabuH7fallETnDzwkfzHSaeIY/0reuZyIL6v4Y3WnNc8 tsqQHpsC8lEdc4fi8E9pNX8hylEt88Z/8bsL/SbdyG+y7XsHIWwJuGoot8xXxUFAI0VBVCEbkvzzt 6eubTTi3rYpx6w2kKOOixc7jixtFFr4cojZQOCy2RDOpJAa3RFU8vWH6aey9tb5g7wVXBY2b14APs LayDbg+g==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1o6G4j-005i7Y-FQ; Tue, 28 Jun 2022 18:36:37 +0000 Date: Tue, 28 Jun 2022 19:36:37 +0100 From: Al Viro To: Christian Brauner Cc: linux-fsdevel@vger.kernel.org, Linus Torvalds , Jens Axboe , Christoph Hellwig , Matthew Wilcox , David Howells , Dominique Martinet Subject: Re: [PATCH 08/44] copy_page_{to,from}_iter(): switch iovec variants to generic Message-ID: References: <20220622041552.737754-1-viro@zeniv.linux.org.uk> <20220622041552.737754-8-viro@zeniv.linux.org.uk> <20220628123205.4mh7luq5lha2c2qe@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220628123205.4mh7luq5lha2c2qe@wittgenstein> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Jun 28, 2022 at 02:32:05PM +0200, Christian Brauner wrote: > On Wed, Jun 22, 2022 at 05:15:16AM +0100, Al Viro wrote: > > we can do copyin/copyout under kmap_local_page(); it shouldn't overflow > > the kmap stack - the maximal footprint increase only by one here. > > > > Signed-off-by: Al Viro > > --- > > Assuming the WARN_ON(1) removals are intentional, > Reviewed-by: Christian Brauner (Microsoft) Deliberate - it shouldn't be any different from what _copy_to_iter() and _copy_from_iter() are ready to handle.