Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4650608ybp; Mon, 7 Oct 2019 11:37:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSH+6pgaOyhDOneYUj8Dhick93VtDS11zheQ8dMBR4zJOVdKwgOP3FLHk1ZUlGU1/8U663 X-Received: by 2002:a50:95a3:: with SMTP id w32mr30223228eda.211.1570473448583; Mon, 07 Oct 2019 11:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570473448; cv=none; d=google.com; s=arc-20160816; b=IpH4qmVMDH7b6T5MJcU0EQ1Sv3KlokpGxCywtyRRg4/Uo86lGFeVBgSF1IVNgHSq68 nYdLWhf2Ej2LtJ+8OTbOJvSfbTKTm6x0q3Vr34d47Iu24zHRMoQ9OIHnS0dahG1RDPu/ YYC/OpRXI9UGAbHrRX3Gs3oNBKSNrgT84UvQ2P+JPhsuWeyZ3hdsSZedfkcePPnEws/P mwcoAqhgOzRFq1HVmeXhx3/hidJPmDLm6GX4xChw840TOrp2KiWIsrGNfNpJPZOGfdt5 51UEaD6UbHp7dX/7+ntsmYD3q50QZGrolKSMpnEI7BE9Zd2LXJJ+5Vt8TZF6vWaUNQqB 9C9g== 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=fXL8J/OQJmreiyptvpgxHievcJo6KOM1a1ady8Gq0qE=; b=jl1YRCAIwZ2gqubiWf6XVxXaeNyQe1JeV2gZxQkJ/0meIKHOWnFsjs4cBYXKt2ZRXG e8fs06h0VYlSZ5wvMU9dP9GmnALL4MBzSFdJ3jFAd0MUVJ/6CCRn0DnqW9jnBBpl2aIq p7/87wRk4ChgHMXlivaZBEaUO3MAx7jW3dL2IkiHnu4XwXFfC6w34l0Wyg3AiT03yV/M NcNEJnbAxlZNxcAPoy2TW13ULX70X4O4lUjANFKdPB8gDNIYn8CiUXFFRoQ8iEDWX+UL 8Ix9UBrHMtf+sFt7b7y+7RwcXBCr5MD7F6zY90bHLpPYRrc/oMFnU2EiS5MBMcSbm3S0 VY5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cgP9FKCa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si7471952ejz.242.2019.10.07.11.37.04; Mon, 07 Oct 2019 11:37:28 -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=@gmail.com header.s=20161025 header.b=cgP9FKCa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728387AbfJGSg4 (ORCPT + 99 others); Mon, 7 Oct 2019 14:36:56 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:40883 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728081AbfJGSgz (ORCPT ); Mon, 7 Oct 2019 14:36:55 -0400 Received: by mail-qt1-f193.google.com with SMTP id m61so9589330qte.7; Mon, 07 Oct 2019 11:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fXL8J/OQJmreiyptvpgxHievcJo6KOM1a1ady8Gq0qE=; b=cgP9FKCa+Rmg1fTWx4Msi4HhEyQYM8Leky4PtPKPdo9NVLQNF7g+tQice2NdsF1wle 7dMOsp5hA0jBv4ORML7x3lEzYii1kVHIj43FMVWOP7GiA83bcRuJCWAQAaAD9VMiPrvr Q4TlQdpN5rBvYAGZzCI8xZtC0U28TWXpzW0r38zOei3eZDv+iAhBrWsDAkVKaAODQrx0 dm5G/+su7Y2HRKWxoFPFq9b1JFxMLf40knrHIHJjUdysI2s9YJSHzeuBh8+A3P33RZ12 oMjBE6ZB562H0IZx8QoH5hbAdYn4ah4LsJ0gVqNjUzOWIqn3nyvY7+KSV3YUZKDgNKDK v1ZA== 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=fXL8J/OQJmreiyptvpgxHievcJo6KOM1a1ady8Gq0qE=; b=BjKfLIbtxA9rSmyNR7lGC9QPxwgB+HxZ1ZydLRFeSAXN/DBL5XsJgdv23IjPd6Aa42 lKcmFeEsbOJcwIauEDzDKn12k3EN/YYGYOQpJKiM8SHn4279Sj5wy20lvNAgRybw61Lf oYFig1eLb6oDnwrLc5U4RLWKcVsxotHtRsrd1wBvw7YaXHztL/N+H0qemHXjvN0/PhFG qRjpPbZAsYHx5Y68ysz6l0v9guCBe/ApO/3NQmsGRdAI7fsltmF6figwW0QCfyBzUtsL VKC6cSVplHPZzWe056WDhVBKkEqJ+9IDBqZpayQSSwFa7EIlHkHQIwOu3HjrG6rpRFfA OLHQ== X-Gm-Message-State: APjAAAVYR9Ld45rNtvDHSzNB5YYFGH6yR1Mdl/VPwC3UgMMI3AuEHVO7 EgmecaPi/QVEYqIQ/iZ9shykGNACM5D2l9xh5ZF2QnMJ X-Received: by 2002:ac8:2aaf:: with SMTP id b44mr32435987qta.359.1570473414763; Mon, 07 Oct 2019 11:36:54 -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: Tony Luck Date: Mon, 7 Oct 2019 11:36:43 -0700 Message-ID: Subject: Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user() To: Linus Torvalds 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 11:28 AM Linus Torvalds wrote: > > On Sun, Oct 6, 2019 at 8:11 PM Linus Torvalds > wrote: > > > > > > > > The last two should just do user_access_begin()/user_access_end() > > > instead of access_ok(). __copy_to_user_inatomic() has very few callers as well: > > > > Yeah, good points. > > Looking at it some more this morning, I think it's actually pretty painful. Late to this party ,,, but my ia64 console today is full of: irqbalance(5244): unaligned access to 0x2000000800042f9b, ip=0xa0000001002fef90 irqbalance(5244): unaligned access to 0x2000000800042fbb, ip=0xa0000001002fef90 irqbalance(5244): unaligned access to 0x2000000800042fdb, ip=0xa0000001002fef90 irqbalance(5244): unaligned access to 0x2000000800042ffb, ip=0xa0000001002fef90 irqbalance(5244): unaligned access to 0x200000080004301b, ip=0xa0000001002fef90 ia64_handle_unaligned: 95 callbacks suppressed irqbalance(5244): unaligned access to 0x2000000800042f9b, ip=0xa0000001002fef90 irqbalance(5244): unaligned access to 0x2000000800042fbb, ip=0xa0000001002fef90 irqbalance(5244): unaligned access to 0x2000000800042fdb, ip=0xa0000001002fef90 irqbalance(5244): unaligned access to 0x2000000800042ffb, ip=0xa0000001002fef90 irqbalance(5244): unaligned access to 0x200000080004301b, ip=0xa0000001002fef90 ia64_handle_unaligned: 95 callbacks suppressed Those ip's point into filldir64() -Tony