Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1151696ybz; Wed, 29 Apr 2020 16:03:52 -0700 (PDT) X-Google-Smtp-Source: APiQypJhZZHQSyvOrtmvGuk9tJmfj+BKtyudP24EpQhG+OhPWnu0eTuJKmY+JkHxZSM7FcVrm1+0 X-Received: by 2002:aa7:dc4b:: with SMTP id g11mr248600edu.223.1588201432533; Wed, 29 Apr 2020 16:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588201432; cv=none; d=google.com; s=arc-20160816; b=tGK5hk/En+QGJCbjd2IPD3DxyZue+liQLq+GeKkZkP3Bngq0dLOlZ3rIU8fo1FSegK hqQLm9loxGGnWw0sVEz6tegN63bKXNFsAhpCcfJjMytWR/HYFI5QNMoAmR9ADdywZ4Fr KrzRxEkQwDEvlUPNvcBaJW384zORLj4g9OGqiLtQ8NA+k7qdcEFxPa4wYZkmdvMnVUAY MQD4cSAC/cbW2C7rZFq5zd57SD7obFI6eIv5lJPOgS6+J4F2c5KhruKYVVTzkNlu4toL cy9MyRHKAbekQH6gXrJS4YOdlkyqP70Qenr+sFbst6BNiDSofrsi7VO/Ld8q47eErlN2 iSuA== 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=LQCERU/9iXx7CQKWJX8dwWkirucEUyXFBwmWE+sf5Ok=; b=0Thue0WLpYwoXO6YMTYR/IzX0EAGsMFjJKofwbAFNtzQvLuhNLf0slBJOevW5RC9A8 luNZTQkLVzbhSC3ZHk1eI3RubZrvsVx0OWuUo77VPnEGdYPe0RxtPAr2ID9UoE96GQ6m d0Ctatz3P+kIYLktlPZiVNV/SNY0ZaNrYbtKjxGpgX1EaXUkbr4DdbQghrI0geZfmCWL HK54hVQ42grxvgDo9k6VUZcfpAbblAT9zV+tnDFZNPRFx5jovIdah+2kYJ3z/Trmzxmp AUR1aTOMeXBwPXYHKy3XfVCyKgEafmeCNcUx7WaCY5Sk0TQaGWwr+sMseYbNlUEMGMvN Sh8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g6t6nBy7; 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 n8si4698391eju.329.2020.04.29.16.03.30; Wed, 29 Apr 2020 16:03:52 -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=g6t6nBy7; 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 S1727089AbgD2XCA (ORCPT + 99 others); Wed, 29 Apr 2020 19:02:00 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:52391 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726164AbgD2XCA (ORCPT ); Wed, 29 Apr 2020 19:02:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588201318; 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=LQCERU/9iXx7CQKWJX8dwWkirucEUyXFBwmWE+sf5Ok=; b=g6t6nBy7FL6i9AqB8uTZIEib75NKjL+RakxNTze2de6WL18QdXfDenJU4K5XDSmNcGT+kX tRFsL1SaBTrdJdjpsfvC/pNc0Hh9rK/iNahG7dwXnwWTVMo6SL4Dwb+4CP6Yv17CvUWGAJ Tk+sVK56vIyXpcX/i6m03VXwDiAnUp0= 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-490-V6jqXKJkOcGR13YkXNSZGw-1; Wed, 29 Apr 2020 19:01:56 -0400 X-MC-Unique: V6jqXKJkOcGR13YkXNSZGw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2488480B70B; Wed, 29 Apr 2020 23:01:55 +0000 (UTC) Received: from treble (ovpn-113-19.rdu2.redhat.com [10.10.113.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6158C196AE; Wed, 29 Apr 2020 23:01:54 +0000 (UTC) Date: Wed, 29 Apr 2020 18:01:52 -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: <20200429230152.gpb45k2od6rx3q7g@treble> References: <20200428161044.caamvx67t2z4t6vd@treble> <20200429185536.5xshpcwtn4be4llh@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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 12:46:57AM +0200, Arnd Bergmann wrote: > On Wed, Apr 29, 2020 at 8:55 PM Josh Poimboeuf wrote: > > > > On Tue, Apr 28, 2020 at 11:10:44AM -0500, Josh Poimboeuf wrote: > > > > ==> build/x86/0xE0F2ACFF_defconfig/log <== > > > > kernel/time/posix-stubs.o: warning: objtool: __x64_sys_timer_create()+0x23: sibling call from callable instruction with modified stack frame > > > > This one is fixed with the following cleanup: > > > > From: Josh Poimboeuf > > Subject: [PATCH] linkage: Convert syscall alias macros to C > > > > There's no need to use inline asm to create ELF alias symbols. > > Annotated C function declarations can be used instead. > > > > This also makes the ordering of the ELF symbol table more logical, with > > the real function now always coming before the aliases. This makes it > > easier for objtool, objdump and other tools to differentiate them. > > > > This fixes the following warning: > > > > kernel/time/posix-stubs.o: warning: objtool: __x64_sys_timer_create()+0x23: sibling call from callable instruction with modified stack frame > > > > Reported-by: Arnd Bergmann > > Signed-off-by: Josh Poimboeuf > > --- > > include/linux/linkage.h | 14 ++++---------- > > 1 file changed, 4 insertions(+), 10 deletions(-) > > Unfortunately, this patch leads to new warnings when > CONFIG_POSIX_TIMERS is disabled: Hm, at least on x86 it seems to build fine without CONFIG_POSIX_TIMERS. Must be some syscall quirk differences between the arches. > In file included from /git/arm-soc/kernel/time/posix-stubs.c:9: > /git/arm-soc/kernel/time/posix-stubs.c:35:37: error: conflicting types > for 'sys_timer_create' > 35 | #define SYS_NI(name) SYSCALL_ALIAS(sys_##name, sys_ni_posix_timers) > | ^~~~ > /git/arm-soc/include/linux/linkage.h:26:63: note: in definition of > macro 'SYSCALL_ALIAS' > 26 | #define SYSCALL_ALIAS(alias, name) __alias(name) typeof(name) alias > | ^~~~~ > /git/arm-soc/kernel/time/posix-stubs.c:42:1: note: in expansion of > macro 'SYS_NI' > 42 | SYS_NI(timer_create); > | ^~~~~~ > In file included from /git/arm-soc/kernel/time/posix-stubs.c:13: > /git/arm-soc/include/linux/syscalls.h:616:17: note: previous > declaration of 'sys_timer_create' was here > 616 | asmlinkage long sys_timer_create(clockid_t which_clock, > | ^~~~~~~~~~~~~~~~ > > We can probably move those SYS_NI() instances to kernel/sys_ni.c, > which does not include the header, but it's still a bit ugly. I'll try > that tomorrow > unless you come up with a better suggestion first. > > Arnd > -- Josh