Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1ABC8C433F5 for ; Thu, 16 Dec 2021 10:07:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235676AbhLPKHA (ORCPT ); Thu, 16 Dec 2021 05:07:00 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:35738 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233509AbhLPKG7 (ORCPT ); Thu, 16 Dec 2021 05:06:59 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 159D121135; Thu, 16 Dec 2021 10:06:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1639649218; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VpOyYPzrJPViyp7lDRITLnqget4cWYYPOCSwbQb88eE=; b=m7081hmRSBuK4ZT+cuP0DfyDYG3Lp1S8lxpUU0AN75s1jXLJia9tiCruyVstehA5cvZN0G rNBMSo5h6LYMe2Dv9uaAIlGksuqp4OyR5F31fxgkF7MfMyH77tw0Z6ePd+33MnCmUAQeaB vcz6TbiEgai+N51hEjNl93mQ0veqfVA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1639649218; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VpOyYPzrJPViyp7lDRITLnqget4cWYYPOCSwbQb88eE=; b=owc3G8Ef750eWTt6rRdVwABygi8DF9CA0i4zdRT0cbH0kk/UJo8Q2HyRDP210HRmq4Q7dt ea6mQG7cgYdxU7CA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DCF2E13DF8; Thu, 16 Dec 2021 10:06:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id z9PmNcEPu2FjFwAAMHmgww (envelope-from ); Thu, 16 Dec 2021 10:06:57 +0000 Date: Thu, 16 Dec 2021 11:06:59 +0100 From: Borislav Petkov To: Yin Fengwei Cc: Carel Si , Joerg Roedel , LKML , x86@kernel.org, lkp@lists.01.org, lkp@intel.com Subject: Re: [LKP] Re: [x86/mm/64] f154f29085: BUG:kernel_reboot-without-warning_in_boot_stage Message-ID: References: <20211209144141.GC25654@xsang-OptiPlex-9020> <20211215070012.GA26582@linux.intel.com> <009391a5-468b-2a5d-1f12-44d2e3104bd6@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <009391a5-468b-2a5d-1f12-44d2e3104bd6@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 16, 2021 at 03:04:16PM +0800, Yin Fengwei wrote: > The testing was with Qemu. This is hardly what I asked for. > And we found that the hang is related with clang-14. I saw that already. > The original report showed the kernel is built with clang-14: > # build kernel > cd linux > cp config-5.16.0-rc3-00003-gf154f290855b .config > make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules > make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 INSTALL_MOD_PATH= modules_install I saw that too. > Looks like KASAN related stub generated by clang-14 (KASAN_SHADOW_OFFSET and asan_report). > This function is early function called before kasan_init. > > Looks like we need to disable KASAN_SANITIZE for arch/x86/kernel/cpu/common.c. So clang-14 will > be happy with this kind of early TLB flush? Thanks. Ok, I don't understand: I asked for how exactly to reproduce and whether you can send me your vmlinux you built with your clang-14. What I get is some possible explanation about what might be happening. So what do you expect me to do? Say, "oh, sure, you're right, send me a patch" without even being able to see for myself what the root cause is? What if it is not the kernel's fault but clang-14 is miscompiling crap as in so many other cases? I built clang-14 and built with your .config and it works here fine. So why does yours fail? Or what's the point of all this? I mean, if you cannot send me what I ask for, you can say so. Then I can ignore this whole report altogether and waste my time somewhere else. -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg