Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4756401ybp; Mon, 7 Oct 2019 13:29:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjh7ao7jLeJoEOvHWpuQOUNvzswojVjknwDVr/bN+/tw4GhDeznOjdWlsPh2hQWfffRFRo X-Received: by 2002:a17:906:3495:: with SMTP id g21mr26085944ejb.100.1570480182043; Mon, 07 Oct 2019 13:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570480182; cv=none; d=google.com; s=arc-20160816; b=dl9tHCqCdoihKGq8Po4bKLcwZy9WsFar8Spn8Sw7Fy56WL6JiaXM9Wz6JMFMUK2auT Imrc9nWQAAw9I2y7St08a9IR9SgbO6DSTbz78zws0Dik48puU15dmuClZEGKl6gEHNPI GU7rmAf2XohfZgMax9PMBt2Wtk3pmmC7dAVLfhXttOXDdSWuKv1/wxc8y2/4jaQbtgqa +LLhuPjzcMdro4TyjwctzFXwOt0FtqlCp/BvD4GnGnU2TGedYWFCskPRwKt50ESEyCiR pEYN6DHcAAfyrcnNoXXC3KmMDQbV/fjaTU7ZUeZmbIIMpZnCd2c7xRa8d09YYZiFSJmA Hw4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZFOuCP3sXp2fsVblkrQwOzoxyHvp4R+XuB9fZ/Vu8ZU=; b=sEl/0yaPJenCwQrjV4X8MTW41/S2ZSPxmRs5m8NyUgGmPP4Q7Qbk9OiAEG7QYpqmG2 rnVm009wq3hCUqnfGjotAtIn3B94aiRbRKT7OyhJjFFgqbDM/hk02XH+9LLfKB/l+u74 ClhR7jn1T8TtlDqM9rERKQyMIPCId7vPf8IxPhMuNJdK+GUdxSa69FRjjErFS3akUzG5 6+o4vVWCwcMCYOfsQeiVKu8/37JHVAqOOxQye/fzsD+IQzwqKAiG5x5nmcphpk2aZcp/ Ji/nZ77M50puXRJ9ZMuhkECQ5NoVWp8cBtKWDynimYuue09AYQA0EZ7/pc5UiQGBQl1T mP9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=VGdsksVW; 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 h12si7691173ejj.40.2019.10.07.13.29.18; Mon, 07 Oct 2019 13:29:42 -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=fail header.i=@gmail.com header.s=20161025 header.b=VGdsksVW; 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 S1729206AbfJGU3I (ORCPT + 99 others); Mon, 7 Oct 2019 16:29:08 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:42632 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728187AbfJGU3I (ORCPT ); Mon, 7 Oct 2019 16:29:08 -0400 Received: by mail-pl1-f194.google.com with SMTP id e5so7400790pls.9; Mon, 07 Oct 2019 13:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZFOuCP3sXp2fsVblkrQwOzoxyHvp4R+XuB9fZ/Vu8ZU=; b=VGdsksVW71vX+BKGmieMYsDbkj+u4cErcNDxcLs/bf+5iEU9IgY0PBFsgW//Tf8icY 2yOZFk2xNEqog8+dzpp1YNhc62r5kvFydUJNKVxRljxr51BNtmwP3ins+jSyc7WPcoRy /bsv6q2rVaUn8Sra88nEx+TWNY/6Cxqo8+w3tTys/Da6PS3vCSmPjKVNaen+FbcYEEuf uFU+G/ZCW75DVFQbzkJlCkjpWz7W/AQg2S0yPiUkmskSlwsEbqLexHs+HhnNOZnmKocH 8+n6LbgvLBmf4YcL6pB3LNng4KO/sO0N060xnXOHfSOFgewF8FQqWBy1a4uL3q/rkubm rewg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=ZFOuCP3sXp2fsVblkrQwOzoxyHvp4R+XuB9fZ/Vu8ZU=; b=kZ0aIfWJ7GuPk1BAWeORWk4LnY28ZdJetDUorC7evLABkJhcLeEFIonvUG5ynpBvPj DWJKRGUK/SLMo7MCHzqcbj62btrCZ/RadWAuDdG4NoBsqppCYtbo90SjnZEJZn8IRj9x vb5/skiWG5ZtTG0i79BhZbQ+XzKEZ8FfwtNzyV8Er4cLgyJKUimbSnOo+EMuMbOR26tI lA8bm0BxVFg0FROS+10Ua36d34E57IeNXnuvoK8NeBAaA0ikLxTpuh8ETF2YOxVNdO4q UaEfv9HMFNXXK2L+q5vvV/OinAF1T0cBrEqH8k3GF2Wo9pEL4lJmo/XMYGR/+fY9ahrj lrpA== X-Gm-Message-State: APjAAAVSODJJt5MJhVJVV8mIfnsUtBDRAttAS+pBzmEjeFO68geIxK8x 98QOTjmMHYuz5sf9OurCkjTikgq2 X-Received: by 2002:a17:902:8f92:: with SMTP id z18mr31425916plo.248.1570480147298; Mon, 07 Oct 2019 13:29:07 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id v9sm15578806pfe.1.2019.10.07.13.29.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Oct 2019 13:29:05 -0700 (PDT) Date: Mon, 7 Oct 2019 13:29:04 -0700 From: Guenter Roeck To: Linus Torvalds Cc: Michael Cree , Linux Kernel Mailing List , Alexander Viro , linux-fsdevel , linux-arch Subject: Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user() Message-ID: <20191007202904.GA6883@roeck-us.net> References: <20191006222046.GA18027@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 07, 2019 at 12:21:25PM -0700, Linus Torvalds wrote: > On Sun, Oct 6, 2019 at 3:20 PM Guenter Roeck wrote: > > > > this patch causes all my sparc64 emulations to stall during boot. It causes > > all alpha emulations to crash with [1a] and [1b] when booting from a virtual > > disk, and one of the xtensa emulations to crash with [2]. > > So I think your alpha emulation environment may be broken, because > Michael Cree reports that it works for him on real hardware, but he > does see the kernel unaligned count being high. > Yes, that possibility always exists, unfortunately. > But regardless, this is my current fairly minimal patch that I think > should fix the unaligned issue, while still giving the behavior we > want on x86. I hope Al can do something nicer, but I think this is > "acceptable". > > I'm running this now on x86, and I verified that x86-32 code > generation looks sane too, but it woudl be good to verify that this > makes the alignment issue go away on other architectures. > > Linus I started a complete test run with the patch applied. I'll let you know how it went after it is complete - it should be done in a couple of hours. Guenter