Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp195962pxj; Tue, 1 Jun 2021 19:08:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmgXXdL61wbqwEn2vLgVv3Kt7/dVWE5oQG35aTb3mVoYoMVp7mCh4yCrF+8ri9nGpJLVwU X-Received: by 2002:a05:6402:35cc:: with SMTP id z12mr35430123edc.154.1622599698758; Tue, 01 Jun 2021 19:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622599698; cv=none; d=google.com; s=arc-20160816; b=KCJ9up4bW3U1nj40vQ+e8q/eudoKKRMzlyaCuBVz47LET8gxNiv+luyhycGaMH7Q+d OhSnw6tUbPNA0Wc7nn5k8yli5oPoCwC5YQtFQZiUrnzP97txS5lYluv3OdMj00jrUvfb JMzQbpUhhWnfoo+8b7gcSHvzObOoT/o0dLQ1FR0k1bHGXChn57UN9/q/0qZwudydGDZC TpWWiPcwPCxI/RfgtuG5Rmr1YvISjX6RLNDajhKTOff72RKUuHdOlNJDgYQI6tuah2Er 10lqCOsAFh10TEd0vmyuuOkCT1Bals4mrbmt+CwYfM2rtR8zexadRBCGQJWDNlG1qiRj sn6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZRK2GM3ReeayEeNnkquErwxoqj+H9LZAfXy1IVZOP5g=; b=BlGjRzNrf/3UqMAy0CwRkMZC+bEYpfW5Ey9imrOuyhQM+ObPx1rkyIiiRjhfQ53l5c zbs/mCT7IRUgXV0k3CPOpYfh6CB2pylC3UDQAZrh026YCzpNoaXGpElz98Dinp8BaX6G LMUteKWa24nUVUkPb2PnIvY6925sM+C1kDNqnnSR1CX+uwCA0yiQHih+eZ8Yu561k0Zy ZBeo0AAPob0CiNS0kxlWIhxnzes5SNCFVIFqQ2115URLVeLRWfecTsL0xzIgp1y2rKGF Z+1Y7LqHC21W1PhcCAzqhqRBsW1Q1m1FoJ4kYvkJbQ9f1Sku1dl+4KgnPux64wFigzs4 JlvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Z5J4/Slt"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si658541edr.383.2021.06.01.19.07.41; Tue, 01 Jun 2021 19:08:18 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Z5J4/Slt"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbhFBBIX (ORCPT + 99 others); Tue, 1 Jun 2021 21:08:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:36462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbhFBBIW (ORCPT ); Tue, 1 Jun 2021 21:08:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9240161027 for ; Wed, 2 Jun 2021 01:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622596000; bh=jW/ATu8pEb4Sd//hBxYhELVxo4bcjLQROVsn3uX2jgM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Z5J4/SltIiNbmMf9YqCauwCkid2albzuuW512n5KnftVcKzsLK8m6MnNtC3xb0Zh0 HSkhgOiuZFFmeirh1cmbI9F0nH0RgOhCdSQClwu5nZLNwuwF+tlIl27om9CqyngvEu XxQtCF/3PZaV8lWITh8nZvrjPLbKKUrJ1VH4ZrGK54ylR7niK2je3v2TQMtTshW2/i 99TPXomLBFX0X6JrLJi/rc0pk4kyZ/ts1pmwuk4QlyLzBYzHL6nuxOCT4AJhL+urkX p0dVCP2J0Mrj8vVLu+M30f02k45YFyOqGpOz7nEIkdAJvEf62vqfxOj3abj1WOx0pz w86gwErmF+EnA== Received: by mail-lj1-f182.google.com with SMTP id f12so429967ljp.2 for ; Tue, 01 Jun 2021 18:06:40 -0700 (PDT) X-Gm-Message-State: AOAM5327PcGoG89TiZlC7aHj0rIaNxgH9WKfls+zclM35XgZ/W0Igfb9 uqKMOh6084fgHNw5mDTeeDWXbV2gIq/1mUTpRbA= X-Received: by 2002:a2e:9dcf:: with SMTP id x15mr23261591ljj.257.1622595998923; Tue, 01 Jun 2021 18:06:38 -0700 (PDT) MIME-Version: 1.0 References: <1622589753-9206-1-git-send-email-mlin@kernel.org> <1622589753-9206-3-git-send-email-mlin@kernel.org> In-Reply-To: From: Ming Lin Date: Tue, 1 Jun 2021 18:06:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] mm: adds NOSIGBUS extension for out-of-band shmem read To: Linus Torvalds Cc: Hugh Dickins , Simon Ser , Linux-MM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/1/2021 5:16 PM, Linus Torvalds wrote: > This series passes my "looks fine, is simple and straightforward" test. > > One nit: > > On Tue, Jun 1, 2021 at 1:22 PM Ming Lin wrote: >> >> + error = vm_insert_page(vma, (unsigned long)vmf->address, >> + ZERO_PAGE(0)); > > On architectures where this matters - bad virtual caches - it would be > better to use ZERO_PAGE(vmf->address). > > It doesn't make a difference on any sane architecture, but it's the > RightThing(tm) to do. grep -Rn ZERO_PAGE linux/arch/ | grep define s390 and mips do use the "address" of ZERO_PAGE(address) Fixed.