From nobody Tue Apr 9 14:46:28 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 4VDTLT0TMJz5H752 for ; Tue, 9 Apr 2024 14:46:41 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 4VDTLS5Qh1z4Bqb for ; Tue, 9 Apr 2024 14:46:40 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2a58209b159so389927a91.3 for ; Tue, 09 Apr 2024 07:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712673999; x=1713278799; 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=Y4YR9HAQ68iRIicEZS5ODfht8syq0JCIbPrTYoYtYe0=; b=KUKbLJs8TXRcYvVAWxd/yWneTvwoAZkwOmwwAui+ZOaU4Kv77UC+VPRaNzKh7XRU5H 3pltEsEMtxr3QIUyO1Nmfps0HglQIC2viouTPRAJ0lCVGdacOpWbmSd4ZuHzmLWqfgGk il0W7wj0S2znF0FKjNprOlAi1Dl/jOycNLzIKnCREq0m11Oop+ys20/QaJoMAcwVrECt VSaRfdOQV6KtCmraTVANchSF/5zuo9NvE2ZMh5Ui7pTqq8NlFLtbcCaNlqNtJUioryIL hBTXAY2kdWeN52f6dTUbbIceTjTjwRyOvQnu0czf/AjHSuX1RO4+a0XYqdVJzq2D+h2V xZ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712673999; x=1713278799; 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=Y4YR9HAQ68iRIicEZS5ODfht8syq0JCIbPrTYoYtYe0=; b=KfsZIBVhq8s9PPqDx/SsrNsZkyL5a+A8aQOkju+IyZvRVCeh2QyOKhv0PM+/31Yxro x4iD+XG4x3u8ytCyy17K8i3KDDzup+a7ZpumZTO4q6Xlr+jC8ghOpInt0EhNN2+k9Pfu hYkZx7zRtj5U0E4DKQKA6szxsNYM9YA/Re2o0za59llY6rvlXYKP04dAJ5oQSGhM9Ctq s+Npx8VTmf0d3RB/HACJ4hKa+k6O4ols+P1UMxan1gOt6couDo0hMQDfV9YKvpsZk798 BbLdd6bb6ytbOwXWl4oRJ6+uJhDTknGFo3YMCqk2KhPbSnQd8qcK9LaBvKoEOdyazHQN 5oig== X-Gm-Message-State: AOJu0YxxQRUPOPxA0B7UEmoS3IJXqe0xaIsU5oOb/ccCUAGebpZ3C7fR 6+nIzXjnv3BuufbD0Q0smBIs+09bazwIiJRb0tEBWbk7hJwLRM6w5BO+JLrcOwGO+9mR3pusiYQ G1lS3oWWuythBHMC8HqJ7L9fw3Za4Ieg= X-Google-Smtp-Source: AGHT+IEx1WoUPocwbuzgh+5cnY0hezCvgjaLOOx5AAtfgTuZdCg20mlkmLBnltTKrSMSvatbCVM114VG0ODuQFSor8g= X-Received: by 2002:a17:90b:1d01:b0:2a5:457a:8263 with SMTP id on1-20020a17090b1d0100b002a5457a8263mr3767038pjb.19.1712673999228; Tue, 09 Apr 2024 07:46:39 -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 07:46:28 -0700 Message-ID: Subject: Re: Panic after update main-n269202-4e7aa03b7076 -> n269230-f6f67f58c19d To: current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4VDTLS5Qh1z4Bqb 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 U= TC 2024 root@freebeast.catwhisker.org:/common/S4/obj/usr/src/amd64.amd6= 4/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. 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: fffffe04= 8c204960 > 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 0xfffffe048c2= 045f0 > 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, rbp= =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 0xfffffe048c204f3= 0 > --- syscall (154, FreeBSD ELF64, nlm_syscall), rip =3D 0x3f00a2dfd2a, rsp= =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.