Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5197808imb; Thu, 7 Mar 2019 09:49:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzydq52NJtHNOtSYDzOLjjA7A/jtFYPV6ueyznMEYaubGSTBKdDLZMmbb9Kmxme6ejJKnHo X-Received: by 2002:a65:51c3:: with SMTP id i3mr12317209pgq.45.1551980997025; Thu, 07 Mar 2019 09:49:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551980997; cv=none; d=google.com; s=arc-20160816; b=C5vcYIqvNPGf3hCgZGAlu8yNa0AgewZGyWSIu8sIZuj3Lp4WNJZUlTaCNQytCfktJ+ aS7ItTzbOc5ooUgLJc8LJaFuUDlxlwYbBo3uFt7ollB15gyfI40tui7/xSOOrhvsCUdl MVHGHuJAlaOZsqA3Az4NVLYswcmsmQYGEdm3T4eHJNHGTxy0XeD3uAgdL7mI2XgZeiaQ lk2251Qn68+6KhclGWs9ncLnbZqlwGNZlBcwyQWIV3dMCWiVs0Sa3FjCIw7dS1/jQNHh exB5Y3VN3+EJBlOVhPccNrTRKhEmJAkBe0aJYy99hMBEedCGthimNaXRbFhxQDF8EHe3 p4sA== 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=f61htgF1/+YV01wdEKiD4NQ5/+6jtJJSYbuVhPUpTlI=; b=UCVsI4sanDeDLJNpPKDatcYGedlZobWboak1LppcukEIbayuV3gD3jxI9tPMl+ngah QMPkXcsq7+kusHFGT2xhpotOszSqdWZe9m+aOzPnTNr7CO9m6mYaDfWe4eUpWINZkkFg OtSCUKIxrGfOcv7RUd3M7B9SEXX3i0N4sCbvbuukOiUzXOGnAR4U/jVhImVBHfKuBf/g GHRwpiW0AvI0lmvPieKyJp1Z1t6Gf3W+r59Xs8W0R1GCcwGqfJWA4+pgAQbSclxTnBv5 jO9kEVyEZCli7gkDT4WZW9Fi4f/8TxG9eu5zatrzRHdjvUFWorF5MPB9Ghl4H3cYxXTu 1+tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QAb2wXwg; 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 r9si1961792pgp.193.2019.03.07.09.49.41; Thu, 07 Mar 2019 09:49:57 -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=QAb2wXwg; 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 S1726643AbfCGRsg (ORCPT + 99 others); Thu, 7 Mar 2019 12:48:36 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42900 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726425AbfCGRse (ORCPT ); Thu, 7 Mar 2019 12:48:34 -0500 Received: by mail-lf1-f66.google.com with SMTP id p1so12332887lfk.9 for ; Thu, 07 Mar 2019 09:48:33 -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=f61htgF1/+YV01wdEKiD4NQ5/+6jtJJSYbuVhPUpTlI=; b=QAb2wXwgdvQLeX0YnctQzgT0HazZBkIaz16vBXTmIG6bBw3wipPf+fE7ej3bvNmGzm j2CmeIaFpMw3O0Ng670MAboFMq/wL+ntsitWP1jp7Lcik/QttGWeBPnVgJNO4k6XucF5 v87yeYKoySLlgMzRroaGe5Cc9ZCUfSrqeS9wg= 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=f61htgF1/+YV01wdEKiD4NQ5/+6jtJJSYbuVhPUpTlI=; b=E6dJrqILIupUTVnbIdTWgpY0anz8gcEqW+cPZVVz0719oQ5id2fHu8RzXAgIXbifk7 RyjBJn8KKdBXpqFbDPy2REnfQjnNF3rwCbtU6BpEDHCfRddPx4t+dnf9Nv1BXCv2IK/Y 649+iDxF3AlzIgW7X/wNvHQme++jrI0hQ2XuAiXaCAN1jI78yKype7lRE1D0nYVeSati M5jbu4iPAwep7NnCDeG1j1UN/xYfQ+FLzZ/jZJKDJ3uINAToRqzVEzAfSMXGemNLj1gN lSY9RJsnX1N+S6W71fD61vPefflLWJmnJYi04k+zuXOpOglo5oPmh0Ck0bsf52Aih5XN Tw6Q== X-Gm-Message-State: APjAAAW3fjzO9+8fH0w4+w5+9XZkzCFTSuhcQ3c9FCR+IkyNz0kPI+5r vBmzBHYtYbxgmNzY0vfEsGCYahbett8= X-Received: by 2002:a19:d602:: with SMTP id n2mr7662781lfg.165.1551980912208; Thu, 07 Mar 2019 09:48:32 -0800 (PST) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id v20sm928921ljv.83.2019.03.07.09.48.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 09:48:30 -0800 (PST) Received: by mail-lj1-f180.google.com with SMTP id v10so15008684lji.3 for ; Thu, 07 Mar 2019 09:48:29 -0800 (PST) X-Received: by 2002:a2e:208a:: with SMTP id g10mr6564724lji.135.1551980909153; Thu, 07 Mar 2019 09:48:29 -0800 (PST) MIME-Version: 1.0 References: <20190307114511.870090179@infradead.org> <20190307120317.GD32477@hirez.programming.kicks-ass.net> <20190307125526.GB32534@hirez.programming.kicks-ass.net> <20190307131312.GC32534@hirez.programming.kicks-ass.net> <20190307164705.qbu4ytdfdmsighas@treble> <2F80FC70-5D2F-425F-BEB5-D70E981CC684@zytor.com> <20190307171829.xww7is5qja32r7ux@treble> <714E9D57-CCAE-4A69-AC3E-E6AFC525834E@zytor.com> <20190307174556.m7nh2y4wt3lbhuxd@treble> In-Reply-To: <20190307174556.m7nh2y4wt3lbhuxd@treble> From: Linus Torvalds Date: Thu, 7 Mar 2019 09:48:13 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/20] objtool: UACCESS validation v3 To: Josh Poimboeuf Cc: Peter Anvin , Peter Zijlstra , Thomas Gleixner , Julien Thierry , Will Deacon , Andy Lutomirski , Ingo Molnar , Catalin Marinas , James Morse , valentin.schneider@arm.com, Brian Gerst , Andrew Lutomirski , Borislav Petkov , Denys Vlasenko , Linux List Kernel Mailing , Dmitry Vyukov , Steven Rostedt 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 Thu, Mar 7, 2019 at 9:46 AM Josh Poimboeuf wrote: > > Is that possible to do in a C macro? Doesn't seem to work for me... The meat of that macro could easily be done as a helper inline function. But as mentioned, I think a better option would be to remove it entirely, if at all possible. The best part about that config option is the comment, and while cute I don't think that's really worth saving it for... Linus