Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1969445img; Wed, 27 Feb 2019 08:26:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IYFm6I2SovbvSJeX7Kpeiqsq45h0EZALq/REJOGpj6lgwhdbiQf5p0/jisAHecI7BmoECEg X-Received: by 2002:a17:902:be02:: with SMTP id r2mr3011953pls.209.1551284816220; Wed, 27 Feb 2019 08:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551284816; cv=none; d=google.com; s=arc-20160816; b=gEtVllMVojfKgKvx/Lap+z2jL7i7hHcbB3JviBiRLQKAvHjPCH6NL3MDmdJjQ6wt0j ygW0ORn8cmsuPCI9SV7eyUexqXvOhmBwaLN86VrDt7ewCuUTB9zLZH8YGTxhtv7XiVEy 9AWoLe1qV9snsnAJnmQgTIXNhtEKH/myzOCXLG5uMvxFlPOmXiydmKy/GK/Y3DNojeNe A3bPkVhU17lX5H13eTmv2+Egbq95KNZS9LswwIi/ZVMeVphmzqJ7UwPZWG+/XZwCr0TB SHqrsFB7uJtB0gzBQrHsINO4cxLKYS4o8QgrUxrpB0og3mSySV1Rd7E9Y3f7f8R93foK kHtg== 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=0djYkdMavFxoz/THKVe2hUSfl9fmomvVQvt2WEt+eUI=; b=MWGpfrYzU8XLjYrG8NgVEYcgbTAEfNOXUGbXFnv2hj9zSOVqn+zqUHMSyH2077LKrq qZ/8OF2diY0wI+JeNhw88bzilEJHVxFK1J7ZEIuOpsinqmsgFZJJFbwOi3ZqnJG9+Z8K HkK/tcakaIhBNXe/x74j2wCpetSNju3uecpra0/lgf++3J0KJqaEWTmaUT9G3hpXiSrK FNB7vGqFIrRReY2z/nOjYUGxcUfYIIblvGOZtDEtEGfhC/+nauz+MuVeeG5wgZVZFYB6 X19HFQwuxi/an4JSB/++DK2/WaSxYKtLK+ggY0wOcpS4Ti3zNO9QhCRIIDY3AeO4Q4bM AcZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ehfWuSXE; 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 f22si14308115pgv.578.2019.02.27.08.26.41; Wed, 27 Feb 2019 08:26:56 -0800 (PST) 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=ehfWuSXE; 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 S1729943AbfB0Q0S (ORCPT + 99 others); Wed, 27 Feb 2019 11:26:18 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:35594 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726223AbfB0Q0S (ORCPT ); Wed, 27 Feb 2019 11:26:18 -0500 Received: by mail-lf1-f66.google.com with SMTP id m73so7401080lfa.2 for ; Wed, 27 Feb 2019 08:26:16 -0800 (PST) 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=0djYkdMavFxoz/THKVe2hUSfl9fmomvVQvt2WEt+eUI=; b=ehfWuSXEXxLj46LjvPhyqf7lTKmuT+T22aj8Rkb5b2h5ON12wqhqsBzJPSWOwMH8kl R57eG7WRxp8Cxbh1tbtapn7C4AlgoM6bgOT5MzOTsxENOy0HlRH9MH9yPCdLEi6am+0t vccTnofAp6jZOvrUPDlIYjvvfHCECZq7sYSAA= 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=0djYkdMavFxoz/THKVe2hUSfl9fmomvVQvt2WEt+eUI=; b=HXNWtnA6UgWkm5OvS8fsyzHVuEIv9PKVvUVjdPYZqEC0gWiQ0lTEtjzAoLsoy6T7kK Zu8sP6sqRO4AP3096avnPwyrAa8Be+pGxss20tzIHcUzPrbNaRfZDnMzYxx2KBEF5khH bXGSozo5SGqJhVn/QZ0HFxZGcxhajU4i/WRbPiajyecR4AMSJ82wy+4dF7FiT7LNhHWO n+SJ64GABDxC9G8YbVvK/g++FGvfGzsyvOqStSiVj2DtiZiIXd4BrhLo5Gvy47VKS6QG YTMNJWNN6yP3OcMuw+XvHO3AEGijzFLcxnStEkVi7LmZQItWtTEQbceuKyS35Xt/lYgm KR3g== X-Gm-Message-State: AHQUAubEA+p2Hf2DihvcUSSYrXEdmqaQt+KQVvUAZVhqrqgb5Z39+H/U Fv+svHpfjdmqJwJbhjagoPtGiBm4W+M= X-Received: by 2002:ac2:5390:: with SMTP id g16mr1522625lfh.12.1551284775598; Wed, 27 Feb 2019 08:26:15 -0800 (PST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id a26sm180314lfl.45.2019.02.27.08.26.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 08:26:15 -0800 (PST) Received: by mail-lf1-f52.google.com with SMTP id x206so4953591lff.3 for ; Wed, 27 Feb 2019 08:26:15 -0800 (PST) X-Received: by 2002:a19:3f44:: with SMTP id m65mr1359682lfa.136.1551284317220; Wed, 27 Feb 2019 08:18:37 -0800 (PST) MIME-Version: 1.0 References: <20190225124330.613028745@infradead.org> <20190225125232.191698923@infradead.org> <20190227140830.GP32494@hirez.programming.kicks-ass.net> In-Reply-To: <20190227140830.GP32494@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Wed, 27 Feb 2019 08:18:21 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/6] objtool: Add UACCESS validation To: Peter Zijlstra Cc: Thomas Gleixner , Peter Anvin , Julien Thierry , Will Deacon , Andy Lutomirski , Ingo Molnar , Catalin Marinas , James Morse , valentin.schneider@arm.com, Brian Gerst , Josh Poimboeuf , Andrew Lutomirski , Borislav Petkov , Denys Vlasenko , Linux List Kernel Mailing , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov 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 Wed, Feb 27, 2019 at 6:08 AM Peter Zijlstra wrote: > > So KASAN is wildly unhappy.. Yeah, well, with KASAN you definitely end up doing lots and lots for calls for just regular memory accesses. Which we obviously need to do for most uaccess cases. I think you should just say "ok, kasan reporting will possibly run with AC on". Again, having AC on isn't fatal. It just makes the window where you can incorrectly access user space through a wild pointer bigger. So the whole "run with AC on" thing isn't a big deal, apart from the scheduling case. And we know how to fix the scheduling case by just doing the save/restore thing.. Linus