From owner-svn-src-stable-11@freebsd.org Thu May 30 17:21:48 2019 Return-Path: Delivered-To: svn-src-stable-11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FCB415A57CF; Thu, 30 May 2019 17:21:48 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5B669524F; Thu, 30 May 2019 17:21:47 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [192.168.1.2] (p57BB4327.dip0.t-ipconnect.de [87.187.67.39]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 95BD971B63032; Thu, 30 May 2019 19:21:44 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: svn commit: r348435 - stable/11/sys/netinet From: Michael Tuexen In-Reply-To: Date: Thu, 30 May 2019 19:21:43 +0200 Cc: src-committers , svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <693EB912-4B80-47AD-B13B-AB54FF82774C@freebsd.org> References: <201905301632.x4UGWJSJ066904@repo.freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: svn-src-stable-11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for only the 11-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2019 17:21:48 -0000 > On 30. May 2019, at 19:20, John Baldwin wrote: >=20 > On 5/30/19 9:32 AM, Michael Tuexen wrote: >> Author: tuexen >> Date: Thu May 30 16:32:18 2019 >> New Revision: 348435 >> URL: https://svnweb.freebsd.org/changeset/base/348435 >>=20 >> Log: >> MFC r338053: >>=20 >> Don't expose the uptime via the TCP timestamps. >>=20 >> The TCP client side or the TCP server side when not using = SYN-cookies >> used the uptime as the TCP timestamp value. This patch uses in all >> cases an offset, which is the result of a keyed hash function taking >> the source and destination addresses and port numbers into account. >> The keyed hash function is the same a used for the initial TSN. >>=20 >> The use of >> VNET_DEFINE_STATIC(u_char, ts_offset_secret[32]); >> had to be replaced by >> VNET_DEFINE(u_char, ts_offset_secret[32]); >>=20 >> MFC r348290: >>=20 >> When an ACK segment as the third message of the three way handshake = is >> received and support for time stamps was negotiated in the = SYN/SYNACK >> exchange, perform the PAWS check and only expand the syn cache entry = if >> the check is passed. >> Without this check, endpoints may get stuck on the incomplete queue. >>=20 >> Reviewed by: jtl@, rrs@ >> Approved by: re (kib@)) >> Sponsored by: Netflix, Inc. >> Differential Revision: https://reviews.freebsd.org/D16636 >> Differential Revision: https://reviews.freebsd.org/D20374 >=20 > This broke the build on GCC platforms. >=20 >> Modified: stable/11/sys/netinet/tcp_subr.c >> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >> --- stable/11/sys/netinet/tcp_subr.c Thu May 30 16:11:20 2019 = (r348434) >> +++ stable/11/sys/netinet/tcp_subr.c Thu May 30 16:32:18 2019 = (r348435) >> @@ -226,6 +226,12 @@ VNET_DEFINE(uma_zone_t, sack_hole_zone); >>=20 >> VNET_DEFINE(struct hhook_head *, tcp_hhh[HHOOK_TCP_LAST+1]); >>=20 >> +VNET_DEFINE(u_char, ts_offset_secret[32]); >> +#define V_ts_offset_secret VNET(ts_offset_secret) >> + >> +static int tcp_default_fb_init(struct tcpcb *tp); >> +static void tcp_default_fb_fini(struct tcpcb *tp, int = tcb_is_purged); >> +static int tcp_default_handoff_ok(struct tcpcb *tp); >=20 > This is a mismerge. These three prototypes for tcp_default_* = shouldn't have > been added and these prototypes are causing the build breakage. (They = weren't > added in r338053 in HEAD but in an earlier change. This was probably = a merge > conflict during the MFC). >=20 > I think the fix is to just remove them. >=20 > cc -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -D_KERNEL = -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -MD = -MF.depend.tcp_subr.o -MTtcp_subr.o -ffreestanding -fwrapv = -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs = -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline = -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions = -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas = -Wno-uninitialized -fno-common -fms-extensions -finline-limit=3D15000 = --param inline-unit-growth=3D100 --param large-function-growth=3D1000 = -mcmodel=3Dmedany -msoft-float -std=3Diso9899:1999 -Werror = /usr/src/sys/netinet/tcp_subr.c > cc1: warnings being treated as errors > /usr/src/sys/netinet/tcp_subr.c:232: warning: 'tcp_default_fb_init' = declared 'static' but never defined > /usr/src/sys/netinet/tcp_subr.c:233: warning: 'tcp_default_fb_fini' = declared 'static' but never defined > /usr/src/sys/netinet/tcp_subr.c:234: warning: 'tcp_default_handoff_ok' = declared 'static' but never defined > *** [tcp_subr.o] Error code 1 >=20 > make[2]: stopped in /usr/obj/sparc64.sparc64/usr/src/sys/GENERIC Working on it. Thanks for letting me know. Best regards Michael >=20 > --=20 > John Baldwin