From nobody Tue Apr 09 15:04:01 2024 X-Original-To: current@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 4VDTkl1l4rz5H8jW for ; Tue, 9 Apr 2024 15:04:15 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VDTkj6VgZz4Fm1; Tue, 9 Apr 2024 15:04:13 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=KETsCHCA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2607:f8b0:4864:20::52a as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5e152c757a5so3543486a12.2; Tue, 09 Apr 2024 08:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712675052; x=1713279852; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=smamsmKuMcJfZTSR82F47z4ebp9YRX2AsX+tgO2ceqw=; b=KETsCHCAXc76R99aj432aezIk9v2fI+tbgsQKQZgkM6hbuwSxx8dcakfUzc0Gj0ZNw EFXLjefVGO4F1ycIyN5uRlNA/aEW+16wlYmf9LbzuTJUucBlU+jqAzDkzOh/kwUFSFqA HCirRgRodjvqs80MpXP3P/yOrCSylyGtlMkq7tR0+S2qKkyjgm1IYktZRPHEzyX5lFWe 0ySg6X6Ost6gnrxr0bHUbnhD+fXr0W0pihVs4FQpP9dHzXDKjgnaODqprbDDpKfNBfMI p0sWrYQUm1BKBclcuQ6Pi44STMHzYqq4ixhtfCSiO6SoWCfoNehmcgvN55hhdZQTDxik E6TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712675052; x=1713279852; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=smamsmKuMcJfZTSR82F47z4ebp9YRX2AsX+tgO2ceqw=; b=Q+zL0Rw99ysN01SlpkkbLcNCocq/9++/YTUu4B4UtjynHAM7lk2pXyd6SCociFJN8U Rh5cooCzUMov18x/iMUiPOomigKX/CjgIx09sw48ok7kzALR8Ql83BjVGWtlKuey6ssZ J/dxUFGf/f086qhDNfgp/PPRQ1YaJX0OcIMUesC5Pdl2wSPoG0Z0h9T/Yfp+xYhz3PVg xwqL2v3s2UvR9oQBC0pbShmNVyXQSlyvTHI4MNL8ayz/NiJIW6AbfTJT7Lt03Q27rXlQ FTTMhStoI+ZMKHg51mhj7IBbWu6LxxTucQ1x7SRivO5RQb5loDtIoaVGVFIXrpKNdRLF eOtQ== X-Forwarded-Encrypted: i=1; AJvYcCVW+7QAQ4qqlkCHVTBWSgMI6X0bwKz20LSAf92h1Hw0cUoQlgxj4ml4AUJzvZJMN+naJl6vKsFuK86evOQEIs7qyCY= X-Gm-Message-State: AOJu0YwVkPfNL84fjsVkhfn7mCBUEhUaBBQGJt8NF97KA5dsQMu4c+76 j409tbk6hSUP4DTImDccBUKjHOvqdDaYtrqAz5NdaurJ8HNQo9t81UcIXLtpHMKjdiAoYAHBMvJ 72kQKrtgVgNtHbWnogjDotCsWEkWYDPk= X-Google-Smtp-Source: AGHT+IFAO+yRIeITtfVYVxb2H+lZHf/mgtLL7vUB6pF4yQyQOVVo/JSFuUp+Z3D0X7ylZTkGKoRXfrZq1aVoeKswmgs= X-Received: by 2002:a17:90a:8996:b0:2a3:6e4:31e7 with SMTP id v22-20020a17090a899600b002a306e431e7mr9767437pjn.8.1712675052230; Tue, 09 Apr 2024 08:04:12 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Rick Macklem Date: Tue, 9 Apr 2024 08:04:01 -0700 Message-ID: Subject: Re: Panic after update main-n269202-4e7aa03b7076 -> n269230-f6f67f58c19d To: current@freebsd.org, tuexen@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.990]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[current@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::52a:from] X-Rspamd-Queue-Id: 4VDTkj6VgZz4Fm1 On Tue, Apr 9, 2024 at 7:46=E2=80=AFAM Rick Macklem wrote: > > On Tue, Apr 9, 2024 at 4:47=E2=80=AFAM David Wolfskill wrote: > > > > Machine had been running: > > > > FreeBSD 15.0-CURRENT #43 main-n269202-4e7aa03b7076: Mon Apr 8 11:19:58= UTC 2024 root@freebeast.catwhisker.org:/common/S4/obj/usr/src/amd64.am= d64/sys/GENERIC amd64 1500018 1500018 > > > > This was an in-place source update, after updating sources to > > main-n269230-f6f67f58c19d. On reboot (after "make installworld" > > completed, I see this on the serial console (copy/pasted): > > > > ... > > Starting lockd. > I'd guess this is caused by some recent change to AF_UNIX socket > creation. The crash appears to be either the SOCK_LOCK() or > SOCKBUF_LOCK(&so->so_rcv) not being initialized. > If you can find out what source line# corresponds to > clnt_vc_create+0x4f4 you can probably tell which one it is. > > All local_rpcb() does is a > error =3D socreate(AF_LOCAL, &so, SOCK_STREAM, 0, curthread->td_ucred, > curthread); > and then calls clnt_vc_create(..so..) with the socket. > > I think that socreate() is not initializing one of those two mutexes > for some reason. Looks to me like this was caused by commit 681711b. I've added tuexen@ to the post, since he committed it. rick > > rick > > > > > > > Fatal trap 12: page fault while in kernel mode > > cpuid =3D 9; apic id =3D 09 > > fault virtual address =3D 0x18 > > fault code =3D supervisor read data, page not present > > instruction pointer =3D 0x20:0xffffffff80b208c5 > > stack pointer =3D 0x28:0xfffffe048c204920 > > frame pointer =3D 0x28:0xfffffe048c204960 > > code segment =3D base 0x0, limit 0xfffff, type 0x1b > > =3D DPL 0, pres 1, long 1, def32 0, gran 1 > > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > > current process =3D 1208 (rpc.Starting automountd. > > lockd) > > rdi: 0000000000000000 rsi: fffff801078b0740 rdx: 0000000000000000 > > rcx: 000000000000010a r8: ffffffff818d30f0 r9: 0000000000000000 > > rax: 0000000000000000 rbx: 00000000Starting powerd.00000018 rbp: fffffe= 048c204960 > > r10: 0000000000010000 r11: 0000000000000001 r12: fffff80274e32c18 > > r13: 000000000000010a r14: fffff80274e32c00 r15: ffffffff812ae38a > > trap number =3D 12 > > panic: page fault > > cpuid =3D 9 > > time =3D 1712662362 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe048= c2045f0 > > vpanic() at vpanic+0x135/frame 0xfffffe048c204720 > > panic() at panic+0x43/frame 0xfffffe048c204780 > > trap_fatal() at trap_fatal+0x40b/frame 0xfffffe048c2047e0 > > trap_pfault() at trap_pfault+0xa0/frame 0xfffffe048c204850 > > calltrap() at calltrap+0x8/frame 0xfffffe048c204850 > > --- trap 0xc, rip =3D 0xffffffff80b208c5, rsp =3D 0xfffffe048c204920, r= bp =3D 0xfffffe > > 048c204960 --- > > __mtx_lock_flags() at __mtx_lock_flags+0x45/frame 0xfffffe048c204960 > > clnt_vc_create() at clnt_vc_create+0x4f4/frame 0xfffffe048c204ab0 > > local_rpcb() at local_rpcb+0x11b/frame 0xfffffe048c204b50 > > rpcb_unset() at rpcb_unset+0x24/frame 0xfffffe048c204bb0 > > svc_tp_create() at svc_tp_create+0xee/frame 0xfffffe048c204c90 > > sys_nlm_syscall() at sys_nlm_syscall+0x3d0/frame 0xfffffe048c204e00 > > amd64_syscall() at amd64_syscall+0x158/frame 0xfffffe048c204f30 > > fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe048c204= f30 > > --- syscall (154, FreeBSD ELF64, nlm_syscall), rip =3D 0x3f00a2dfd2a, r= sp =3D 0x3f00 > > 96f7168, rbp =3D 0x3f0096f7230 --- > > KDB: enter: panic > > [ thread pid 1208 tid 101107 ] > > Stopped at kdb_enter+0x33: movq $0,0x104eb92(%rip) > > db> > > > > > > Given suitable clues, I can poke at it a bit -- this is my "build > > machine," so it doesn't have critical work to do at the moment. (I > > would normally have powered it down for the day: here's no need for > > it to be wasting energy.) > > > > Laptops are still building ports under stable/14 -- something seems > > to want the llvm17 port, and they have firefox to build, so they > > won't be testing CURRENT/head for a while, yet. > > > > Peace, > > david > > -- > > David H. Wolfskill david@catwhisker.org > > Alexey Navalny was a courageous man; Putin has made him a martyr. > > > > See https://www.catwhisker.org/~david/publickey.gpg for my public key.