From nobody Wed Oct 23 07:42:15 2024 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 4XYLbt0CdHz5ZyKG for ; Wed, 23 Oct 2024 07:42:18 +0000 (UTC) (envelope-from pho@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 4XYLbs6tDmz4D33; Wed, 23 Oct 2024 07:42:17 +0000 (UTC) (envelope-from pho@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729669338; 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:references:references; bh=q7G79dylhapDuDXDTfCbrZBFzP7qrwpaX9TLpkA3dVA=; b=Y6FuWnSxQjdHetTkdL6v1hVYgef2ronQcgyYXtpswlw8GSXDvnRV1gApKdhv6Tk9D/My/Y VCvgJIErmHYbgv1RNuoH3Jx1wHU9TPuCWshLJKvWx4fxo4j/8Lj2JiPyfw4OStiSPqjRxJ USNmG2Awte5jf6h0gVf9MTbIx2MIyc3MZMombsvceh/BudRTLTwGIc3WrmIGje4mvvoN27 ClIOmQ9vA6rkzRRCNQDq/eXL+MzY9bLLgi1IOcY5E1KzgaqkFhTRN7lRjr2KRW9CpDMHfV DDi/ztLUA6XGtYlU9Zrf7/xL6e/TI4If7HizrqHuW6f1N95yhVsZGWiyEt01Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729669338; 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:references:references; bh=q7G79dylhapDuDXDTfCbrZBFzP7qrwpaX9TLpkA3dVA=; b=dX0ZIqU3lh8ZVSOw17yhJX67RuxXM5IUTr5Y84qqmhkbvflrbl7ev9ivQBssKMnqpJKS6n IDjVpmZckHfNI6fJX7BjwmX0/wWkZBM22b2DXybN9BD/oN+z/oTyiUDECuXh5TVNaWufFd YEs3kS7yO2lVXrNRLYF+nMFdZHd9TcwfZFPN6yxnuluskxX6TIc0dvVXmx00qo1cPOkAjI 4iFnVM6siN6KAyFc48Vjnm/aAA7yn/FfGWmN95Gq5+UEQu+h1P5IlMkUzEXyvpC5crrBKZ dgyMU2EayA+T9kSQaXQURvQ+w8CqtGd6+8TZiNp+a5lvTUQouGWoGrXEAn0a7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729669338; a=rsa-sha256; cv=none; b=bVfaRlarJRO2Rsyt29dkNL7KWqa8a6ButCsc53wolUOqagdwy9DeMsC1SCL/+Neq51eveN Z6DY5U2wcg4oQCMIeerpIRd0dTjRwXn1SIqYpVzrmzlI1kYVf+LK37XCoM3seYuHFONFo5 5QWL6On7BtrqDgrQh7sCnULD+1Js+K2o+8xIGnYWfD7ZW3P5F2A62n1nJeFyTsD8UER/y1 dhWSxmZXmVGftb8U24vIqW03ADzcOeLhUOtBKHHqltG/B1STw+lmv96GP7pfNAvsydOkzA uhL13m29gwU6Du5Mwthc+3BpYh0CzQIRXqXJYiZxv1k7/22Ltc4AWx/bqPEtjg== Received: from Peters-MacBook-Air.local (x5996a645.customers.hiper-net.dk [89.150.166.69]) (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: pho) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XYLbs2rTqzZZP; Wed, 23 Oct 2024 07:42:17 +0000 (UTC) (envelope-from pho@FreeBSD.org) Date: Wed, 23 Oct 2024 09:42:15 +0200 From: Peter Holm To: Michael Tuexen Cc: freebsd-net@freebsd.org, Warner Losh Subject: Re: panic: tcp_do_segment: sent too much Message-ID: References: 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Oct 23, 2024 at 08:32:05AM +0200, Michael Tuexen wrote: > > On 23. Oct 2024, at 07:51, Peter Holm wrote: > > > > + export 'tcpINCARNATIONS=16678' > > + [ 16678 -le 0 ] > > + export 'TESTPROGS= ./testcases/tcp/tcp' > > + sleep 900 > > + su test -c '(cd ..; ./testcases/run/run $TESTPROGS)' > > run: run time 0+00:15:00, incarnations 1, load 100, verbose 1 > > 23:59:21 Loop #1 > > tcp: run time 0+00:02:00, incarnations 3202, load 100, verbose 1 > > witness_lock_list_get: witness exhausted > > panic: tcp_do_segment: sent too much > > cpuid = 6 > > time = 1729634436 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe01081bd9b0 > > vpanic() at vpanic+0x13f/frame 0xfffffe01081bdae0 > > panic() at panic+0x43/frame 0xfffffe01081bdb40 > > tcp_do_segment() at tcp_do_segment+0x29a2/frame 0xfffffe01081bdc20 > > tcp_input_with_port() at tcp_input_with_port+0x10e5/frame 0xfffffe01081bdd70 > > tcp_input() at tcp_input+0xb/frame 0xfffffe01081bdd80 > > ip_input() at ip_input+0x28f/frame 0xfffffe01081bdde0 > > swi_net() at swi_net+0x19b/frame 0xfffffe01081bde60 > > ithread_loop() at ithread_loop+0x266/frame 0xfffffe01081bdef0 > > fork_exit() at fork_exit+0x82/frame 0xfffffe01081bdf30 > > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe01081bdf30 > > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > > > > Details @ https://people.freebsd.org/~pho/stress/log/log0557.txt > Hi Peter, > > thank you very much for the report! > Is this reproducible? I'm CC-ing Warner, since he has also reported this to > me privately, but wasn't able to reproduce it. > > Best regards > Michael > > Hi Michael, I have have been able to reproduce the panic with several different tcp stress tests (on real hardware). Here's how to reproduce this one: cd src/tools/test/stress2/misc ./all.sh -o tcp.sh - Peter