Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp391471rdh; Tue, 19 Dec 2023 01:58:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcpvJCq7bSqDRPJwTkyRdaas0MxC7yLWnqT4cvAlPs0PWTy/DFC74GlyyzMfNBQ5yuakS/ X-Received: by 2002:a05:6358:6f93:b0:170:f316:8792 with SMTP id s19-20020a0563586f9300b00170f3168792mr11337797rwn.41.1702979937967; Tue, 19 Dec 2023 01:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702979937; cv=none; d=google.com; s=arc-20160816; b=cyJ6nBMBPQtp19UsIh6Tr/PQcm5NYRLmpvqcirjXyZtuuSjv5nPQA4k7aNVneT2+XL WvOLdqnDYhT08gyRDPQf/4O4pKiF2+qd+pW6yD1+1IONJoOK0YEtY+7pf/D6fAlq23mr Tm9xEqM8/ZPSvzzfpCxOXZEc7NA+KnHzGoQwDPpXGuKNiHTdtJyjhVwN9ljDRAI88R9T mSsrCUikvqaJE2BBvPpGZoXLvPoUwEnPcNpyjch4jw2w42hMuowisfjPUAFk2MYHcC4t LTSHAoxjLK2PqNTFw/7TS7kRZwc3low2hQfwRLZW7zY6ZMaMrLSZPjy2tZaFjHCGz66x UNBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P3jD5eqC9y+dzVVf8JO+bJo693w8FgH9wYro5luQC64=; fh=1cbH81BK/K4gFWyNqXI4Fy5nC79zd8yg31MRBmyi4+Y=; b=cy6Hv7qDfkh9d55fq7gLDcgRXGkBJTdF3WBOSe5hjt3V3cXXTqDQmM0fiVQfGUIHMg tRacemCTjhbqeSvU1V3NZD3V9Zd3it6JL5t0jyap+JmxNEN4zbNaiDLuDth1EaZDdmzQ 9Gus/RH1I+Q5QDmE1tRED/UmEmBXHPODYH3LykRz7ntCy/8JVjsfUt2P0MJ83y2r+/TG xmKDe34DF/SJjjKpYSLT3GMCHczeGxuGy/1hpUEiaIT273zl8mobUVvWYqdgdgdPSzqM iQZEXpyQaxv9kp5ariRWssEeCtm795FzXomFeNm9niCXISzcKa8F6QH+mPNUdOTbpe2W y7yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@alien8.de header.s=alien8 header.b=bD6HE4bs; spf=pass (google.com: domain of linux-kernel+bounces-4990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id gd20-20020a17090b0fd400b0028868ea872esi906997pjb.43.2023.12.19.01.58.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 01:58:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@alien8.de header.s=alien8 header.b=bD6HE4bs; spf=pass (google.com: domain of linux-kernel+bounces-4990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 62882B230AF for ; Tue, 19 Dec 2023 09:58:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B25E31401E; Tue, 19 Dec 2023 09:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="bD6HE4bs" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F7DC1426E for ; Tue, 19 Dec 2023 09:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id F1E9D40E00CD; Tue, 19 Dec 2023 09:58:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=fail (4096-bit key) reason="fail (body has been altered)" header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nodqOZyKC-fR; Tue, 19 Dec 2023 09:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1702979917; bh=S3JFK1fju4B6xZ8eBdvZm+1HPPTszSQfGOo5AjwDssQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bD6HE4bsbc2OQkFhBB+xvJpvtivUcbd5wsY25h5phYM5J0eGRJUdNjmLwiAj6o7KK gx3zGOLBwaZx5irPCWSX12wRoLv0IAl+XUNK4E8HxoZ13p5mWNyp7yOwWULdywRjH6 5gcskawHSQTCP5ivxwfiClK6fMubzKPAFW/U/3aJr+7UCIMSODR6bs3edM6SJn5czn OACfG3Zv8y47kzDmIxIJBxWYXwYmvrBX5dI8WxQDRb81xltEcbxECtWtaEmO25zyvM gtmYY37HJsGk/je25y3mVFSnMcvmYnQ+bbLsWxcMqP3vb2HvCE+542GrIWJDvJ5bRj 7m/8UuT8KN8+aGySZnllMiqnK+PtqnftUlpKm2CMmD+Y/20l0XG7C44Ii+8UbsuYHo LBb5YUD34PfChNkUKqSH16PxRKNYvEx5lYTfDNBscw4HdZQHBfVAZl97LSdeWyJRiv TMNVslgsF7WUUOnfafwU4plYk5Z34hf8X+u+TqQw2K7mebiWcIapQ95JrjyNCh0vTr l7rDMR+1oW20WEJrPQouBQ49B75bWuGLMQiKJ9i+UkxYjGUKqjgH4diOo/GzmaOIxt gKgbNwYUU3zVG7Y+Hk5s7Wda4a8TTj75z9yFOYxO/5ZEkj/SL6tOK54uo4eMq0YXp5 tqSoCzkE/3DJJCyAfh/NHjzw= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 52F0440E00C9; Tue, 19 Dec 2023 09:58:28 +0000 (UTC) Date: Tue, 19 Dec 2023 10:58:21 +0100 From: Borislav Petkov To: kernel test robot Cc: Thomas Gleixner , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Dave Hansen , Linus Torvalds , "Kirill A. Shutemov" , xen-devel@lists.xenproject.org Subject: Re: [linus:master] [x86/entry] be5341eb0d: WARNING:CPU:#PID:#at_int80_emulation Message-ID: <20231219095821.GAZYFpPUSKexZAcl05@fat_crate.local> References: <202312191507.348721d2-oliver.sang@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <202312191507.348721d2-oliver.sang@intel.com> Content-Transfer-Encoding: quoted-printable On Tue, Dec 19, 2023 at 04:49:14PM +0800, kernel test robot wrote: > [ 13.481107][ T48] WARNING: CPU: 0 PID: 48 at int80_emulation (arch/x86= /entry/common.c:164)=20 > [ 13.481454][ T48] Modules linked in: > [ 13.481655][ T48] CPU: 0 PID: 48 Comm: init Tainted: G = N 6.7.0-rc4-00002-gbe5341eb0d43 #1 > [ 13.482162][ T48] RIP: 0010:int80_emulation (arch/x86/entry/common.c:1= 64)=20 Looking at the dmesg, I think you missed the most important part - the preceding line: [ 13.480504][ T48] CFI failure at int80_emulation+0x67/0xb0 (target: = sys_ni_posix_timers+0x0/0x70; expected type: 0xb02b34d9) ^^^^^^^^^^^ [ 13.481107][ T48] WARNING: CPU: 0 PID: 48 at int80_emulation+0x67/0x= b0 [ 13.481454][ T48] Modules linked in: [ 13.481655][ T48] CPU: 0 PID: 48 Comm: init Tainted: G = N 6.7.0-rc4-00002-gbe5341eb0d43 #1 The CFI bla is also in the stack trace. Now, decode_cfi_insn() has a comment there which says what the compiler generates about indirect call checks: * =C2=A0 movl -, %r10d ; 6 bytes * addl -4(%reg), %r10d ; 4 bytes * je .Ltmp1 ; 2 bytes * ud2 ; <- regs->ip * .Ltmp1: and the opcodes you decoded... > [ 13.482437][ T48] Code: 01 00 00 77 43 89 c1 48 81 f9 c9 01 00 00 48 1= 9 c9 21 c1 48 89 df 4c 8b 1c cd 90 12 20 9a 41 ba 27 cb d4 4f 45 03 53 fc= 74 02 <0f> 0b 41 ff d3 48 89 c1 48 89 4b 50 90 48 89 df 5b 41 5e 31 c0 3= 1 > All code > =3D=3D=3D=3D=3D=3D=3D=3D > 0: 01 00 add %eax,(%rax) > 2: 00 77 43 add %dh,0x43(%rdi) > 5: 89 c1 mov %eax,%ecx > 7: 48 81 f9 c9 01 00 00 cmp $0x1c9,%rcx > e: 48 19 c9 sbb %rcx,%rcx > 11: 21 c1 and %eax,%ecx > 13: 48 89 df mov %rbx,%rdi > 16: 4c 8b 1c cd 90 12 20 mov -0x65dfed70(,%rcx,8),%r11 > 1d: 9a=20 > 1e: 41 ba 27 cb d4 4f mov $0x4fd4cb27,%r10d > 24: 45 03 53 fc add -0x4(%r11),%r10d > 28: 74 02 je 0x2c > 2a:* 0f 0b ud2 <-- trapping instruction ... these guys here, look exactly like what the compiler did issue. This is the first time I'm looking at this CFI bla but it sounds like it is trying to compare the syscall target's address of sys_ni_posix_timers with something it is expecting to call and the comparison doesn't work out (%r10 is not 0). There's that special symbol __cfi_sys_ni_posix_timers which also gets generated... Someone would need to dig into that whole CFI gunk to figure out why this is not happy. Oh well. --=20 Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette