Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3780111ybp; Sun, 6 Oct 2019 20:15:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpzQb1k7SeKCMKBPVfkFZYA8avUxZMeTehP+h16W/QBPUbeIMhSFSfkuV+HL9W+Ds5LhDL X-Received: by 2002:aa7:d295:: with SMTP id w21mr27184538edq.302.1570418128374; Sun, 06 Oct 2019 20:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570418128; cv=none; d=google.com; s=arc-20160816; b=CtlKGHeRb/VUW6FIRcZyNhI9p85Fa1mZhX1v2tc5lgT+GDgQfpa3MUUH0sY/Es/e1e 4TAzepaEUFoc9xg+qmYXtddx18MlR3wnjjunaoPdaVSHPXJGWBvmmnLE5GOA8ImprnZS tKqd4tagwKlqzSmJarktuwu3Bbt+plPYPhMWzmoNMQnf4UoO8LD84wkULNehmwTEVRtW GTDcdABgoxQ0L0xV6D+1RA9PD6bITjDsuvaqnRHcjdKj5ifXjb/cnx0AN4A5wRajImk7 vDRZHiZGdLAF8zsX2XDRcTe1vMW/ATsm7e8xC46G2jrESmCpJNBPtWt+9oubkPJQicU+ BLAA== 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=KYWjgTw5GkrwHymLyJCkMr92dUNrlshJ2F++JeqwTfM=; b=ZL52xjFveUQtpYvrLSdQhSiyZpkMSYK53ZI0eC4zh86gPP0+Yo4j53zTDcL0J7QG+L vkZleOj6aYyMRlyCrOtAKdGjbX3cJ5cS5HbqdaecYJDZ7teSTfhReATJjcY05kSVJsBf qTVuylxotJqr7uacgIPcJQd24AP5+6f5xZDtTWd6FTJJMG68evMw24pnvlVD8NegfARe yS6BY6g2Uok28F3wbfOMeiLW1sowY2IZDyFwV1fkjRRoutLkHDQJIDe4JbkVTTkwiDG0 8RxEQzL0gC70Vj7ozlqWCTUDWqRpCnsnk5QLL/SIhMEeypQbbVnzXENKyzIgdqm4M4nP Zyuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=PlOETn+6; 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 w18si7887454eda.445.2019.10.06.20.15.04; Sun, 06 Oct 2019 20:15: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=@linux-foundation.org header.s=google header.b=PlOETn+6; 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 S1727103AbfJGDMy (ORCPT + 99 others); Sun, 6 Oct 2019 23:12:54 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38528 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbfJGDMy (ORCPT ); Sun, 6 Oct 2019 23:12:54 -0400 Received: by mail-lf1-f67.google.com with SMTP id u28so8137191lfc.5 for ; Sun, 06 Oct 2019 20:12:51 -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=KYWjgTw5GkrwHymLyJCkMr92dUNrlshJ2F++JeqwTfM=; b=PlOETn+6XP6GogbseS1eada7ZC/+jLxJP+MQfcH+4KhnaLD+6vgIQ/uMIIW2W9xdBJ y/41fuZuX5dRGnHr9WX5qOggV8VhkLc+0+KHywTkQJ7HT2a/n9EX7ua4fqHF1WX/ykdb 6sMZfuQaEiLs56OZZqdLOBJrlXUr42OLbFr5I= 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=KYWjgTw5GkrwHymLyJCkMr92dUNrlshJ2F++JeqwTfM=; b=rdTee0FprC7vfDLr3kz4Iw6ujqnL28R7RK/csyxfi809jAZGbEJi06DkDhL7nN0K3T ej9DhWlzQX3VDJp4LXSdaQdNG1rC7UXr9r3cbcT8XwDPX4qDHwuScFh6iMKDt1CaAh+v XRJy4u/MY1mNcVhV1cYLyhW8AeOamonhCUotP+1hpVJQtiIdhLufXFVoPA6GVjqpjx3+ fGGF7t1sMLR8Ax1KovJ4Fk1ujzw4nVjerhL2tKA12RhrO4JxPQudkDmBdxQVAMjzLQmX d0tr2I0Yx+6WLKUy+pHnbzLL0IcNTpfL1YPtjrJg4hZX+4xo/0iHVoyQPS9KfGtJhfv/ Nojw== X-Gm-Message-State: APjAAAVneIpOi81QH+suKl3DnJzLVJK8M6AZE2A3htUri45dyPXuU3aI AAk8QRViuKMIhgC1SAKuI+B8/yh2T+8= X-Received: by 2002:a05:6512:75:: with SMTP id i21mr15114937lfo.95.1570417970472; Sun, 06 Oct 2019 20:12:50 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id z18sm2779291ljh.17.2019.10.06.20.12.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Oct 2019 20:12:49 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id m7so11980862lji.2 for ; Sun, 06 Oct 2019 20:12:49 -0700 (PDT) X-Received: by 2002:a2e:2e17:: with SMTP id u23mr17071874lju.26.1570417969062; Sun, 06 Oct 2019 20:12:49 -0700 (PDT) MIME-Version: 1.0 References: <20191006222046.GA18027@roeck-us.net> <5f06c138-d59a-d811-c886-9e73ce51924c@roeck-us.net> In-Reply-To: From: Linus Torvalds Date: Sun, 6 Oct 2019 20:12:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user() To: Guenter Roeck Cc: Linux Kernel Mailing List , Alexander Viro , 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 Sun, Oct 6, 2019 at 7:30 PM Guenter Roeck wrote: > > > Mind humoring me and trying that on your alpha machine (or emulator, > > or whatever)? > > Here you are. This is with v5.4-rc2 and your previous patch applied > on top. > > / # ./mmtest > Unable to handle kernel paging request at virtual address 0000000000000004 Oookay. Well, that's what I expected, but it's good to just have it confirmed. Well, not "good" in this case. Bad bad bad. The fs/readdir.c changes clearly exposed a pre-existing bug on alpha. Not making excuses for it, but at least it explains why code that _looks_ correct ends up causing that kind of issue. I guess the other 'strict alignment' architectures should be checking that test program too. I'll post my test program to the arch maintainers list. Linus