From nobody Sun Oct 27 16:38:55 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 4Xc2KK2klQz5bCKb for ; Sun, 27 Oct 2024 16:39:01 +0000 (UTC) (envelope-from glebius@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xc2KK22n1z4RhX; Sun, 27 Oct 2024 16:39:01 +0000 (UTC) (envelope-from glebius@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730047141; 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; bh=EJt89AIHxwKrl2vPbFhFyGIBDidJz/xE7YCK7beRjQw=; b=C7IcsYcUc21sqIx2G3RCxI41SONYnpdKYPF2ur0+n+nj6dhA1OZ8zw4mPOaLSqkDttfSXT eny1QLsa/xXODLdKfiUJzmMDhGdn9ZKpS40Z2q6Dp36GfsDG3ajyP8D74Xe8tHiCf1OBgY PJZyscuSWzTf8xSZTdpvgDyn0fCHzuzq9cBgrQTEgaXmYBieN3bUAhHhuO9xvQt8p1MOwd wrkQrcz2g51k2ivgvscwB6Lbh1ej5SqYPjd1Cz6EbnvTi/Du414es8r8cgyOxEq2roBaa6 ZPzySUVklUJ+7N3p54ufasEfpIMqGXiv/QAaXpvQz8v6qxokRIIZ1YYogjNKvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730047141; 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; bh=EJt89AIHxwKrl2vPbFhFyGIBDidJz/xE7YCK7beRjQw=; b=rlKRPBJdpRzPYeDmh+R6L+JYdGwG5hLbQIU3A54SMWMCM3VrwpNWj8kLsdSpkOnXeag6ln ZvtmyvnYnhrpsbFAJl41Jei4Cgkbz0hxi6+IJAZ/fw4JFVlD7y+FLUw6bst+Ai4H7WsBPg 3UN+GRI22Kq/Zh0Ze8Caq89dTm8QBKPox+qzJbtuwLJpw8gRQpbW69d2RMWvAWW1HKZGko St0vzJV2/J7AYI3TXkWy9+3C6Kha3AjlWrU/ysHs4S5jIXrMRRC2mlyzJ21din/WcTcvqW NWZddq0w/ZfWO5iQTlhjZI6KRzVS/rtLJ8c0xkE6jltfUOhaaydyv7BMlvmPHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730047141; a=rsa-sha256; cv=none; b=JyoC7z4alK2ywjPUZfZthNHe1QDnAW7U0O7eT42ZNg1AYGp11th2Dq8CanglzikEDZdqQG /FTCarcilwfV1nH9EWNjflcQNmCZMQSp+UY4DPBSJtd/5unvd/271/PCJiVMWHw/+f3E9B 7tE6BHjoOJyidaIR/Xl9sUruKOWdTycgPigWgX4k/qwuZhZdFuVxcDC2T9yYgduRldkcmc vibLV8FKIc32eH1tCHBWFq/kvEapgHmI5VMEMndv91xlatX5FvclOD/hkk7UR+6HQY09uZ TGoJJqDuN/m6oJtEgB33cKVU0NOxCRSh71paeyZOIHADGfHgwD3nXpz4eK+kJQ== Received: from cell.glebi.us (unknown [162.251.186.162]) (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) (Authenticated sender: glebius) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Xc2KJ5c34z13gD; Sun, 27 Oct 2024 16:39:00 +0000 (UTC) (envelope-from glebius@freebsd.org) Date: Sun, 27 Oct 2024 09:38:55 -0700 From: Gleb Smirnoff To: rscheff@freebsd.org, tuexen@freebsd.org Cc: current@freebsd.org Subject: panic: tcp_do_segment: sent too much Message-ID: 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 Hi, I just got this panic on my desktop running latest stabweek snapshot. panic: tcp_do_segment: sent too much db_trace_self_wrapper() at db_trace_self_wrapper+0x2c/frame 0xfffffe0209deb440 kdb_backtrace() at kdb_backtrace+0x46/frame 0xfffffe0209deb4f0 vpanic() at vpanic+0x23d/frame 0xfffffe0209deb630 panic() at panic+0x4e/frame 0xfffffe0209deb690 tcp_do_segment() at tcp_do_segment+0x3a6c/frame 0xfffffe0209deb8d0 tcp_input_with_port() at tcp_input_with_port+0x15db/frame 0xfffffe0209deba60 tcp_input() at tcp_input+0x27/frame 0xfffffe0209deba90 ip_input() at ip_input+0x1131/frame 0xfffffe0209debb00 netisr_dispatch_src() at netisr_dispatch_src+0x18c/frame 0xfffffe0209debb70 netisr_dispatch() at netisr_dispatch+0x21/frame 0xfffffe0209debb90 ether_demux() at ether_demux+0x2a5/frame 0xfffffe0209debbd0 ether_input_internal() at ether_input_internal+0x613/frame 0xfffffe0209debc10 ether_nh_input() at ether_nh_input+0xb1/frame 0xfffffe0209debc30 netisr_dispatch_src() at netisr_dispatch_src+0x18c/frame 0xfffffe0209debca0 netisr_dispatch() at netisr_dispatch+0x21/frame 0xfffffe0209debcc0 ether_input() at ether_input+0x16c/frame 0xfffffe0209debd10 My kernel is compiled with -O0, which alleviates debugging: (kgdb) frame 4 #4 0xffffffff80ea6c3c in tcp_do_segment (tp=0xfffff814a6f96000, m=0xfffff8044d546a00, th=0xfffff8044d546a82, drop_hdrlen=64, tlen=0, iptos=72 'H') at /usr/src/FreeBSD/sys/netinet/tcp_input.c:2812 2812 KASSERT((tp->t_dupacks == 2 && (kgdb) p tp->t_dupacks $1 = 1 (kgdb) p tp->snd_limited $2 = 0 '\000' (kgdb) p/x tp->t_flags $4 = 0x110003e4 (kgdb) p/x tp->t_flags & 0x00000010 # TF_SENTFIN $5 = 0x0 (kgdb) p tp->t_flags & 1 # TF_ACKNOW $15 = 0 (kgdb) p sent $6 = 1507 (kgdb) p maxseg $7 = 1400 (kgdb) p oldcwnd $8 = 1400 (kgdb) p oldsndmax $9 = 2473784830 (kgdb) p tp->snd_max $10 = 2473786337 (kgdb) p 2473786337 - 2473784830 $11 = 1507 (kgdb) p tp->snd_cwnd $12 = 2800 (kgdb) p avail $13 = 2018 (kgdb) p tp->snd_nxt - tp->snd_una $16 = 2018 (kgdb) p so->so_snd.sb_acc $17 = 2018 (kgdb) p *tp->snd_holes.tqh_first $22 = {start = 2473784319, end = 2473784358, rxmit = 2473784319, scblink = {tqe_next = 0x0, tqe_prev = 0xfffff814a6f96350}} Apparently tcp_output() has sent more than one segment. I don't know if this old assertion is correct, but looks like it started to trigger. Could this be related to 440f4ba18e3a? -- Gleb Smirnoff