Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4592572iob; Sun, 8 May 2022 18:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmSTuMj42GJCyxyuqRN9InmuolWrc4AdmNO2ehCqlrh2cb+Vw6UYY7DN//Kc2e9l69Y8ro X-Received: by 2002:a63:1841:0:b0:3c1:7361:b263 with SMTP id 1-20020a631841000000b003c17361b263mr11311067pgy.405.1652059912062; Sun, 08 May 2022 18:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652059912; cv=none; d=google.com; s=arc-20160816; b=QTNFEPT9d4pyNuoRfZQtDVm3NtuHPDmlpB6ACv4c9BSy8EvKaN+v7NRJvZ05HG9Iei JtSRoZ1uZZncLbdemJvm0vqrvq0Bz+LFL/oYeg6rOHsJrewhaNDZN0KJpbFyCe6X8nUH iJKOluJJNtdVra95xru0ifrc0DnlNZ0sGvb4zVImAzzr27yl2is2EkptwinzfyvTa/3d CABy3sKSpU2GbOSz0qTNOKL/5FV8mf1hkya82XihYUJAGzIFUaaHX2j5sMITFu1Jxe/C EW9MqV6RA/jLqiuWta6MngGAaf25v1GOPThw5rU1aeGEf3pF63n1i6S0rSiY322uljF3 fB6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=SPOE0gYWj9j1dUjvgP39Og9ua3b0mQKYArT3BeYIUVI=; b=MIur20nSyQp7H5cNsKOcc+8RST42z6aco2blZhODJfAXYYaomEVEMc+K2nnUQ65FeG Ir1MypvINr59k6wDBWwJzzVEPXnVkXXCIY6GvaqHJDDcwlI/rXr64KROD2nfZY2iwz7P Du5ct1tneiRVDrVFHgEKar9ItbliXwd4GP1iPrs3xOmNIIt9ZCc5XMPMYS49H3V1MsAG ycVI+DetKcw2eU/QXGxUI27m6Ch5EnvDeoMAC5Uzwj6CLUssofV73z6NMR/10exwKkft lARLLjXttIiVaLKmagaib/HOSUQLWb/D0z77hOjix59hlZ7w8FbOaALEmQv4/WD6aLyZ 5iVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=255WrnOc; dkim=neutral (no key) header.i=@linutronix.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v4-20020a631504000000b003ab8129839asi12396952pgl.325.2022.05.08.18.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 18:31:52 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=255WrnOc; dkim=neutral (no key) header.i=@linutronix.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B7D551C106; Sun, 8 May 2022 18:30:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389799AbiEFIDB (ORCPT + 99 others); Fri, 6 May 2022 04:03:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389792AbiEFIC6 (ORCPT ); Fri, 6 May 2022 04:02:58 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671D567D1D; Fri, 6 May 2022 00:59:16 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651823954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SPOE0gYWj9j1dUjvgP39Og9ua3b0mQKYArT3BeYIUVI=; b=255WrnOczyR8EQwEk84iFJCj7oJ4quj5izYkLwsSq66vyRivpLwlq/pzCLKdSma1xzKEzh LNdM83Cwb2R36TqLk3wXJygrGjsD9Dgs+XpP5gAXFp0gDfQLYp8if4ybJG89BIE1UzhfaY XH3R8Rz0YYqdGVfivs86USKPOop6pSfFUQWEpVF/wGdAih70WGXSRLaEWsn68XKdReifig UZp1vw0ODYvXvzx9BgK90PQ2XnWbcpf5n2EqOZZQD1kDcQc8AA9AAEr1Wb0DYYVrQZjZ0h GDe+ZTOnoCi6DViTIX0SGN5dQhSsspMkMMEADk4lUutXu/21TeFf8URptclHZg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651823954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SPOE0gYWj9j1dUjvgP39Og9ua3b0mQKYArT3BeYIUVI=; b=pevZyCpSMuLeLpDdi23KVJ4rQtQaXyYYUTbDx6+vxW8a/19C9mM8QlRtryJ71e/4Bqt67m 2tO7cvcCscS9otDw== To: kernel test robot , "Jason A. Donenfeld" Cc: 0day robot , Arnd Bergmann , Theodore Ts'o , LKML , lkp@lists.01.org, linux-crypto@vger.kernel.org, nathan@kernel.org, "Jason A. Donenfeld" Subject: Re: [timekeeping] 3aeaac747d: PANIC:early_exception In-Reply-To: <20220506032023.GA23061@xsang-OptiPlex-9020> References: <20220506032023.GA23061@xsang-OptiPlex-9020> Date: Fri, 06 May 2022 09:59:13 +0200 Message-ID: <8735hnhz1q.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, May 06 2022 at 11:20, kernel test robot wrote: > PANIC: early exception 0x0d IP 10:ffffffff812cef11 error 0 cr2 0xffff888004a3aff8 > [ 0.000000][ T0] add_device_randomness (kbuild/src/rand-3/drivers/char/random.c:1028) > [ 0.000000][ T0] ? dmi_walk_early (kbuild/src/rand-3/drivers/firmware/dmi_scan.c:470) > [ 0.000000][ T0] dmi_walk_early (kbuild/src/rand-3/drivers/firmware/dmi_scan.c:151) > [ 0.000000][ T0] dmi_present (kbuild/src/rand-3/drivers/firmware/dmi_scan.c:605) Duh. So this wants to be: --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -2380,6 +2381,20 @@ static int timekeeping_validate_timex(co return 0; } +/** + * random_get_entropy_fallback - Returns the raw clock source value, + * used by random.c for platforms with no valid random_get_entropy(). + */ +unsigned long random_get_entropy_fallback(void) +{ + struct tk_read_base *tkr = &tk_core.timekeeper.tkr_mono; + struct clocksource *clock = READ_ONCE(tkr->clock); + + if (!timekeeping_suspended && clock) + return clock->read(clock); + return 0; +} +EXPORT_SYMBOL_GPL(random_get_entropy_fallback); /** * do_adjtimex() - Accessor function to NTP __do_adjtimex function