From nobody Tue Apr 09 15:33:06 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 4VDVNL2zpnz5HBl3 for ; Tue, 9 Apr 2024 15:33:22 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (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 4VDVNK3vCYz4Mqg; Tue, 9 Apr 2024 15:33:21 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=OYFRX4WN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-2a484f772e2so2656942a91.3; Tue, 09 Apr 2024 08:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712676798; x=1713281598; 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=GrjiRaul9XgcFBy+gOYKeCS0BUrQn8hq6yEJ7HWnkHQ=; b=OYFRX4WNwTF+jx4yhLglHedoRK/N5ppMNvI6MjJKhacBpV3/QFkb0dPgsxgzEoDF7V unic2M2nCYs+dFk0pJVagPQnv7bZrcu2PhS/sqF5OB1IFYQ98lyRIv8EVnfq+2ZZIg1u uW+fVZLdMaJZlQYR3kPeM442BqjtxJZJC2qhT2RRjj+VwCO6p++mJZ+kLPgJH/dt7Ygi dsdHV1G2rUujE40aDbyTOZtd4A30SVLs1oKk5/YSnC5LFMMCAir5yKbKxSUVd4/CD3HA wPHH2Tv3b/1W+yhhxQ2ECGys92b4w8tc9Z2iTOP4iwXRgSuMhFfNBKNP55LVnOIvaHVZ /DSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712676798; x=1713281598; 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=GrjiRaul9XgcFBy+gOYKeCS0BUrQn8hq6yEJ7HWnkHQ=; b=GfNRTs2AvEKadq+Uib4so0bE0urQT+AFxgc6+DFxnVhndEnBwunuc8IG5Yj08xlm5i Zqjf185wb6ZprOuroapnWy9MC7I2HS2cGpPsMUwDnZE3kVGFf9dxm0km4Hjki9k5VBqw s1MBECf6Gy+HE6ptgWsOuToJAvvHcXAOxgyRWZvEoKtinwavQ2/ir+MNadzcS8Ig5D6d e0hkqvXVJ7XnoY3wCRj+YI7TCO0Qz8Z6WuIho4r/ltq13Xu+zN/maehH57SS+U9fyf+5 vdlQo4k1NY6p8ynP25xFnrQRyyyKhJpTQP7Pbny2NHhXrlNFlg+OEhOw6+MmxrmmKv+N TRtA== X-Forwarded-Encrypted: i=1; AJvYcCUngohFjGhL6Y4qkvQHs2+5ktvPSbJlHdP6wmnEqqWbIbqtT6B7N5egUTkFYOR2zrDh3rfWzHeChlE3iip8U7gJV0usRVHC1ISCyGOKKv1QTqVYbgF4SBM= X-Gm-Message-State: AOJu0YzR8g39gi3SldQy+beUF8j8ZgC8fNPD4aD/3Ky04HPUMmhSe1ta n2wi00OqTCNGEcwOr4ijxu4qLGaIuL/Ymm44iZF0sU5RkBF36ifHpmnLhGLuTeefBsvtNANw7IU RewQghORDFAxk2jon6mTLYAEx6AYc3WU= X-Google-Smtp-Source: AGHT+IFWYBc9pbMGrU3xci4dzFb8ueTCsHQkCGsNU8L7Thc3NICgkyHlxEAX+mo8pvAlTMPBH0pHcCiA4I/SH4JOP0E= X-Received: by 2002:a17:90a:a005:b0:2a2:ea20:2074 with SMTP id q5-20020a17090aa00500b002a2ea202074mr11439385pjp.23.1712676797949; Tue, 09 Apr 2024 08:33:17 -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:33:06 -0700 Message-ID: Subject: Re: Panic after update main-n269202-4e7aa03b7076 -> n269230-f6f67f58c19d To: current@freebsd.org, tuexen@freebsd.org, Gleb Smirnoff Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.42 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.42)[-0.424]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1031:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[current@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-Rspamd-Queue-Id: 4VDVNK3vCYz4Mqg On Tue, Apr 9, 2024 at 8:04=E2=80=AFAM Rick Macklem wrote: > > 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.= amd64/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. Oops, my bad, got this wrong. The commit is d80a97d, when it added PR_SOCKBUG to the pr_flags for AF_UNIX/SOCKSTREAM. I've added glebius@ to the email. rick > > 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: ffff= fe048c204960 > > > 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 0xfffffe0= 48c2045f0 > > > 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 0xfffffe048c2= 04f30 > > > --- 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= .