Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10526783rwd; Thu, 22 Jun 2023 00:52:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5f+ytuWrbVHMc6cZYf5S6KscfuKVVBqFeKTRj28weDsbDYosmySSDs8Ib3yXja30VSXzOK X-Received: by 2002:a17:903:2347:b0:1b6:a37a:65b7 with SMTP id c7-20020a170903234700b001b6a37a65b7mr4766340plh.23.1687420357502; Thu, 22 Jun 2023 00:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687420357; cv=none; d=google.com; s=arc-20160816; b=ULbLVz3i5hSOX9THh0S5fI5+df7yi1vTphGTOj0ovGkiW5qFlLnxez10cdHmePYn3r xeYbXXlQBAznzWYTJbPhlilkcmC6N0V0GF0HhTggh0zE6JAZqim1qhABa5EXgOKSpHWp MDiUgvBwLOC6ldck5/sMjjqBCW1lBAP1MXmx+yyfu0ZaAWT+dA2GwUOnDnJfr3YLLAGG 2T/986FXdMY/EaaUHffdh+zxVA/OdRsufJ4rqidqcOiPvXvH71vF8j9RUwQmtFNiyAH3 tLdVB8rKLSgd1LcBuL9g+FXJovtc3X8MnEBuywbgGK80wMgzwV095F6LLL1aXXdKUW0E 58+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:reply-to:user-agent :mime-version:date:message-id; bh=XU99oCtEXBIsh9Ou6wZaQtd4eJDgaI+d2nDAa5YWsHg=; b=A/cU7MKjq9+lQSXTB1uiyOkjE33leGQaaQw2TUd2zKoOC8e2fHPoiZpSc31taiLSUN Ycy1sinrOi/Nj8pXFZ15gk6b6qJvBrWIo1aGU5rKx16zuqUjyyfA6m9+5pN48MAlzen3 yeCKcnqDkA4XfgSGNjEB5zGQp9gCPtMqLWu/zFknFkqv5yA1l0fAnSad6t6JT/tkSiv/ fiDBpvf8DXrZ8pRh8fqV0EvGJmjlK1hDOmNqf2LS6CAdv025HpzFEH5z5j397nXTmFKB 6VP9p8xfqTi4GkQDTEVF22/zBgljQteYCcgPe0UfoPkBu51K2b+gslUxEs3YWALplXeZ 7icw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a170902e75000b001b69666ac61si4092415plf.178.2023.06.22.00.52.26; Thu, 22 Jun 2023 00:52:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbjFVHon (ORCPT + 99 others); Thu, 22 Jun 2023 03:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjFVHom (ORCPT ); Thu, 22 Jun 2023 03:44:42 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49C49FC for ; Thu, 22 Jun 2023 00:44:40 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qCEzd-0006k9-EK; Thu, 22 Jun 2023 09:44:37 +0200 Message-ID: <675a8893-429d-05be-b647-089b249c814c@leemhuis.info> Date: Thu, 22 Jun 2023 09:44:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Reply-To: Linux regressions mailing list Subject: Re: [6.4-rc6] Crash during a kexec operation (tpm_amd_is_rng_defective) Content-Language: en-US, de-DE To: Sachin Sant , Michael Ellerman Cc: open list , linuxppc-dev , jarkko@kernel.org References: <99B81401-DB46-49B9-B321-CF832B50CAC3@linux.ibm.com> <87o7lhfmoh.fsf@mail.lhotse> From: "Linux regression tracking (Thorsten Leemhuis)" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1687419880;2dcd4107; X-HE-SMSGID: 1qCEzd-0006k9-EK X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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, Thorsten here, the Linux kernel's regression tracker. Top-posting for once, to make this easily accessible to everyone. As Linus will likely release 6.4 on this or the following Sunday a quick question: is there any hope this regression might be fixed any time soon? Doesn't look like it, as it seems nothing happened for a few days, but maybe I missed something. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke On 15.06.23 06:57, Sachin Sant wrote: > >>> [ 34.381788] Code: 5463063e 408201c8 38210080 4e800020 60000000 60000000 60000000 7c0802a6 fbe10078 7c7f1b78 f8010090 e9230728 2c2c0000 41820020 7d8903a6 >> >> 2c: 28 07 23 e9 ld r9,1832(r3) >> 30: 50 00 89 e9 ld r12,80(r9) >> >> Where r3 is *chip. >> r9 is NULL, and 80 = 0x50. >> >> Looks like a NULL chip->ops, which oopses in: >> >> static int tpm_request_locality(struct tpm_chip *chip) >> { >> int rc; >> >> if (!chip->ops->request_locality) >> >> >> Can you test the patch below? >> > > It proceeds further but then run into following crash > > [ 103.269574] Kernel attempted to read user page (18) - exploit attempt? (uid: 0) > [ 103.269589] BUG: Kernel NULL pointer dereference on read at 0x00000018 > [ 103.269595] Faulting instruction address: 0xc0000000009dcf34 > [ 103.269599] Oops: Kernel access of bad area, sig: 11 [#1] > [ 103.269602] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA pSeries > [ 103.269606] Modules linked in: dm_mod(E) nft_fib_inet(E) nft_fib_ipv4(E) nft_fib_ipv6(E) nft_fib(E) nft_reject_inet(E) nf_reject_ipv4(E) nf_reject_ipv6(E) nft_reject(E) nft_ct(E) nft_chain_nat(E) nf_nat(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) bonding(E) tls(E) rfkill(E) ip_set(E) sunrpc(E) nf_tables(E) nfnetlink(E) pseries_rng(E) aes_gcm_p10_crypto(E) drm(E) drm_panel_orientation_quirks(E) xfs(E) libcrc32c(E) sd_mod(E) sr_mod(E) t10_pi(E) crc64_rocksoft_generic(E) cdrom(E) crc64_rocksoft(E) crc64(E) sg(E) ibmvscsi(E) scsi_transport_srp(E) ibmveth(E) vmx_crypto(E) fuse(E) > [ 103.269644] CPU: 18 PID: 6872 Comm: kexec Kdump: loaded Tainted: G E 6.4.0-rc6-dirty #8 > [ 103.269649] Hardware name: IBM,9080-HEX POWER10 (raw) 0x800200 0xf000006 of:IBM,FW1030.20 (NH1030_058) hv:phyp pSeries > [ 103.269653] NIP: c0000000009dcf34 LR: c0000000009dd2bc CTR: c0000000009eaa60 > [ 103.269656] REGS: c0000000a113f510 TRAP: 0300 Tainted: G E (6.4.0-rc6-dirty) > [ 103.269660] MSR: 800000000280b033 CR: 88484886 XER: 00000001 > [ 103.269669] CFAR: c0000000009dd2b8 DAR: 0000000000000018 DSISR: 40000000 IRQMASK: 0 [ 103.269669] GPR00: c0000000009dd2bc c0000000a113f7b0 c0000000014a1500 c000000090310000 [ 103.269669] GPR04: c00000009f770000 0000000000000016 0000060000007a01 0000000000000016 [ 103.269669] GPR08: c00000009f770000 0000000000000000 0000000000000000 0000000000008000 [ 103.269669] GPR12: c0000000009eaa60 c00000135fab7f00 0000000000000000 0000000000000000 [ 103.269669] GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 103.269669] GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 103.269669] GPR24: 0000000000000000 0000000000000016 c000000090310000 0000000000001000 [ 103.269669] GPR28: c00000009f770000 000000007a010000 c00000009f770000 c000000090310000 [ 103.269707] NIP [c0000000009dcf34] tpm_try_transmit+0x74/0x300 > [ 103.269713] LR [c0000000009dd2bc] tpm_transmit+0xfc/0x190 > [ 103.269717] Call Trace: > [ 103.269718] [c0000000a113f7b0] [c0000000a113f880] 0xc0000000a113f880 (unreliable) > [ 103.269724] [c0000000a113f840] [c0000000009dd2bc] tpm_transmit+0xfc/0x190 > [ 103.269727] [c0000000a113f900] [c0000000009dd398] tpm_transmit_cmd+0x48/0x110 > [ 103.269731] [c0000000a113f980] [c0000000009df1b0] tpm2_get_tpm_pt+0x140/0x230 > [ 103.269736] [c0000000a113fa20] [c0000000009db208] tpm_amd_is_rng_defective+0xb8/0x250 > [ 103.269739] [c0000000a113faa0] [c0000000009db828] tpm_chip_unregister+0x138/0x160 > [ 103.269743] [c0000000a113fae0] [c0000000009eaa94] tpm_ibmvtpm_remove+0x34/0x130 > [ 103.269748] [c0000000a113fb50] [c000000000115738] vio_bus_remove+0x58/0xd0 > [ 103.269754] [c0000000a113fb90] [c000000000a01dcc] device_shutdown+0x21c/0x39c > [ 103.269758] [c0000000a113fc20] [c0000000001a2684] kernel_restart_prepare+0x54/0x70 > [ 103.269762] [c0000000a113fc40] [c000000000292c48] kernel_kexec+0xa8/0x100 > [ 103.269766] [c0000000a113fcb0] [c0000000001a2cd4] __do_sys_reboot+0x214/0x2c0 > [ 103.269770] [c0000000a113fe10] [c000000000034adc] system_call_exception+0x13c/0x340 > [ 103.269776] [c0000000a113fe50] [c00000000000d05c] system_call_vectored_common+0x15c/0x2ec > [ 103.269781] --- interrupt: 3000 at 0x7fff805459f0 > [ 103.269784] NIP: 00007fff805459f0 LR: 0000000000000000 CTR: 0000000000000000 > [ 103.269786] REGS: c0000000a113fe80 TRAP: 3000 Tainted: G E (6.4.0-rc6-dirty) > [ 103.269790] MSR: 800000000280f033 CR: 42422884 XER: 00000000 > [ 103.269799] IRQMASK: 0 [ 103.269799] GPR00: 0000000000000058 00007fffc07a68c0 0000000110437f00 fffffffffee1dead [ 103.269799] GPR04: 0000000028121969 0000000045584543 0000000000000000 0000000000000003 [ 103.269799] GPR08: 0000000000100000 0000000000000000 0000000000000000 0000000000000000 [ 103.269799] GPR12: 0000000000000000 00007fff8089b2c0 000000011042f598 0000000000000000 [ 103.269799] GPR16: ffffffffffffffff 0000000000000000 000000011040fcc0 0000000000000000 [ 103.269799] GPR20: 0000000000008913 0000000000008914 0000000149c61020 0000000000000003 [ 103.269799] GPR24: 0000000000000000 0000000000000001 0000000000000003 00007fffc07a6a40 [ 103.269799] GPR28: 0000000110409f10 00007fff806419c0 0000000149c61080 0000000149c61040 [ 103.269833] NIP [00007fff805459f0] 0x7fff805459f0 > [ 103.269836] LR [0000000000000000] 0x0 > [ 103.269838] --- interrupt: 3000 > [ 103.269839] Code: 83a40006 2c090000 41820208 7c0802a6 79250020 7c25d840 f80100a0 41810224 fbe10088 f8410018 7c7f1b78 e9230728 7d8903a6 4e800421 e8410018 [ 103.269852] ---[ end trace 0000000000000000 ]— > > - Sachin