From nobody Sat Feb 22 14:47:45 2025 X-Original-To: freebsd-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 4Z0VGb4yVKz5nmVZ for ; Sat, 22 Feb 2025 14:47:51 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z0VGb0swfz3JC1 for ; Sat, 22 Feb 2025 14:47:51 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-7c089b2e239so328517785a.0 for ; Sat, 22 Feb 2025 06:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740235670; x=1740840470; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=F8jhihJNGo+FTzsKpG6jymZksOdvyOzSGrcgwgaEBY8=; b=KroR5Hqatp/VYPxSNwSAqbUFpt4bzR7CDQF1ZifzB+pqCOwb15HP6ynZIIgecXLmOQ z8C4noAGfmjLawMc9TD72TJsuUcjaqQmnVmYqpW5ra/ZL/Xk1usm1LUVvxVBOATcPfO5 JMCuFLK2OJ8V4onIbl7q803Wnt5AjEn4hcMSZ6ex5rIdthXZS13qaTYr3vC6kiUBkmVj JXd1CgznBY0iqV7LDz7PIuTYu1v5Ve/u8uL7oHHY0cHW2BCgzYE13oaZBmpfPGUlxDk9 VTBatm18LGuaL0Njn/NVKRCfslVOSoHielltwBjAe/UC3GzSbOrPh4GnwGYh1KzaRiW7 hNNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740235670; x=1740840470; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F8jhihJNGo+FTzsKpG6jymZksOdvyOzSGrcgwgaEBY8=; b=gfpJodBssuz6OyhJlpRcvryBOrJ9hclqBpMNcv3fB886xY4PKKxlmMIqEO4qoaJ4Ti x2rGb3HOOHym450nBIUmFxnfd0OGG8QCkwpqL9V3naxyszxLiblcwjjtEnrV2nsBEdyA ct3pAYmQYQSFB7+fhSF8Vme9YhRlb02FiCJJFJXvpr8pSAQl0faL3UEZFNghTET0+UHc nN3iq9dkJvER26GBpZRtU6BTtvyD7EYZ6OeVxJ4Ct/p+E1jTZ/tLvJx1y1FWHYmsXIDN 64HgskGKOMY9rOdq2KD4r3G3QB7b3XG56EHIFABYugJGU8zCjA88RmJfSTRhfg+DTYzJ 7BcQ== X-Gm-Message-State: AOJu0YxbET9vHhCe+eaYCHr0AaXnYk9cNnfWD5Va0yKWlm5D4TFkqXn2 P7/C6vQvxEDZaR0tBVmmPsnbieBdkOi2uVU4xtnL/AWh9l2hMc4Qa56Bog== X-Gm-Gg: ASbGnctcsAAUV7VpxFQ6rkvWReyVv7hZ8/F7zo3qk1gveyRGXYqcsK4AoaVWPh7Evcv 8xgpjmq39ZCDaIVQFWtf5lKq8MopPkqnt5YIkORQrUEvit1y5w97PJ+L+vL8IW5bolL4IP+QU/H Xhxn+Jbf+rKH/lbq9EBlmp3/zOG6+/9jQ5AATiSHxQTr6hqOXT+X6IUwzPCe+9aiL9PF0EvUa4x KLxpHuqtUEvpzLwgz0h53/eFnjhdKTX5/QiIXsnzXkj22jjORC67Ysg8Seqz71lyYyPAkw57bCe YInpv4LSvnVyZvvdXhfZPURcdZ9YPVr2Zd6pS4gC X-Google-Smtp-Source: AGHT+IEASqYvbkmEzOZaR2XFe6LEK7S8tMM1NBrenTu8X18Ko2hUooM8jd+kf9Pn0oTLyCRlhFcpzQ== X-Received: by 2002:a05:620a:4051:b0:7c0:b384:77bb with SMTP id af79cd13be357-7c0c21ad180mr1308235985a.14.1740235669934; Sat, 22 Feb 2025 06:47:49 -0800 (PST) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7c0a46dbcdcsm672628285a.106.2025.02.22.06.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Feb 2025 06:47:48 -0800 (PST) Date: Sat, 22 Feb 2025 09:47:45 -0500 From: Mark Johnston To: Alexander Leidinger Cc: Current FreeBSD Subject: Re: crash with head as of 2h ago (in_pcblbgroup_insert) Message-ID: References: <3d6c377f2567aaa2e0601a7c11c729d5@Leidinger.net> <8dfe920e6d26603030744799102133a0@Leidinger.net> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8dfe920e6d26603030744799102133a0@Leidinger.net> 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)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Z0VGb0swfz3JC1 X-Spamd-Bar: ---- On Sat, Feb 22, 2025 at 01:06:02PM +0100, Alexander Leidinger wrote: > Am 2025-02-21 22:31, schrieb Mark Johnston: > > On Thu, Feb 20, 2025 at 10:27:28AM +0100, Alexander Leidinger wrote: > > > Hi, > > > > > > I get this backtrace: > > > ---snip--- > > > [102] panic: invalid local group size 16 and count 16 > > > [102] cpuid = 17 > > > [102] time = 1740041984 > > > [102] KDB: stack backtrace: > > > [102] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > > > 0xfffffe07453a5b80 > > > [102] vpanic() at vpanic+0x136/frame 0xfffffe07453a5cb0 > > > [102] panic() at panic+0x43/frame 0xfffffe07453a5d10 > > > [102] in_pcblbgroup_insert() at in_pcblbgroup_insert+0xaa/frame > > > 0xfffffe07453a5d30 > > > [102] in_pcblisten() at in_pcblisten+0x92/frame 0xfffffe07453a5d50 > > > [102] tcp_usr_listen() at tcp_usr_listen+0x18a/frame > > > 0xfffffe07453a5db0 > > > [102] solisten() at solisten+0x47/frame 0xfffffe07453a5dd0 > > > [102] kern_listen() at kern_listen+0x3f/frame 0xfffffe07453a5e00 > > > [102] amd64_syscall() at amd64_syscall+0x15b/frame 0xfffffe07453a5f30 > > > [102] fast_syscall_common() at fast_syscall_common+0xf8/frame > > > 0xfffffe07453a5f30 > > > ---snip--- > > > > > > This is with head updated at 2025-02-20-080119 CET. The previous > > > world is > > > from 1 month ago (2025-01-22-120655). > > > > I believe this would be fixed by https://reviews.freebsd.org/D49100 > > So I was just luck that this works ATM... or unlucky that I got a panic on > the previous try. > > > Please note that I haven't tested it yet (currently running it through > > the regression test suite to start). > > As the config and number of applications/jails/services started didn't > change, any idea how to provoke this race condition on a system with some > real applications (instead of test cases; if you need an independent > validation)? A reboot loop until it happens is not really something I want > to do on this system. I added a test case which triggers the same panic to the review. I don't have any suggestions for how to trigger it in your setup, I just offer the patch to keep your system stable until the next update.