From owner-svn-src-user@freebsd.org  Wed Nov  7 09:55:32 2018
Return-Path: <owner-svn-src-user@freebsd.org>
Delivered-To: svn-src-user@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 48DB91121EA2
 for <svn-src-user@mailman.ysv.freebsd.org>;
 Wed,  7 Nov 2018 09:55:32 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
 [IPv6:2610:1c1:1:606c::19:3])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mxrelay.nyi.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id CD7AA8A9E3;
 Wed,  7 Nov 2018 09:55:31 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
 [IPv6:2610:1c1:1:6068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AA2EB141F0;
 Wed,  7 Nov 2018 09:55:31 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
 by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA79tVaE082458;
 Wed, 7 Nov 2018 09:55:31 GMT (envelope-from pho@FreeBSD.org)
Received: (from pho@localhost)
 by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA79tVC0082457;
 Wed, 7 Nov 2018 09:55:31 GMT (envelope-from pho@FreeBSD.org)
Message-Id: <201811070955.wA79tVC0082457@repo.freebsd.org>
X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org
 using -f
From: Peter Holm <pho@FreeBSD.org>
Date: Wed, 7 Nov 2018 09:55:31 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-user@freebsd.org
Subject: svn commit: r340214 - user/pho/stress2/misc
X-SVN-Group: user
X-SVN-Commit-Author: pho
X-SVN-Commit-Paths: user/pho/stress2/misc
X-SVN-Commit-Revision: 340214
X-SVN-Commit-Repository: base
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Rspamd-Queue-Id: CD7AA8A9E3
X-Spamd-Result: default: False [-103.08 / 200.00]; ARC_NA(0.00)[];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
 ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain];
 TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[];
 R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org];
 RCVD_COUNT_THREE(0.00)[4];
 MX_GOOD(-0.01)[cached: mx1.FreeBSD.org];
 RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.965,0];
 FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[];
 RCVD_TLS_LAST(0.00)[]
X-Rspamd-Server: mx1.freebsd.org
X-BeenThere: svn-src-user@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "SVN commit messages for the experimental &quot; user&quot;
 src tree" <svn-src-user.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-user>,
 <mailto:svn-src-user-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-user/>
List-Post: <mailto:svn-src-user@freebsd.org>
List-Help: <mailto:svn-src-user-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-user>,
 <mailto:svn-src-user-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Nov 2018 09:55:32 -0000

Author: pho
Date: Wed Nov  7 09:55:31 2018
New Revision: 340214
URL: https://svnweb.freebsd.org/changeset/base/340214

Log:
  Syscall fuzzing unmount(4) as root is too disruptive.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/syscall6.sh

Modified: user/pho/stress2/misc/syscall6.sh
==============================================================================
--- user/pho/stress2/misc/syscall6.sh	Wed Nov  7 09:49:25 2018	(r340213)
+++ user/pho/stress2/misc/syscall6.sh	Wed Nov  7 09:55:31 2018	(r340214)
@@ -37,7 +37,7 @@
 
 [ -f /usr/include/sys/syscall.h ] || exit 0
 
-list="fdatasync mount ktrace unmount"
+list="fdatasync mount ktrace"
 
 for i in $list; do
 	num=`grep SYS_$i /usr/include/sys/syscall.h | tail -1 | awk '{print $NF}'`

From owner-svn-src-user@freebsd.org  Wed Nov  7 12:08:28 2018
Return-Path: <owner-svn-src-user@freebsd.org>
Delivered-To: svn-src-user@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 E5C41112520F
 for <svn-src-user@mailman.ysv.freebsd.org>;
 Wed,  7 Nov 2018 12:08:27 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
 [IPv6:2610:1c1:1:606c::19:3])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mxrelay.nyi.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 783C78E5E9;
 Wed,  7 Nov 2018 12:08:27 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
 [IPv6:2610:1c1:1:6068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 523A31570A;
 Wed,  7 Nov 2018 12:08:27 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
 by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA7C8RKP049332;
 Wed, 7 Nov 2018 12:08:27 GMT (envelope-from pho@FreeBSD.org)
Received: (from pho@localhost)
 by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA7C8Rfl049331;
 Wed, 7 Nov 2018 12:08:27 GMT (envelope-from pho@FreeBSD.org)
Message-Id: <201811071208.wA7C8Rfl049331@repo.freebsd.org>
X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org
 using -f
From: Peter Holm <pho@FreeBSD.org>
Date: Wed, 7 Nov 2018 12:08:27 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-user@freebsd.org
Subject: svn commit: r340217 - user/pho/stress2/misc
X-SVN-Group: user
X-SVN-Commit-Author: pho
X-SVN-Commit-Paths: user/pho/stress2/misc
X-SVN-Commit-Revision: 340217
X-SVN-Commit-Repository: base
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Rspamd-Queue-Id: 783C78E5E9
X-Spamd-Result: default: False [-103.11 / 200.00]; ARC_NA(0.00)[];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
 ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain];
 TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[];
 R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org];
 RCVD_COUNT_THREE(0.00)[4];
 MX_GOOD(-0.01)[cached: mx1.FreeBSD.org];
 RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000,0];
 FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[];
 RCVD_TLS_LAST(0.00)[]
X-Rspamd-Server: mx1.freebsd.org
X-BeenThere: svn-src-user@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "SVN commit messages for the experimental &quot; user&quot;
 src tree" <svn-src-user.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-user>,
 <mailto:svn-src-user-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-user/>
List-Post: <mailto:svn-src-user@freebsd.org>
List-Help: <mailto:svn-src-user-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-user>,
 <mailto:svn-src-user-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Nov 2018 12:08:28 -0000

Author: pho
Date: Wed Nov  7 12:08:26 2018
New Revision: 340217
URL: https://svnweb.freebsd.org/changeset/base/340217

Log:
  Style fix.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/umountf3.sh

Modified: user/pho/stress2/misc/umountf3.sh
==============================================================================
--- user/pho/stress2/misc/umountf3.sh	Wed Nov  7 11:46:12 2018	(r340216)
+++ user/pho/stress2/misc/umountf3.sh	Wed Nov  7 12:08:26 2018	(r340217)
@@ -45,7 +45,6 @@ mycc -o umountf3 -Wall umountf3.c
 rm -f umountf3.c
 cd $odir
 
-
 mount | grep "$mntpoint" | grep md$mdstart > /dev/null && umount $mntpoint
 mdconfig -l | grep md$mdstart > /dev/null &&  mdconfig -d -u $mdstart
 

From owner-svn-src-user@freebsd.org  Thu Nov  8 12:45:30 2018
Return-Path: <owner-svn-src-user@freebsd.org>
Delivered-To: svn-src-user@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 DCEE71128EDD
 for <svn-src-user@mailman.ysv.freebsd.org>;
 Thu,  8 Nov 2018 12:45:29 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
 [IPv6:2610:1c1:1:606c::19:3])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mxrelay.nyi.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 42B8F7C849;
 Thu,  8 Nov 2018 12:45:29 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
 [IPv6:2610:1c1:1:6068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 23C9B24AE2;
 Thu,  8 Nov 2018 12:45:29 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
 by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA8CjTBN009196;
 Thu, 8 Nov 2018 12:45:29 GMT (envelope-from pho@FreeBSD.org)
Received: (from pho@localhost)
 by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA8CjSrv009195;
 Thu, 8 Nov 2018 12:45:28 GMT (envelope-from pho@FreeBSD.org)
Message-Id: <201811081245.wA8CjSrv009195@repo.freebsd.org>
X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org
 using -f
From: Peter Holm <pho@FreeBSD.org>
Date: Thu, 8 Nov 2018 12:45:28 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-user@freebsd.org
Subject: svn commit: r340247 - user/pho/stress2/misc
X-SVN-Group: user
X-SVN-Commit-Author: pho
X-SVN-Commit-Paths: user/pho/stress2/misc
X-SVN-Commit-Revision: 340247
X-SVN-Commit-Repository: base
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Rspamd-Queue-Id: 42B8F7C849
X-Spamd-Result: default: False [-103.09 / 200.00]; ARC_NA(0.00)[];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
 ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain];
 TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[];
 R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org];
 RCVD_COUNT_THREE(0.00)[4];
 MX_GOOD(-0.01)[cached: mx1.FreeBSD.org];
 RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.98)[-0.982,0];
 FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[];
 RCVD_TLS_LAST(0.00)[]
X-Rspamd-Server: mx1.freebsd.org
X-BeenThere: svn-src-user@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "SVN commit messages for the experimental &quot; user&quot;
 src tree" <svn-src-user.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-user>,
 <mailto:svn-src-user-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-user/>
List-Post: <mailto:svn-src-user@freebsd.org>
List-Help: <mailto:svn-src-user-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-user>,
 <mailto:svn-src-user-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Nov 2018 12:45:30 -0000

Author: pho
Date: Thu Nov  8 12:45:28 2018
New Revision: 340247
URL: https://svnweb.freebsd.org/changeset/base/340247

Log:
  Added tow ifconfig(8) test scenarios.
  
  Sponsored by:	Dell EMC Isilon

Added:
  user/pho/stress2/misc/ifconfig.sh   (contents, props changed)
  user/pho/stress2/misc/ifconfig2.sh   (contents, props changed)

Added: user/pho/stress2/misc/ifconfig.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/pho/stress2/misc/ifconfig.sh	Thu Nov  8 12:45:28 2018	(r340247)
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+# Test scenario from D17599 "Fix for double free when deleting entries from
+# epoch managed lists"
+# by Hans Petter Selasky <hselasky@freebsd.org>
+
+# "panic: starting DAD on non-tentative address 0xfffff8010c311000" seen.
+# https://people.freebsd.org/~pho/stress/log/epoch.txt
+
+# Fatal trap 9: general protection fault while in kernel mode
+# https://people.freebsd.org/~pho/stress/log/epoch-2.txt
+
+# $FreeBSD$
+
+[ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
+if=`ifconfig | grep -w mtu | grep -v RUNNING | sed 's/:.*//' | head -1`
+[ -z "$if" ] &&
+    if=`ifconfig | \
+    awk  '/^[a-z].*: / {gsub(":", ""); ifn = $1}; /no car/{print ifn; exit}'`
+
+[ -z "$if" ] && exit 0
+echo "Using $if for test."
+ifconfig $if | grep -q RUNNING && running=1
+
+start=`date +%s`
+while [ $((`date +%s` - start)) -lt 300 ]; do
+	for i in `jot 255`; do
+		(ifconfig $if.$i create
+		ifconfig $if.$i inet 224.0.0.$i
+		ifconfig $if.$i destroy) > /dev/null 2>&1 &
+	done
+	wait
+done
+[ $running ] || ifconfig $if down
+
+exit 0

Added: user/pho/stress2/misc/ifconfig2.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/pho/stress2/misc/ifconfig2.sh	Thu Nov  8 12:45:28 2018	(r340247)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# Test scenario from D17599 "Fix for double free when deleting entries from
+# epoch managed lists"
+# by Hans Petter Selasky <hselasky@freebsd.org>
+
+# Page fault in nd6_dad_timer+0x6b seen:
+# https://people.freebsd.org/~pho/stress/log/ifconfig2.txt
+
+# $FreeBSD$
+
+[ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
+if=`ifconfig | grep -w mtu | grep -v RUNNING | sed 's/:.*//' | head -1`
+[ -z "$if" ] &&
+    if=`ifconfig | \
+    awk  '/^[a-z].*: / {gsub(":", ""); ifn = $1}; /no car/{print ifn; exit}'`
+
+[ -z "$if" ] && exit 0
+echo "Using $if for test."
+ifconfig $if | grep -q RUNNING && running=1
+
+sync=/tmp/`basename $0`.sync
+rm -f $sync
+for i in `jot 5`; do
+	(
+		while [ ! -f $sync ]; do
+			sleep .1
+		done
+		while [ -f $sync ]; do
+			ifconfig $if.$i create
+			ifconfig $if.$i inet 224.0.0.$i
+			ifconfig $if.$i destroy
+		done
+	) > /dev/null 2>&1 &
+done
+touch $sync
+sleep 120
+rm -f $sync
+wait
+[ $running ] || ifconfig $if down
+
+exit 0