Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1945803iob; Sun, 15 May 2022 03:32:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxic+S8+KFMD+OQrZNRy7l7Q72kPMJNy/p51LV2iUYJqAmjgqqdKmc53TgO8yrs/W1Eczna X-Received: by 2002:a05:600c:3490:b0:394:5616:ac78 with SMTP id a16-20020a05600c349000b003945616ac78mr12372422wmq.80.1652610754100; Sun, 15 May 2022 03:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652610754; cv=none; d=google.com; s=arc-20160816; b=TpW+g/i4fCAx1sZJrVBwnh4qNwaR7J/QKYIFHGVYiYLcs43YOMw4qkoZeKeE+tk804 FFb+76pNWbeJly/XsrCbvorIth5Apc+2GWtOpzRGveiwWdEPX8oO8K51sgzXQI85uvZN NytLqVfhEJPnT+aW65xwaFcvnVC+n/fGmvhWTDzZ8sVS/X79qkjzXovo3gIiRybbVK2w pHz8qCuneoDsIs1Xg5qTVz582M/xAlfepdEw9RDLOPHayTZdmGRZShcdOP3kMJcrf6RK gTlaZzJvHGbrq0SMXe7c5BMnL1UqCV16/3a347s6mhCZ+cPB1yfGLtkNkvQ1/MI49LXc nQww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GGrtThbloOIiUGTeJhbJFfCbb87w6KVuw1/1bb241jU=; b=NhpGOgIukuKB37jXkHRwLAfdWppz3F9/3ZR/P1xCzI5149nd30kV1Zdo4pm7B6GKGY i1TEElpVeEEXIBUuhcmSiXauaEmynUR/gDDPky9W8RLSHpAohtl4yopQWXmqbupMQYz6 z9V36ISVH7+Ebc6U6/O5ei17/L0G0o8CB1qA/DjLDgAnDginlXShIbOwC7ektalqwbq4 j9IPmTyla6tSn/2/5snqecPvqTodJfdY15/bMPh+7cpykcBAspiKft1tWtXF1KWsCvsK 1cD9rh5pvNzsoxTUVwEkue/nulpucguiOdVgChMf8lIHgRKSl8nfR9wKuevm04Jq+nOn Tjnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ccejXGEg; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a05600c225100b003945fb0c92esi6591076wmm.101.2022.05.15.03.32.07; Sun, 15 May 2022 03:32:34 -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=@intel.com header.s=Intel header.b=ccejXGEg; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234046AbiEODHM (ORCPT + 99 others); Sat, 14 May 2022 23:07:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229759AbiEODHJ (ORCPT ); Sat, 14 May 2022 23:07:09 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D4D6A47F for ; Sat, 14 May 2022 20:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652584028; x=1684120028; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cAvPMKpxH+7KSOSJg179GOL0DUlatyx7HZ5pkdst9As=; b=ccejXGEgGhNGtfIN2bYWxQHEL8XCgcQ1Pwr+PNrOs0XwgiNFq0BN7W/6 Qcla25RkgP1NMN6qwK8jaJOkRo+EDtmMuPpRgy+3ua/3yi+3kZySeA3LH tnLGmLJgzg16b2OnNDkiVTmCeCu1v1zsYqCIrlFr4xuuFp8HUf25/iJev s9TNA/Re3a2H2JqfVIQET0uA1pJsPFNqXPGZKkA6m9KV2wZBTXlNeaCS5 3kF8jJznDw29XenBjb3NER73J9r0RmbhekRM+ppsttX+YzmhYMWPZrY6R zBq22mY76u+M/31784CNwLocB9hb6G7sfoOw+LK/IuzKbqMS6WCQZl/0W w==; X-IronPort-AV: E=McAfee;i="6400,9594,10347"; a="333635199" X-IronPort-AV: E=Sophos;i="5.91,227,1647327600"; d="scan'208";a="333635199" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2022 20:07:05 -0700 X-IronPort-AV: E=Sophos;i="5.91,227,1647327600"; d="scan'208";a="595899085" Received: from xsang-optiplex-9020.sh.intel.com (HELO xsang-OptiPlex-9020) ([10.239.159.143]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2022 20:07:02 -0700 Date: Sun, 15 May 2022 11:06:49 +0800 From: Oliver Sang To: Borislav Petkov Cc: Linus Torvalds , Eric Biggers , Thomas Gleixner , Ingo Molnar , Dave Hansen , Rasmus Villemoes , Sean Christopherson , Naresh Kamboju , LKML , lkp@lists.01.org, kernel test robot , the arch/x86 maintainers Subject: Re: [x86/uaccess] 9c5743dff4: WARNING:at_arch/x86/mm/extable.c:#ex_handler_fprestore Message-ID: <20220515030416.GA5866@xsang-OptiPlex-9020> References: <20220513085455.GB21013@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-5.0 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_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Boris, On Fri, May 13, 2022 at 07:12:38PM +0200, Borislav Petkov wrote: > On Fri, May 13, 2022 at 09:52:08AM -0700, Linus Torvalds wrote: > > On Fri, May 13, 2022 at 1:55 AM kernel test robot wrote: > > > > > > FYI, we noticed the following commit (built with gcc-11): commit > > > 9c5743dff415 ("x86/uaccess: fix code generation in put_user()") > > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > Err, is this seriously a report for a 5.9-something kernel? yeah, after some update such like test suite, kconfig, it's possible for us to tigger some bisection again which finally points to old commit. > > [ 266.828722][ T1] CPU: 0 PID: 1 Comm: init Not tainted 5.9.0-13419-g9c5743dff415 #1 > > > > > > > in testcase: boot > > > > > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G > > > > > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > Can you reproduce the same with the latest Linus master or tip/master or > something current...? sorry about this, "WARNING:at_arch/x86/mm/extable.c:#ex_handler_fprestore" cannot be reproduced on v5.18-rc6. the problem is our bot actually picks "dmesg.Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode=" to do the bisection, unfortunately, this is still existing on v5.18-rc6 [1], which confused our bot to regard this as a valid report. (while generating final reports, bot tried to pick specific warning from dmesg) we will investigate to avoid this kind of problem. 3cb12d27ff655e57 9c5743dff415a7384669229d327 ---------------- --------------------------- fail:runs %reproduction fail:runs | | | :50 82% 41:52 dmesg.Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode= <--- still in v5.18-rc6 :50 82% 41:52 dmesg.RIP:copy_kernel_to_fpregs :50 82% 41:52 dmesg.RIP:ex_handler_fprestore :50 82% 41:52 dmesg.WARNING:at_arch/x86/mm/extable.c:#ex_handler_fprestore <--- not in v5.18-rc6 [1] [ 255.392247][ T1] init: Failed to spawn kernel-tests main process: unable to execute: Bad address [ 255.451755][ T1] init[1] bad frame in rt_sigreturn frame:00007ffeaf881638 ip:7fbde926f700 sp:7ffeaf881bf8 orax:ffffffffffffffff in libc-2.15.so[7fbde9 239000+1b3000] [ 255.563440][ T223] init (223) used greatest stack depth: 11904 bytes left [ 255.566005][ T1] init[1] bad frame in rt_sigreturn frame:00007ffeaf880ef8 ip:7fbde92f6c3e sp:7ffeaf8814c0 orax:ffffffffffffffff in libc-2.15.so[7fbde9 239000+1b3000] [ 255.573639][ T1] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 255.575676][ T1] CPU: 0 PID: 1 Comm: init Not tainted 5.18.0-rc6 #1 [ 255.577359][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 255.579574][ T1] Call Trace: [ 255.580392][ T1] [ 255.581213][ T1] ? __dump_stack+0x6e/0x9d [ 255.582373][ T1] ? dump_stack+0x37/0x64 [ 255.583666][ T1] ? panic+0x575/0xc88 [ 255.584657][ T1] ? rcuwait_wake_up+0x264/0x3d0 [ 255.586047][ T1] ? do_exit.cold+0x54/0x124 [ 255.587132][ T1] ? do_group_exit+0x89/0x2d0 [ 255.588365][ T1] ? get_signal+0x1cdc/0x1ce0 [ 255.589512][ T1] ? arch_do_signal_or_restart+0x28/0x150 [ 255.591205][ T1] ? exit_to_user_mode_prepare+0x834/0x8c0 [ 255.592565][ T1] ? syscall_exit_to_user_mode+0x16/0x50 [ 255.594023][ T1] ? do_syscall_64+0x70/0x90 [ 255.595318][ T1] ? file_end_write+0x46/0x490 [ 255.596623][ T1] ? rcu_read_lock_sched_held+0xdf/0x1d0 [ 255.598142][ T1] ? tracer_hardirqs_on+0x1bb/0x1d0 [ 255.599418][ T1] ? static_key_count+0x77/0x80 [ 255.600884][ T1] ? do_syscall_64+0x11/0x90 [ 255.601994][ T1] ? entry_SYSCALL_64_after_hwframe+0x44/0xae [ 255.603462][ T1] [ 255.604508][ T1] Kernel Offset: disabled > > Thx. > > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette