Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp107382rwl; Tue, 28 Mar 2023 22:01:09 -0700 (PDT) X-Google-Smtp-Source: AKy350Zc2UTZC4DSFoBDBe00LqjVggy5GuVqYrGimE/WoKmxef25AWJUt42rdFHZnFPGaX8I+ekn X-Received: by 2002:aa7:c6d8:0:b0:4a2:5652:d8ba with SMTP id b24-20020aa7c6d8000000b004a25652d8bamr1036955eds.18.1680066069668; Tue, 28 Mar 2023 22:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680066069; cv=none; d=google.com; s=arc-20160816; b=xg4dZyKPmm3q/SJum+AwXxtfHl/UK+0rbece2xsDZe1GIrLAZ5vSMO4lQaCato57G9 VKE58Dsz9e4QvbHPHhyWrdgOvjm6TxlLvxAkPWFKjillijGB/oAnAat0yiNs58SPsC6L gQKLXHibnogfGq8fgF3wL0T61paHDXUq5QAuiMn/Uv1zhaTccrwD9jHUvIIPzHubzIJE o0yP0pausWoMlXKef0C3+FSNae0/hIIKAqB2+EMTBpSp6a0Qusg7hDRyg/CCIcP6eZch F4faQ56/JcNBdgcHFcUODBE6v2ZwZtFcIxZK4aAFje52uSn1ivifsMarUGxS0cji63sh Qp3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S01Y/zhEA4qaJvTIo0c2m8xjYqU32cqDPsOeaeS0mgQ=; b=wD2FwBhrJ1X7/5prZZPF/ORkzi9XdUX7dI6B1vDWGMGWTb5k8m3Yz5Gdf5gn3n2m0H DxIdRfJlHfHlFLWJsEE0jwlbTyh/H9b6FC6ejq+BD0o8MlsD+eAkD1OtK7ZuI305Y1BS vzq+LEtWwIS3jQzgvAI4pRcDpJ76v6cD5pkC8up0vuHfZBIRlLozC7sztUPRi99zHJW7 QQdV+Tbiz5/npcuZzsxHmCnV4DKrQFHi2eGjX9tkpORKo+rOc9dpoioCP3Y4i8/aqObc zLu5ZzLkkqQlHEySIZdgqAbjV/PTluzE9gOELjta5VFLF7wPV/pr7yrTUuleZFNcnP/X Gz9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Lao4UjVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020aa7db51000000b004fa08b78769si15360029edt.450.2023.03.28.22.00.43; Tue, 28 Mar 2023 22:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Lao4UjVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbjC2Eyo (ORCPT + 99 others); Wed, 29 Mar 2023 00:54:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjC2Eyk (ORCPT ); Wed, 29 Mar 2023 00:54:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C7E135A1 for ; Tue, 28 Mar 2023 21:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680065631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=S01Y/zhEA4qaJvTIo0c2m8xjYqU32cqDPsOeaeS0mgQ=; b=Lao4UjVED30bgIn+zqQ6a5ZVmya9Zsr7ZOX/qalszyQLDJFNQnTNXY5IJma57xzxaBjivz yNIGeW+s/t3DxJ6QcyGVNx2GTkmUOzlS0cxX6083crZDCS8RlkJ7yjiUa8AYxYeINUSssY GD5ibchMiVA+QjnBkdMhBcOZK0dmUiI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-271-Ii-LZ0zMOzmqRxZZOA6_Ig-1; Wed, 29 Mar 2023 00:53:50 -0400 X-MC-Unique: Ii-LZ0zMOzmqRxZZOA6_Ig-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 418F6101A531; Wed, 29 Mar 2023 04:53:49 +0000 (UTC) Received: from localhost (ovpn-12-137.pek2.redhat.com [10.72.12.137]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D181B1121331; Wed, 29 Mar 2023 04:53:36 +0000 (UTC) Date: Wed, 29 Mar 2023 12:53:33 +0800 From: Baoquan He To: Lorenzo Stoakes Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Andrew Morton , Uladzislau Rezki , Matthew Wilcox , David Hildenbrand , Liu Shixin , Jiri Olsa , Jens Axboe , Alexander Viro Subject: Re: [PATCH v8 0/4] convert read_kcore(), vread() to use iterators Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/23/23 at 10:15am, Lorenzo Stoakes wrote: > While reviewing Baoquan's recent changes to permit vread() access to > vm_map_ram regions of vmalloc allocations, Willy pointed out [1] that it > would be nice to refactor vread() as a whole, since its only user is > read_kcore() and the existing form of vread() necessitates the use of a > bounce buffer. > > This patch series does exactly that, as well as adjusting how we read the > kernel text section to avoid the use of a bounce buffer in this case as > well. > > This has been tested against the test case which motivated Baoquan's > changes in the first place [2] which continues to function correctly, as do > the vmalloc self tests. > > [1] https://lore.kernel.org/all/Y8WfDSRkc%2FOHP3oD@casper.infradead.org/ > [2] https://lore.kernel.org/all/87ilk6gos2.fsf@oracle.com/T/#u The whole series looks good to me. Reviewed-by: Baoquan He