From owner-freebsd-stable@freebsd.org Wed Jul 10 12:52:59 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0E59515D63A6 for ; Wed, 10 Jul 2019 12:52:59 +0000 (UTC) (envelope-from matthias.schuendehuette@siemens.com) Received: from gecko.sbs.de (gecko.sbs.de [194.138.37.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gecko.sbs.de", Issuer "Siemens Issuing CA Internet Server 2017" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A3358A7F2 for ; Wed, 10 Jul 2019 12:52:55 +0000 (UTC) (envelope-from matthias.schuendehuette@siemens.com) Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id x6AClEjH027791 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Jul 2019 14:47:14 +0200 Received: from [147.54.65.0] (md1tafvc.ad001.siemens.net [147.54.65.0]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTPS id x6AClEbN006247 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Wed, 10 Jul 2019 14:47:14 +0200 From: "Schuendehuette, Matthias (LDA IT PLM)" Subject: Re: GENERIC crash 11.3-PRERELEASE (i386) To: Konstantin Belousov Cc: "Osipov, Michael" , "'freebsd-stable@freebsd.org'" References: <1EFE239F82F279488E86A61C92D5E2DE0A082864@DENBGAT9EJ1MSX.ww902.siemens.net> <20190627185956.GP8697@kib.kiev.ua> <1EFE239F82F279488E86A61C92D5E2DE0A088124@DENBGAT9EJ1MSX.ww902.siemens.net> <20190703135435.GD47193@kib.kiev.ua> <1EFE239F82F279488E86A61C92D5E2DE0A0883D1@DENBGAT9EJ1MSX.ww902.siemens.net> <1EFE239F82F279488E86A61C92D5E2DE0A08852F@DENBGAT9EJ1MSX.ww902.siemens.net> <20190705191149.GH47193@kib.kiev.ua> Organization: Siemens AG, LDA IT PLM Message-ID: <58396a6c-0b74-72ae-2829-434b1a4ed1c4@siemens.com> Date: Wed, 10 Jul 2019 14:47:14 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190705191149.GH47193@kib.kiev.ua> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 6A3358A7F2 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dmarc=pass (policy=none) header.from=siemens.com; spf=pass (mx1.freebsd.org: domain of matthias.schuendehuette@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=matthias.schuendehuette@siemens.com X-Spamd-Result: default: False [-5.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+exists:194.138.37.40.spf.siemens.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-0.78)[asn: 15465(-3.91), country: DE(-0.01)]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[zetes.siemens.com,hylas.siemens.com,gordi.siemens.com,hephaistos.siemens.com,meleagros.siemens.com,paxos.siemens.com,balduin.siemens.com]; DMARC_POLICY_ALLOW(-0.50)[siemens.com,none]; NEURAL_HAM_SHORT(-0.91)[-0.910,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15465, ipnet:194.138.36.0/23, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_IN_DNSWL_HI(-0.50)[40.37.138.194.list.dnswl.org : 127.0.13.3] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2019 12:52:59 -0000 Hello Konstantin, the 'svn' output: ***** root@blnn719x - /usr/src 2052 # svn st ?       sys/i386/conf/BLNN719X root@blnn719x - /usr/src 2053 # svn info Path: . Working Copy Root Path: /usr/src URL: https://svn.freebsd.org/base/stable/11 Relative URL: ^/stable/11 Repository Root: https://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 349719 Node Kind: directory Schedule: normal Last Changed Author: delphij Last Changed Rev: 349718 Last Changed Date: 2019-07-04 09:32:25 +0200 (Thu, 04 Jul 2019) ***** The last lines of the verbose boot messages can be found here: https://www.dropbox.com/preview/FreeBSD-stable/Boot_verbose.jpg Thank you very much so far Matthias Am 05.07.2019 um 21:11 schrieb Konstantin Belousov: > On Fri, Jul 05, 2019 at 11:12:29AM +0000, Schuendehuette, Matthias wrote: >> Hello Konstantin, >> >> *** >> Obviously Outlook has destroyed my last reply - here again: >> *** >> >> I did what you suggested: deleted the content of /usr/src and 'svn co' >> the 11-STABLE sources again. >> >> I investigated the three >> source files mentioned below and confirmed the 'svn diff' results: >> >> "hw_mds_recalculate();" has been removed from >> >> sys/amd64/amd64/initcpu.c and >> sys/i386/i386/initcpu.c >> >> >> and: >> >> "static void >> hw_mds_recalculate_boot(void *arg __unused) >> { >> >> hw_mds_recalculate(); >> } >> SYSINIT(mds_recalc, SI_SUB_SMP, SI_ORDER_ANY, hw_mds_recalculate_boot, NULL);" >> >> has been inserted into 'sys/x86/x86/cpu_machdep.c' >> >> >> That's still the case for 'r349719'. Also remains true that a kernel of >> 'r349719' crashes as described earlier. > Ok, show me > 1. svn st and svn info output of the checkout you use > 2. While kernel messages with verbose boot enabled, for your machine, and > the kernel which fails to boot. >> >> With best regards and have a nice weekend >> >> Matthias Schuendehuette >> >> >> >> >> -----Ursprüngliche Nachricht----- >> Von: Konstantin Belousov >> Gesendet: Mittwoch, 3. Juli 2019 15:55 >> An: Schuendehuette, Matthias (LDA IT PLM) >> Cc: 'freebsd-stable@freebsd.org'; Osipov, Michael (LDA IT PLM) >> Betreff: Re: GENERIC crash 11.3-PRERELEASE (i386) >> >> On Wed, Jul 03, 2019 at 08:42:21AM +0000, Schuendehuette, Matthias wrote: >>> Hello Konstantin, >>> >>> I did some research regarding the kernel crash with the following results> >>> >>> 1) Last working kernel is: >>> >>> "FreeBSD 11.3-BETA1 (BLNN719X) #8 r348361: Wed Jul 3 09:30:17 CEST 2019" >>> >>> 1a) DDB-Backtrace of the crashing kernel r348362 can be seen on "Boot_BT.jpg" >>> in the dropbox directory >>> "https://www.dropbox.com/sh/buzxekimo2h2r67/AADpUvLndhm2SHa5t9s9Ckksa?dl=0" >>> >>> >>> 2) Source code revision is: >>> >>> root@blnn719x - /usr/src >>> 2056 # svn info >>> Path: . >>> Working Copy Root Path: /usr/src >>> URL:https://svn.freebsd.org/base/stable/11 >>> Relative URL: ^/stable/11 >>> Repository Root:https://svn.freebsd.org/base >>> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f >>> Revision: 348361 >>> Node Kind: directory >>> Schedule: normal >>> Last Changed Author: jkim >>> Last Changed Rev: 348343 >>> Last Changed Date: 2019-05-29 02:00:52 +0200 (Wed, 29 May 2019) >>> >>> >>> 3) Diff to next revision: >>> >>> root@blnn719x - /usr/src >>> 2057 # svn diff -r 348362 >>> Index: sys/amd64/amd64/initcpu.c >>> =================================================================== >>> --- sys/amd64/amd64/initcpu.c (revision 348362) >>> +++ sys/amd64/amd64/initcpu.c (working copy) >>> @@ -247,6 +247,7 @@ >>> } >>> hw_ibrs_recalculate(); >>> hw_ssb_recalculate(false); >>> + hw_mds_recalculate(); >>> switch (cpu_vendor_id) { >>> case CPU_VENDOR_AMD: >>> init_amd(); >>> Index: sys/i386/i386/initcpu.c >>> =================================================================== >>> --- sys/i386/i386/initcpu.c (revision 348362) >>> +++ sys/i386/i386/initcpu.c (working copy) >>> @@ -769,6 +769,7 @@ >>> elf32_nxstack = 1; >>> } >>> #endif >>> + hw_mds_recalculate(); >>> if ((amd_feature & AMDID_RDTSCP) != 0 || >>> (cpu_stdext_feature2 & CPUID_STDEXT2_RDPID) != 0) >>> wrmsr(MSR_TSC_AUX, PCPU_GET(cpuid)); >>> Index: sys/x86/x86/cpu_machdep.c >>> =================================================================== >>> --- sys/x86/x86/cpu_machdep.c (revision 348362) >>> +++ sys/x86/x86/cpu_machdep.c (working copy) >>> @@ -1118,14 +1118,6 @@ >>> } >>> } >>> >>> -static void >>> -hw_mds_recalculate_boot(void *arg __unused) >>> -{ >>> - >>> - hw_mds_recalculate(); >>> -} >>> -SYSINIT(mds_recalc, SI_SUB_SMP, SI_ORDER_ANY, hw_mds_recalculate_boot, NULL); >>> - >>> static int >>> sysctl_mds_disable_handler(SYSCTL_HANDLER_ARGS) >>> { >>> Index: . >>> =================================================================== >>> --- . (revision 348362) >>> +++ . (working copy) >>> >>> Property changes on: . >>> ___________________________________________________________________ >>> Modified: svn:mergeinfo >>> ## -0,1 +0,0 ## >>> Reverse-merged /head:r348075 >>> >>> >>> >>> Somewhere here is the problem... >> Definitely, there is some problem, but I doubt that it is due to the >> revision in the svn. The diff above is the reverse of the stable/11 >> r348362 that was committed on 2019-05-29. Indeed, the missed (or >> reverted) r348362 would cause exactly the symptoms you described with >> failing AP startup. >> >> I have no idea why do you have the change reverted with merge info, in >> your sources. Clean up and retry with pristine tree. >> >>> >>> >>> with best regards >>> Matthias Schündehütte >>>