From nobody Fri Jun 11 09:47:46 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E793011CECED for ; Fri, 11 Jun 2021 09:48:46 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [94.130.200.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.bsd4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G1bdV5kCNz4ZvK for ; Fri, 11 Jun 2021 09:48:46 +0000 (UTC) (envelope-from herbert@gojira.at) Date: Fri, 11 Jun 2021 11:47:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1623404924; bh=LyxOz5jMnMGbBFWvUVy71X327bnDo74XqTzTgUAekW8=; h=Date:Message-ID:From:To:Cc:Subject:MIME-Version:Content-Type; b=2RQlmhN9uCm2CJ1qsAxe762Ttr3VplNwWDpLzpebR6EKfZAM0P17THy3+fJGr2T/G lKcCXBYC+OBENVRtKlrI3jr3vj13pfoZymubY9GhA8P299vjgGB5aO+GWszLxM5PwC o4eGTM5hs+KRXBECIGwCCEyn6hDWUShYDHCah/tx85xWxE4CqZE9Sbq+97H27d5uG5 WNUZAr8NjKFygkOZzs7Ul+gSUV0Twn0mRq4dwnLmWl+fMumM6BurvM4SVyFcDUdFxb ZXI9os2E/bwWSZgft/U6940rWSYGWv0BIKY1+I1x29XzjTBA5cMefnABqespCzhNFq dCJQyfCmXmd7A== Message-ID: <87v96k91h9.wl-herbert@gojira.at> From: "Herbert J. Skuhra" To: Hans Petter Selasky Cc: freebsd-arm@freebsd.org Subject: Re: Easily reproducible stable/13 kernel crash In-Reply-To: <6d268f28-373e-fd84-9fe8-9e39831760e5@selasky.org> References: <63c37775-f1f6-def7-1ca2-4ac0460c46e2@shrew.net> <87y2bhuehz.wl-herbert@gojira.at> <87wnr0vq79.wl-herbert@gojira.at> <6d268f28-373e-fd84-9fe8-9e39831760e5@selasky.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/28.0 Mule/6.0 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4G1bdV5kCNz4ZvK X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, 11 Jun 2021 09:18:32 +0200, Hans Petter Selasky wrote: > > On 6/11/21 9:02 AM, Herbert J. Skuhra wrote: > > On Fri, 11 Jun 2021 08:00:56 +0200, "Herbert J. Skuhra" wrote: > >> > >> On Fri, 11 Jun 2021 07:42:27 +0200, Matthew Grooms wrote: > >>> > >>> Hey all, > >>> > >>> If I build an up-to-date stable/13 arm64 kernel and type sysctl -a on > >>> a rpi4 system, it reboots every time. I've blown away the source and > >>> object tree multiple times and still get the same result. > >>> > >>> FreeBSD generic 13.0-STABLE FreeBSD 13.0-STABLE #1 > >>> stable/13-n245932-04c4bd7f7b5: Fri Jun 11 00:09:11 CDT 2021 > >>> mgrooms@x.x.x:/var/rpi4/build/usr/src/arm64.aarch64/sys/GENERIC arm64 > >>> > >>> Has anyone else been testing stable builds recently? I'll try to build > >>> a debug kernel and see if I can dig up more info. > >> > >> I can confirm this issue: Rasperry Pi 2 (armv7), 3 and 4 (both aarch64). > >> When booting kernel.old (from May 17th; e0f2b8aaf1ed) 'sysctl -a' > >> doesn't crash the system. > > > > The kernel from the May 27th snapshot (stable/13-n245691-024a9aa7010) > > is OK, the one from June 3rd (13-n245852-4775325dd66) isn't. > > > > Do you have the kernel backtrace of the resulting panic? So far I could only get: # sysctl net.inet.tcp.lro Fatal data abort: x0: ffff000000b25820 x1: ffff000000e4b6d8 x2: 0 x3: ffff0000abf7a650 x4: ffff0000abf7a5d8 x5: 0 x6: 0 x7: ffff0000abf7aaa0 x8: 0 x9: 0 x10: 0 x11: 0 x12: 3 x13: ffff000000e3a750 x14: f x15: f x16: 4048d2e8 x17: 403d15e4 x18: ffff0000abf7a540 x19: ffff000000e4b6d8 x20: ffff0000abf7a650 x21: ffff0000abf7a650 x22: 0 x23: ffff000000e4b6d8 x24: ffff000000b8e000 x25: ffff000000b8e000 x26: 40800 x27: 14 x28: 234000 x29: ffff0000abf7a540 sp: ffff0000abf7a540 lr: ffff0000004caef4 elr: ffff00000050355c spsr: 60000145 far: 0 esr: 96000006 panic: vm_fault failed: ffff00000050355c cpuid = 1 time = 1623404572 KDB: stack backtrace: #0 0xffff00000050d794 at kdb_backtrace+0x60 #1 0xffff0000004b9160 at vpanic+0x184 #2 0xffff0000004b8fd8 at panic+0x44 #3 0xffff0000007e86e8 at data_abort+0x1d8 #4 0xffff0000007c8874 at handle_el1h_sync+0x74 #5 0xffff0000004caef0 at sysctl_root_handler_locked+0x118 #6 0xffff0000004caef0 at sysctl_root_handler_locked+0x118 #7 0xffff0000004ca350 at sysctl_root+0x218 #8 0xffff0000004ca944 at userland_sysctl+0x18c #9 0xffff0000004ca778 at sys___sysctl+0x68 #10 0xffff0000007e7d34 at do_el0_sync+0x498 #11 0xffff0000007c8a1c at handle_el0_sync+0x90 Uptime: 1m26s Resetting system ... -- Herbert