From nobody Mon Jan 13 06:33:14 2025 X-Original-To: freebsd-net@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 4YWjBQ6NzWz5kdPM for ; Mon, 13 Jan 2025 06:33:18 +0000 (UTC) (envelope-from SRS0=vt9c=UF=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YWjBQ2z9hz3HN9; Mon, 13 Jan 2025 06:33:18 +0000 (UTC) (envelope-from SRS0=vt9c=UF=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Mon, 13 Jan 2025 07:33:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1736749995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=5RDBMyj9S2OG3+cM0mX1DBgaVx18Fu9lvMD9rJJPPF8=; b=fNeUfY/NTWmAuWNZSHM2jYJsq4Io+NYVyQSLM6mHxw6QGpzofd24+EMyVml7QQYgFa8jxQ fMRqeKNxBGzmjLdZbV9ufjs6nOB68mun9p0EnJzoM4WSlxKHEPRIfStFeWdkKQ0dwTeSfZ 0Od7hkrNYYublozZsydxMHruVUBk9crUP+0/6F46Q6rxsSa/5q3ZiQrgplMVkranon94Tb /75MyfeFofvR19psfYeJuJ76ft7o7GCV9CAbMVl3Hg/uFkdbSpxkQi/8ChMlPyF7TFFVRB qZ+BcmsKZ52tvXYJMlScOghGvD6Buem1uH/XiQqT2mq6SDMYEx+G5cfPVmB26g== From: Ronald Klop To: Kyle Evans Cc: freebsd-net@freebsd.org Message-ID: <284762638.373.1736749994743@localhost> In-Reply-To: Subject: Re: panic: tcp_do_segment: sent too much List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_372_277463445.1736749994738" X-Mailer: Realworks (733.113) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4YWjBQ2z9hz3HN9 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)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] ------=_Part_372_277463445.1736749994738 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Seen this before. Does one of these issues match your case? https://bugs.freebsd.org/bugzilla/buglist.cgi?quicksearch=Tcp_do_segment&list_id=789107 Regards, Ronald Van: Kyle Evans Datum: 13 januari 2025 02:45 Aan: freebsd-net@freebsd.org Onderwerp: panic: tcp_do_segment: sent too much > > > Hi, > > I seem to have hit this panic during normal laptop usage with a -CURRENT running at 2832af7b4ea256b18ef4dbf2ff97a50765f0609a: > > panic: tcp_do_segment: sent too much > cpuid = 5 > time = 1736731772 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe015b74b9b0 > vpanic() at vpanic+0x136/frame 0xfffffe015b74bae0 > panic() at panic+0x43/frame 0xfffffe015b74bb40 > tcp_do_segment() at tcp_do_segment+0x2998/frame 0xfffffe015b74bc20 > tcp_input_with_port() at tcp_input_with_port+0x10f8/frame 0xfffffe015b74bd70 > tcp_input() at tcp_input+0xb/frame 0xfffffe015b74bd80 > ip_input() at ip_input+0x28f/frame 0xfffffe015b74bde0 > swi_net() at swi_net+0x19b/frame 0xfffffe015b74be60 > ithread_loop() at ithread_loop+0x266/frame 0xfffffe015b74bef0 > fork_exit() at fork_exit+0x82/frame 0xfffffe015b74bf30 > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe015b74bf30 > > Doing a little bit of inspection: > > (kgdb) print tp->t_dupacks > $1 = 1 > (kgdb) print tp->snd_limited > $6 = 0 '' > (kgdb) p/x tp->t_flags > $4 = 0x10000264 > (kgdb) print maxseg > $1 = 1428 > > `sent` appears to be optimized out. As far as I know, I don't hit this one often, but I'm wondering if there's anything else useful I could extract here / if anyone has a theory about what happened. > > Thanks, > > Kyle Evans > > > > > ------=_Part_372_277463445.1736749994738 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Seen this before.
 Does one of these issues match your case?


Regards,
Ronald 


Van: Kyle Evans <kevans@FreeBSD.org>
Datum: 13 januari 2025 02:45
Aan: freebsd-net@freebsd.org
Onderwerp: panic: tcp_do_segment: sent too much

Hi,

I seem to have hit this panic during normal laptop usage with a -CURRENT running at 2832af7b4ea256b18ef4dbf2ff97a50765f0609a:

panic: tcp_do_segment: sent too much
cpuid = 5
time = 1736731772
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe015b74b9b0
vpanic() at vpanic+0x136/frame 0xfffffe015b74bae0
panic() at panic+0x43/frame 0xfffffe015b74bb40
tcp_do_segment() at tcp_do_segment+0x2998/frame 0xfffffe015b74bc20
tcp_input_with_port() at tcp_input_with_port+0x10f8/frame 0xfffffe015b74bd70
tcp_input() at tcp_input+0xb/frame 0xfffffe015b74bd80
ip_input() at ip_input+0x28f/frame 0xfffffe015b74bde0
swi_net() at swi_net+0x19b/frame 0xfffffe015b74be60
ithread_loop() at ithread_loop+0x266/frame 0xfffffe015b74bef0
fork_exit() at fork_exit+0x82/frame 0xfffffe015b74bf30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe015b74bf30

Doing a little bit of inspection:

(kgdb) print tp->t_dupacks
$1 = 1
(kgdb) print tp->snd_limited
$6 = 0 ''
(kgdb) p/x tp->t_flags
$4 = 0x10000264
(kgdb) print maxseg
$1 = 1428

`sent` appears to be optimized out.  As far as I know, I don't hit this one often, but I'm wondering if there's anything else useful I could extract here / if anyone has a theory about what happened.

Thanks,

Kyle Evans





------=_Part_372_277463445.1736749994738--