From nobody Sat Oct 16 15:08:15 2021 X-Original-To: dev-commits-ports-all@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 051CC17F92A4; Sat, 16 Oct 2021 15:08:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HWmjW6CDKz4Zjf; Sat, 16 Oct 2021 15:08:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AFB561BAF4; Sat, 16 Oct 2021 15:08:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19GF8FIS097770; Sat, 16 Oct 2021 15:08:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19GF8FEl097769; Sat, 16 Oct 2021 15:08:15 GMT (envelope-from git) Date: Sat, 16 Oct 2021 15:08:15 GMT Message-Id: <202110161508.19GF8FEl097769@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: ad1f51b39b69 - main - net/ntp: Implement 8dc43f07dc6 only for 14-CURRENT for now List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ad1f51b39b697dbe846f259856fdb85728035605 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=ad1f51b39b697dbe846f259856fdb85728035605 commit ad1f51b39b697dbe846f259856fdb85728035605 Author: Cy Schubert AuthorDate: 2021-10-16 15:04:45 +0000 Commit: Cy Schubert CommitDate: 2021-10-16 15:08:11 +0000 net/ntp: Implement 8dc43f07dc6 only for 14-CURRENT for now Only Reverse "Disable ntpd stack gap" for __FreeBSD_version < 1400037 for now until the next __FreeBSD_version bump. Reported by: kevans MFH: 2021Q4 --- net/ntp/Makefile | 2 +- net/ntp/files/patch-ntpd_ntpd.c | 41 +++++++++++------------------------------ 2 files changed, 12 insertions(+), 31 deletions(-) diff --git a/net/ntp/Makefile b/net/ntp/Makefile index 35feccc13198..abce03d92b90 100644 --- a/net/ntp/Makefile +++ b/net/ntp/Makefile @@ -2,7 +2,7 @@ PORTNAME= ntp PORTVERSION= 4.2.8p15 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \ http://archive.ntp.org/ntp4/ntp-4.2/ \ diff --git a/net/ntp/files/patch-ntpd_ntpd.c b/net/ntp/files/patch-ntpd_ntpd.c index f6ab38ffc4f2..458a799fbc14 100644 --- a/net/ntp/files/patch-ntpd_ntpd.c +++ b/net/ntp/files/patch-ntpd_ntpd.c @@ -1,39 +1,20 @@ --- ntpd/ntpd.c.orig 2020-06-23 02:17:48.000000000 -0700 -+++ ntpd/ntpd.c 2021-10-15 19:52:05.945063000 -0700 -@@ -145,17 +145,6 @@ ++++ ntpd/ntpd.c 2021-10-16 07:59:32.497688000 -0700 +@@ -145,7 +145,7 @@ # include #endif /* LIBSECCOMP and KERN_SECCOMP */ -#ifdef __FreeBSD__ --#include --#ifndef PROC_STACKGAP_CTL --/* -- * Even if we compile on an older system we can still run on a newer one. -- */ --#define PROC_STACKGAP_CTL 17 --#define PROC_STACKGAP_DISABLE 0x0002 --#endif --#endif -- - #ifdef HAVE_DNSREGISTRATION - # include - DNSServiceRef mdns; -@@ -438,18 +427,6 @@ ++#if defined(__FreeBSD_version) && __FreeBSD_version < 1400037 + #include + #ifndef PROC_STACKGAP_CTL + /* +@@ -438,7 +438,7 @@ char *argv[] ) { -# ifdef __FreeBSD__ -- { -- /* -- * We Must disable ASLR stack gap on FreeBSD to avoid a -- * segfault. See PR/241421 and PR/241960. -- */ -- int aslr_var = PROC_STACKGAP_DISABLE; -- -- pid_t my_pid = getpid(); -- procctl(P_PID, my_pid, PROC_STACKGAP_CTL, &aslr_var); -- } --# endif - return ntpdmain(argc, argv); - } - #endif /* !SYS_WINNT */ ++# if defined(__FreeBSD_version) && __FreeBSD_version < 1400037 + { + /* + * We Must disable ASLR stack gap on FreeBSD to avoid a