Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4733816ybp; Mon, 7 Oct 2019 13:05:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvTlweiX33V0V9GrI5og/Xn9Hx2Gdsk+/fCtvUxP2v7HqEsjA54nyZJALH0hRtdZZWxwS5 X-Received: by 2002:a17:906:7798:: with SMTP id s24mr25982336ejm.211.1570478738022; Mon, 07 Oct 2019 13:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570478738; cv=none; d=google.com; s=arc-20160816; b=LdfOT8TuO8dzeB4+x1kXJooh67xsXKAYu5YQt8eOssgmcO60/KCM21Bpa6zCVkfoHA Q3WW90TI3doQnM/G/qb1rzGC8rS+djhsJsXqEPbP8XZgmpQvjhVdDEFxplatSpSxaPta X6lFeasBSqHBNvVEK4fz+tVVc2wEcXIo25gs/Um64dn7u6ZxLE9bgj6KBHJKqO/UhEi2 MM8jZ6Kvw4gEjJ0S2FoiOkWmCtFosaOCNpJTzGgbdRlk0HutYNN2+ItjfBtlwR6h+Ebk osPZN1ld9wXNe04qUpCMn6cKl4EMuX/T/dsiRUT9QBGXdouSUN2e1faUOtImqvbkyaHn CVVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GePA4mA7sQIEG3MZZwlVQLPV66eifOkmE3PgU1n0qK0=; b=NrWuHi87EY43fB9ZPjjKmNs1jS5oCAoTexAX0qxE94ldhZnjB65Pv3hktBCqhoGv79 NZA52/HyDfAzAQCFKarsAWSxB88dezOTtUj7BLOqryUubMjl19scLcsThDcIoDSb4C+g o/8DXyr5tqZHIOA3D7UHuubxeVTSY+3r2GOa/V1zv035e42h0QVzdMHsVBAxvc9qp6+v uJ8yLIr0XGoIe4gGyOU+idEqam21z3nXRlQ2UYLVFAC6T8l090e7E/1Dga5uqRiMPlF2 KnIWQRB4TU81iUn7nM3pG1gWWIv95ig6sW1Ve2pTawMES3X/kbEo6UG7rLf3oZtz0nFv mrWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OzoZMg8b; 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 i40si9249532eda.225.2019.10.07.13.05.11; Mon, 07 Oct 2019 13:05:37 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OzoZMg8b; 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 S1728567AbfJGUEz (ORCPT + 99 others); Mon, 7 Oct 2019 16:04:55 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:36078 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728187AbfJGUEy (ORCPT ); Mon, 7 Oct 2019 16:04:54 -0400 Received: by mail-lj1-f194.google.com with SMTP id v24so15074051ljj.3 for ; Mon, 07 Oct 2019 13:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GePA4mA7sQIEG3MZZwlVQLPV66eifOkmE3PgU1n0qK0=; b=OzoZMg8bsThH/7YIIYERa+GnGEoGVQOmOpZZdz6Wwt94Bq5dPr5CAjoh6XGWzyvJ5e 50FMWPp8sPelV93ADS+wQ5tvxWRniBO0qj+eWq+cQy18boRXEd0PKM1UgyHKVhaZQarY zh5t4iLJHEVqOHZA4vr+iys3VqD6HhTC6RMqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GePA4mA7sQIEG3MZZwlVQLPV66eifOkmE3PgU1n0qK0=; b=UJat8b7sVYJ4rdWye2JagAQ8Q5789Ni1Z2CbTfm0BmjIW7UCxvfI8GrfoWjJHI+jUf QxKlKcctynlASp0PxnQgG5P+oIyXWPUUsdYQyHhwil7jCuFH+YKIMx2nmX54XhTYdktn C7AAY2IhKWszWFbHiGkhFZHvTRF7SGGMHOnqbxDARSrjXjl3bNuo6etPd0yPlls5ZLAn 6RGFJYvZ8K3LZVAl9PtxBRXqkhFhYX4YsiUKtsQZQ/Lboo/N4hA8fXEGhS4mESMV6PKi gvBYkJEBAg+qmylGxS3Edd4IIBEeWqht9IceJx0tt3VMolR8Ks7Kj7KWAKGj7vY3P1S/ 2eCQ== X-Gm-Message-State: APjAAAVOf3HydAlM/uESE0zQPQ3gDx4OTH2gEl1oymujLn37m1hXcb0L 5gq6U1v0Na1MGtFie6iyRKYu4TiAc9w= X-Received: by 2002:a2e:7c09:: with SMTP id x9mr20487542ljc.87.1570478692418; Mon, 07 Oct 2019 13:04:52 -0700 (PDT) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id z14sm3313066ljz.10.2019.10.07.13.04.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Oct 2019 13:04:51 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id t8so10133005lfc.13 for ; Mon, 07 Oct 2019 13:04:51 -0700 (PDT) X-Received: by 2002:a19:f204:: with SMTP id q4mr17645967lfh.29.1570478690784; Mon, 07 Oct 2019 13:04:50 -0700 (PDT) MIME-Version: 1.0 References: <20191006222046.GA18027@roeck-us.net> <5f06c138-d59a-d811-c886-9e73ce51924c@roeck-us.net> <20191007012437.GK26530@ZenIV.linux.org.uk> <20191007025046.GL26530@ZenIV.linux.org.uk> In-Reply-To: From: Linus Torvalds Date: Mon, 7 Oct 2019 13:04:34 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user() To: Tony Luck Cc: Al Viro , Guenter Roeck , Linux Kernel Mailing List , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 7, 2019 at 12:49 PM Tony Luck wrote: > > If PSR.ac is set, we trap. If it isn't set, then model specific > (though all implementations will > trap for an unaligned access that crosses a 4K boundary). Ok. At that point, setting AC unconditionally is the better model just to get test coverage for "it will trap occasionally anyway". Odd "almost-but-not-quite x86" both in naming and in behavior (AC was a no-op in kernel-mode until SMAP). > Your patch does make all the messages go away. > > Tested-by: Tony Luck Ok, I'll commit it, and we'll see what Al can come up with that might be a bigger cleanup. Linus