Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1552442rwl; Wed, 12 Apr 2023 15:02:53 -0700 (PDT) X-Google-Smtp-Source: AKy350aFAjaG2mUKMxH7TvnkwcJsCtMdSraDdbMm5SU8YMudl4MC+NiAH3FUzndqFldkBgsSzLYM X-Received: by 2002:a17:902:c944:b0:1a6:79fb:97c9 with SMTP id i4-20020a170902c94400b001a679fb97c9mr303735pla.64.1681336973554; Wed, 12 Apr 2023 15:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681336973; cv=none; d=google.com; s=arc-20160816; b=eO07pmbmqWSE/TCi+V9bmxoz4FrKEiMFD7DAc5Wj9abiPKAc6JUrCzWWtoeDHt01yn 9z6V5UO0KMNPZp5ZX2uhBWwzJ+nl/tNfSr9xKTlT18c6K5Cldpli3vbL34iI8sT5c5tP 3Mf1/N6Yb9nhvZa1JPyDIhR1CjRnw/UWRgr0X1zBo7YMQfovPFimJKTiSvhe/1DuGtYz V8vhBFRSgZZzzKSVqe8e5VZ2Kkurvta1Wwq+YJOy9ynykO+u65UV6mrVXbNM0pek5Go8 qqBoSFN/M2L3cywjWGlNkvrafJXfl2VXbnXgpC0LlII8z1o8cR9bvrFDFpk/2C7JFcgE jsOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=E+JhhcjRpiJDTJb/fTelm78fxWpd4x3v5NRUGL9Lw80=; b=lO1134zFLT2xcZEILlEVdBcdVZCudq75Yz8zp2SHkOQmQ0HYL1Zip+ZcPjgiPTH0jr djbvGjdnwCiSMfkmir6XmTDolMp5T0hQeHiQpktL6v66YjSaX+wWpTea0ixp8FEsLK0o y5mxVMCisxEy6h0iMxxQiqIpZljWWG88nMwQ9RIo3u6SS6WtIvUAEdDZBtmADp/Q95nt bQ6GZ6vSR36iw/Wbhua8v17+le99D5hA3pwkAYYTKd/WZ6iNozEEBI8nYiHNCTdIAqdt /B4TKJf0Fwtddbs/DMZKDpxFHLmEbvTQIQAKS+C20rZ7aoeljooUbC03F1kL3I23xHxQ D/Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iLEDJCDd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a170903018f00b001a0767b58e7si199345plg.68.2023.04.12.15.02.40; Wed, 12 Apr 2023 15:02:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iLEDJCDd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbjDLV6A (ORCPT + 99 others); Wed, 12 Apr 2023 17:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjDLV57 (ORCPT ); Wed, 12 Apr 2023 17:57:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58B78C0; Wed, 12 Apr 2023 14:57:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E9D21635B0; Wed, 12 Apr 2023 21:57:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6524C433EF; Wed, 12 Apr 2023 21:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681336677; bh=JLhNcNRIDdMTedwvdop2oDKxJIi5sh4ynsleihJQULo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iLEDJCDdixRPsXIXZEKB9y9Eakj5UvdZQM2mpD6QBXioGLyUqnIB53egfbbhxIb5F bD6GXYFiFOZSfghDOh1T6TY4enu1/jfzC4ZeS4dcK2TFu99OUGPB9W9fRcMLje/eJj 3YaurQz2EzOgUbXiVq92j9U3g5TLNY2cqvqDIDGJVbbKk1X/TulQQZMdMDBtKhPAgh MPVgq5i3N2sN8oYoWUGIFe73ojPUfDOhKnOWynMz2cOQwAiJAyS2BjUVLaqYetkTfc Fi2c7zoGvZuj58qkUyfgYPT7afD3Z3WYKbEs6mKIQw14mluQ5qfwL2jS5N1mQqhCz+ BJoC6/3Q61XZg== Date: Wed, 12 Apr 2023 14:57:55 -0700 From: Josh Poimboeuf To: Nick Desaulniers Cc: "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Miroslav Benes , linux-btrfs@vger.kernel.org, Mark Rutland , linux-scsi@vger.kernel.org, linux-hyperv@vger.kernel.org, Arnd Bergmann , "Guilherme G . Piccoli" , Michael Kelley , kernel test robot Subject: Re: [PATCH 02/11] init: Mark start_kernel() __noreturn Message-ID: <20230412215755.bz3nzldqhhc4wjds@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 12, 2023 at 01:29:49PM -0700, Nick Desaulniers wrote: > On Fri, Apr 07, 2023 at 05:09:55PM -0700, Josh Poimboeuf wrote: > > Fixes the following warning: > > > > vmlinux.o: warning: objtool: x86_64_start_reservations+0x28: unreachable instruction > > > > Reported-by: kernel test robot > > Link: https://lore.kernel.org/r/202302161142.K3ziREaj-lkp@intel.com/ > > Signed-off-by: Josh Poimboeuf > > Ah, I just realized that my series will conflict with this. > https://lore.kernel.org/llvm/20230412-no_stackp-v1-1-46a69b507a4b@google.com/ > Perhaps if my series gets positive feedback; I can rebase it on top of > this and it can become part of your series? Sure, I can take these on top. > For this patch, > Reviewed-by: Nick Desaulniers Thanks! > Though I'm curious, it does look like it's necessary because of 01/11 in > the series? Any idea how the 0day bot report happened before 1/11 > existed? > > > (Surely gcc isn't assuming a weak function is implicitly noreturn and > make optimizations based on that (that's one hazard I'm worried about)?) As far as I can tell, GCC has been doing the right thing here, and it's instead been objtool getting confused by weak noreturns. That gets fixed later in patch 9. > It looks like perhaps the link to > https://lore.kernel.org/all/202302161142.K3ziREaj-lkp@intel.com/ > on 2/11 was 0day testing the arch-cpu-idle-dead-noreturn branch of your > kernel tree > https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git/log/?h=arch-cpu-idle-dead-noreturn > , which had 1/11 in it, IIUC? Perhaps this link should go on 1/11 > rather than 2/11? Good catch, patch 1 does introduce the warning. I think I'll just squash patches 1 and 2 so as not to break bisection. > Looking back at 1/11, 3/11, 8/11 I noticed not all patches have links to 0day > reports. Are you able to flesh out more info how/what/when such objtool > warnings are observed? Are the warnings ever results of patches earlier > in the series? Hopefully not, it's best to not introduce warnings even temporarily. I was doing a lot of build testing at the time with various branches, so it's possible. I'll see if I can figure out how I triggered those warnings and document that in the commit logs if possible. -- Josh