Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5210046imb; Thu, 7 Mar 2019 10:06:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwpmnkgJUPZEpv+5jI5VjoxsjK28ckxdowXmF1Ht+bYjABUtKXzphtrai1C5oBIUm2xTFYo X-Received: by 2002:a62:e204:: with SMTP id a4mr13842646pfi.225.1551982010050; Thu, 07 Mar 2019 10:06:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551982010; cv=none; d=google.com; s=arc-20160816; b=rNdGxvl2pV4drDry9KHB2l3x6XybyK00X14lvo0uqLj3wbmsl3lsjFpA3UPW7k/bUd herx4QqpB/BpIBHSSH9q5yISZj+2imR6HpElcnCDtSPc8d8a5brx5EVzwDm0Jkt28wJh fpCHLhujo3cw1jjVpVCNkRTEhOyuET4XgwgTuwaGa7Qp0Lk09bnthscpqTFii6/orOO/ U+1ClUddTcyeVmMHkDp9yB1UruDMIJzCjso9zmPIg1+ue/ilaFijsBkQ4zGnSdBz1abR FWquMwCYcXL2ks35gEKq2Hz/9az7IY9vEsmmwH9Z/jGun+og1b0KiOuXoqUISaYlIWrk BRWw== 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=v2cUVK3inPrvRVB8kdEpi8hS70rK4dnI8SLL7DHrSvA=; b=CwIAKXSXxcBq/AsjU4IMr5T5UJEBUl9ZhY6ouiHFZn2h/7A0fzfTG8qr77BUQbBTs0 WIXWkl19XLYEULW2lqhsvwlMXZCE5Pbp5oKzuGwOrz/65NA7PKKeKLikUx26pU35yXFX DuaruJ0RGiNYCnWZ/Nc3tRqTsKOhioexH72Rsj5g9ayhX3xZVdnFfJVkrGQATSGexdiR lly/9dXttGZYtBTg43j3mJM1GyItHUn64aoT+CZjkKyFXNqUj+K8jm+j88oaafiFfvSg 12Cux02tCBrUDMSiwSQzuiUPK8DBEeTkTWOKwNeR7r3SAukq36Y7+on370s4inWNZPGa QZhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=oeWffzbD; 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 24si4689195pfr.253.2019.03.07.10.06.33; Thu, 07 Mar 2019 10:06:50 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=oeWffzbD; 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 S1726286AbfCGSF4 (ORCPT + 99 others); Thu, 7 Mar 2019 13:05:56 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34040 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfCGSF4 (ORCPT ); Thu, 7 Mar 2019 13:05:56 -0500 Received: by mail-wm1-f67.google.com with SMTP id o10so7288053wmc.1 for ; Thu, 07 Mar 2019 10:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v2cUVK3inPrvRVB8kdEpi8hS70rK4dnI8SLL7DHrSvA=; b=oeWffzbDBkf7/O1cg7YjKOrZ+Q8JarUb0fE0P/xxCaSA1EEehlF5OIg2fooAiN9DN+ SbM7F62YjK/ai0N8mpy/UHrQAHCD6hHRmX2tEybWkB/rxPHXHACVXnU4CSLYVR8psccV 2B4Lh3bhp4hnL4XeEA+2vgveV+u5Nrhh4EBY8xRWv+Y7icJwbw0E5S4kn2v+BmP3v7/c cjUF4vXqNQsv/JHManj05FV2AHlVi+3CF5N02Jsnibi72Wbp/NULTpqQAWykfCtge/D0 L/Lf80zA+HYnxNeO3dZJT6h7Bk1+SPrejZM2Tg3b2ALBATSN5HAg6JU5JOs49hs11pZU SJQw== 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=v2cUVK3inPrvRVB8kdEpi8hS70rK4dnI8SLL7DHrSvA=; b=VTk6nPE+Jt8OeNpGN+PufOpohsEHJ1OqLs39y2nV2LusG4QHbTtloD0b2kEqG4hzUz x3FqyiErkiYxdCCPD0mXXdiKU40+SVy+Rk18naxVydLHxeYkraZUydUu8+FgqOiKRAzs 646B18xOQoa0y5tBvixjUlAlZr0BrBCoC+n08N05QIUqQA/iRZYHY8gdl89vF3RFWRTW CY29uDuJGHWDfrltG5FImRpkLcbQ8D3xvhVaayzW4CqSifDJJakWE1PeVXAlgqQoUyZ9 6aGDBWcxB4Z0t7WDQhScnczfXwFBtZkLlv1lrsRMm/zVpjvDI8EAfQawv41yaqT1D87o TI5w== X-Gm-Message-State: APjAAAXBCmjM7pOPvu+ABJ4Uzq1OvJgbj+auO1Q/uk5GsFMVxjNjNPez INuy+DI5/6i3VMJFYBhAcFseq2zaLCZ46cy6tmRZ9A== X-Received: by 2002:a1c:7906:: with SMTP id l6mr6352585wme.83.1551981954362; Thu, 07 Mar 2019 10:05:54 -0800 (PST) MIME-Version: 1.0 References: <20190307114511.870090179@infradead.org> <20190307115159.708180729@infradead.org> In-Reply-To: <20190307115159.708180729@infradead.org> From: Andy Lutomirski Date: Thu, 7 Mar 2019 10:05:43 -0800 Message-ID: Subject: Re: [PATCH 07/20] x86/uaccess: Always inline force_valid_ss() To: Peter Zijlstra Cc: Linus Torvalds , Thomas Gleixner , "H. Peter Anvin" , Julien Thierry , Will Deacon , Ingo Molnar , Catalin Marinas , James Morse , valentin.schneider@arm.com, Brian Gerst , Josh Poimboeuf , Andrew Lutomirski , Borislav Petkov , Denys Vlasenko , LKML , 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 3:52 AM Peter Zijlstra wrote: > > arch/x86/kernel/signal.o: warning: objtool: restore_sigcontext()+0x3cc: call to force_valid_ss.isra.5() with UACCESS enabled > > XXX: move the callsite out of te AC=1 region instead? Let's move it instead. I looked at the code and it should be fine. --Andy