Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2278197ybz; Thu, 30 Apr 2020 14:13:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJRkXeTExBV/u8tSjr8u0Wa5ZF6mC8426D2vhtaZdkJSuoZ5H65lXU/mqaBmqg5Tnz7Bf93 X-Received: by 2002:a17:906:1ec3:: with SMTP id m3mr418663ejj.88.1588281183343; Thu, 30 Apr 2020 14:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588281183; cv=none; d=google.com; s=arc-20160816; b=zzhv3P9AqhbFdWqeW8e+Sf4U5QVIfdB/kNmVpDcE3ipECGsQxzdCXrbms1TSwzcXLJ wVTUROcF2zDv9gwYeBRgHrpBJ3HN75o9vBU0rm72gibX582gw7f3IpD2G+30W8dmhHw7 qjQ5jBKWupGqboNV/qY58eGv7fwDPsZaMSYVIihM3iebvZlufRD6+sk4QVgbIWF1g030 NQ7+gyvO6zfAudb1IftirAR++Pa/v2btSqIqh+3Twnm4zafZhfznQ7IrJgSfN2I35qSs pG5gOyisKrh+vgpffFCMhnv9iKLZiIYol7eUnHwXfgBM+vnXwNHxqD1+Z6IMIazJePtT wVXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=YlN0br96igCeHtuNA7c7W45XZBUGLRWFSGtgdohoRbI=; b=IcltN23NxD6ZguhhuFWX5QHR/AdgaE9UkZpJuN/n2LQW66azkQcwGRPDUPojpeVaVI ie+9mUkEkcmotIgWJkVyqxBlO/RkSeCG0kU4LcMVfD2GRAWGf/kAFKIi83+YEUxyNJmS sWNDqYXlyZX0Cgr4ShCs0ucCVGxVz2lDCyY46Pd1t+ZtZgWMaPecmkcKanr9UzCsxFGo DrD+7t+EW/G2rKh1GjPb9wd4Dr6o1aPPPkacQJWM2s/BZI/qP/TmT+sq0doGncSRXWyE AHuR1vnLp1FLQxfZyF7PEs7PIZyrJXW3/pKAqFPXVIKrxOu66spHhtP344Y8ZZTkjx2b 7wBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iDju1l5Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 62si532288edc.448.2020.04.30.14.12.34; Thu, 30 Apr 2020 14:13:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iDju1l5Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726463AbgD3VK7 (ORCPT + 99 others); Thu, 30 Apr 2020 17:10:59 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:39827 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725844AbgD3VK7 (ORCPT ); Thu, 30 Apr 2020 17:10:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588281058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YlN0br96igCeHtuNA7c7W45XZBUGLRWFSGtgdohoRbI=; b=iDju1l5YaTrSqtSeVUytp8tLxhyThSalTh9qQX+uai0x6LYM4KDW0c//t8lWQXH0R2s2/E bPGYvrOz63iTWGHoQVPG1UFgRMG5RMKTQY4UnPLTBfkCrD1fS1HDhg5Q30ELxdCeT5R2fl yr47LDKtDXGHWJ+EA+6Ncw4qiBkDAoI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-442-mGgVJOl-Os2BSYCF13HzSg-1; Thu, 30 Apr 2020 17:10:54 -0400 X-MC-Unique: mGgVJOl-Os2BSYCF13HzSg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B1ED21005510; Thu, 30 Apr 2020 21:10:52 +0000 (UTC) Received: from treble (ovpn-113-19.rdu2.redhat.com [10.10.113.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E8CA8512E6; Thu, 30 Apr 2020 21:10:51 +0000 (UTC) Date: Thu, 30 Apr 2020 16:10:49 -0500 From: Josh Poimboeuf To: Arnd Bergmann Cc: Peter Zijlstra , the arch/x86 maintainers , Linux Kernel Mailing List , Kees Cook Subject: Re: Remaining randconfig objtool warnings, linux-next-20200428 Message-ID: <20200430211049.76f5qhsfvw2c4gql@treble> References: <20200428161044.caamvx67t2z4t6vd@treble> <20200429185536.5xshpcwtn4be4llh@treble> <20200429231115.z2mo5bsmrmj4oark@treble> <20200429232835.yw6ajtjyleob3lmz@treble> <20200430143350.qezebqmx2xwdxqxq@treble> <20200430194630.jkwysx6eftkaf6bu@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 30, 2020 at 10:59:44PM +0200, Arnd Bergmann wrote: > On Thu, Apr 30, 2020 at 9:46 PM Josh Poimboeuf wrote: > > On Thu, Apr 30, 2020 at 09:33:50AM -0500, Josh Poimboeuf wrote: > > > > > So there's an easy fix below, just define an x86-specific SYSCALL_ALIAS. > > It also requries moving the syscall alias macros to syscalls.h, but > > that's probably where they belong anyway. > > > > But the objtool .cold parent alias function detection is a little > > smelly, so I might end up cleaning that up instead if I can figure out a > > good way to do it. > > > > diff --git a/arch/x86/include/asm/syscall_wrapper.h b/arch/x86/include/asm/syscall_wrapper.h > > index a84333adeef2..abe6e633f8dc 100644 > > --- a/arch/x86/include/asm/syscall_wrapper.h > > +++ b/arch/x86/include/asm/syscall_wrapper.h > > @@ -79,6 +79,8 @@ extern long __ia32_sys_ni_syscall(const struct pt_regs *regs); > > return __se_##name(__VA_ARGS__); \ > > } > > > > +#define SYSCALL_ALIAS(alias, name) __alias(name) typeof(name) alias > > + > > Right, this should work in principle, though I suspect it needs to be > changed to include the ABI name for x86, as there are separate > entry points for 32 and 64 bit. As far as I can tell it should actually work, because of the x86-specific SYS_NI macro. -- Josh