From owner-svn-src-user@freebsd.org Tue Jun 30 07:36:50 2020 Return-Path: Delivered-To: svn-src-user@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D691C36118C for ; Tue, 30 Jun 2020 07:36:50 +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.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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49wx4y5GZPz42gd; Tue, 30 Jun 2020 07:36:50 +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 991D8148E9; Tue, 30 Jun 2020 07:36:50 +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 05U7aoP6006389; Tue, 30 Jun 2020 07:36:50 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 05U7aoja006387; Tue, 30 Jun 2020 07:36:50 GMT (envelope-from pho@FreeBSD.org) Message-Id: <202006300736.05U7aoja006387@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Tue, 30 Jun 2020 07:36:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r362792 - 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: 362792 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2020 07:36:50 -0000 Author: pho Date: Tue Jun 30 07:36:49 2020 New Revision: 362792 URL: https://svnweb.freebsd.org/changeset/base/362792 Log: Added two syzkaller reproducers. Added: user/pho/stress2/misc/syzkaller17.sh (contents, props changed) user/pho/stress2/misc/syzkaller18.sh (contents, props changed) Added: user/pho/stress2/misc/syzkaller17.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/pho/stress2/misc/syzkaller17.sh Tue Jun 30 07:36:49 2020 (r362792) @@ -0,0 +1,132 @@ +#!/bin/sh + +# Fatal trap 12: page fault while in kernel mode +# cpuid = 15; apic id = 23 +# fault virtual address = 0x10 +# fault code = supervisor read data, page not present +# instruction pointer = 0x20:0xffffffff80de3833 +# stack pointer = 0x28:0xfffffe01398a8860 +# frame pointer = 0x28:0xfffffe01398a8880 +# code segment = base 0x0, limit 0xfffff, type 0x1b +# = DPL 0, pres 1, long 1, def32 0, gran 1 +# processor eflags = interrupt enabled, resume, IOPL = 0 +# current process = 2798 (syzkaller17) +# trap number = 12 +# panic: page fault +# cpuid = 15 +# time = 1593500664 +# KDB: stack backtrace: +# db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe01398a8510 +# vpanic() at vpanic+0x182/frame 0xfffffe01398a8560 +# panic() at panic+0x43/frame 0xfffffe01398a85c0 +# trap_fatal() at trap_fatal+0x387/frame 0xfffffe01398a8620 +# trap_pfault() at trap_pfault+0x99/frame 0xfffffe01398a8680 +# trap() at trap+0x2a5/frame 0xfffffe01398a8790 +# calltrap() at calltrap+0x8/frame 0xfffffe01398a8790 +# --- trap 0xc, rip = 0xffffffff80de3833, rsp = 0xfffffe01398a8860, rbp = 0xfffffe01398a8880 --- +# sctp_find_ifa_in_ep() at sctp_find_ifa_in_ep+0x83/frame 0xfffffe01398a8880 +# sctp_addr_mgmt_ep_sa() at sctp_addr_mgmt_ep_sa+0x56/frame 0xfffffe01398a88c0 +# sctp_bindx_delete_address() at sctp_bindx_delete_address+0x9e/frame 0xfffffe01398a8910 +# sctp_setopt() at sctp_setopt+0x2134/frame 0xfffffe01398a8990 +# sctp_ctloutput() at sctp_ctloutput+0x173/frame 0xfffffe01398a89f0 +# sosetopt() at sosetopt+0xed/frame 0xfffffe01398a8a50 +# kern_setsockopt() at kern_setsockopt+0xac/frame 0xfffffe01398a8ab0 +# sys_setsockopt() at sys_setsockopt+0x24/frame 0xfffffe01398a8ad0 +# amd64_syscall() at amd64_syscall+0x159/frame 0xfffffe01398a8bf0 +# fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe01398a8bf0 +# --- syscall (0, FreeBSD ELF64, nosys), rip = 0x80042813a, rsp = 0x7fffffffe538, rbp = 0x7fffffffe570 --- +# KDB: enter: panic +# [ thread pid 2798 tid 100249 ] +# Stopped at kdb_enter+0x37: movq $0,0x10c4cf6(%rip) +# db> x/s version +# version: FreeBSD 13.0-CURRENT #0 r362791: Tue Jun 30 08:57:50 CEST 2020 +# pho@t2.osted.lan:/usr/src/sys/amd64/compile/PHO +# db> + +# $FreeBSD$ + +[ `uname -p` != "amd64" ] && exit 0 + +. ../default.cfg +cat > /tmp/syzkaller17.c < +#include +#include +#include +#include +#include +#include +#include +#include +#include + +uint64_t r[1] = {0xffffffffffffffff}; + +int main(void) +{ + syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); + intptr_t res = 0; + res = syscall(SYS_socket, 2ul, 5ul, 0x84); + if (res != -1) + r[0] = res; + *(uint8_t*)0x200001c0 = 0x10; + *(uint8_t*)0x200001c1 = 2; + *(uint16_t*)0x200001c2 = htobe16(0x4e20); + *(uint8_t*)0x200001c4 = 0xac; + *(uint8_t*)0x200001c5 = 0x14; + *(uint8_t*)0x200001c6 = 0; + *(uint8_t*)0x200001c7 = 0xaa; + *(uint8_t*)0x200001c8 = 0; + *(uint8_t*)0x200001c9 = 0; + *(uint8_t*)0x200001ca = 0; + *(uint8_t*)0x200001cb = 0; + *(uint8_t*)0x200001cc = 0; + *(uint8_t*)0x200001cd = 0; + *(uint8_t*)0x200001ce = 0; + *(uint8_t*)0x200001cf = 0; + *(uint64_t*)0x200001d0 = 0; + *(uint64_t*)0x200001d8 = 0; + *(uint64_t*)0x200001e0 = 0; + *(uint64_t*)0x200001e8 = 0; + *(uint64_t*)0x200001f0 = 0; + *(uint64_t*)0x200001f8 = 0; + *(uint64_t*)0x20000200 = 0; + *(uint64_t*)0x20000208 = 0; + *(uint64_t*)0x20000210 = 0; + *(uint64_t*)0x20000218 = 0; + *(uint64_t*)0x20000220 = 0; + *(uint64_t*)0x20000228 = 0; + *(uint64_t*)0x20000230 = 0; + *(uint64_t*)0x20000238 = 0; + *(uint64_t*)0x20000240 = 0; + *(uint32_t*)0x20000248 = 0; + *(uint32_t*)0x2000024c = 4; + *(uint32_t*)0x20000250 = 0; + *(uint32_t*)0x20000254 = 0; + *(uint32_t*)0x20000258 = 0; + *(uint16_t*)0x2000025c = 0; + *(uint8_t*)0x2000025e = 0; + syscall(SYS_setsockopt, r[0], 0x84, 0x8002, 0x200001c0ul, 0xa0ul); + return 0; +} +EOF +mycc -o /tmp/syzkaller17 -Wall -Wextra -O0 /tmp/syzkaller17.c || + exit 1 + +(cd ../testcases/swap; ./swap -t 1m -i 20 -h > /dev/null 2>&1) & +start=`date +%s` +while pgrep -q swap; do + (cd /tmp; timeout 1m ./syzkaller17) + [ $((`date +%s` - start)) -ge 60 ] && break +done +pkill -9 syzkaller17 swap +wait + +rm -f /tmp/syzkaller17 /tmp/syzkaller17.c /tmp/syzkaller17.core +exit 0 Added: user/pho/stress2/misc/syzkaller18.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/pho/stress2/misc/syzkaller18.sh Tue Jun 30 07:36:49 2020 (r362792) @@ -0,0 +1,130 @@ +#!/bin/sh + +# panic: in6p_lookup_mcast_ifp: not INP_IPV6 inpcb +# cpuid = 20 +# time = 1593501338 +# KDB: stack backtrace: +# db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe013eaf7e90 +# vpanic() at vpanic+0x182/frame 0xfffffe013eaf7ee0 +# panic() at panic+0x43/frame 0xfffffe013eaf7f40 +# ip6_setmoptions() at ip6_setmoptions+0x23b3/frame 0xfffffe013eaf8120 +# ip6_ctloutput() at ip6_ctloutput+0x1f5/frame 0xfffffe013eaf89f0 +# sosetopt() at sosetopt+0xed/frame 0xfffffe013eaf8a50 +# kern_setsockopt() at kern_setsockopt+0xac/frame 0xfffffe013eaf8ab0 +# sys_setsockopt() at sys_setsockopt+0x24/frame 0xfffffe013eaf8ad0 +# amd64_syscall() at amd64_syscall+0x159/frame 0xfffffe013eaf8bf0 +# fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe013eaf8bf0 +# --- syscall (0, FreeBSD ELF64, nosys), rip = 0x80042813a, rsp = 0x7fffffffe518, rbp = 0x7fffffffe570 --- +# KDB: enter: panic +# [ thread pid 2853 tid 100445 ] +# Stopped at kdb_enter+0x37: movq $0,0x10c4cf6(%rip) +# db> x/s version +# version: FreeBSD 13.0-CURRENT #0 r362791: Tue Jun 30 08:57:50 CEST 2020 +# pho@t2.osted.lan:/usr/src/sys/amd64/compile/PHO +# db> reset + +# $FreeBSD$ + +[ `uname -p` != "amd64" ] && exit 0 + +. ../default.cfg +cat > /tmp/syzkaller18.c < +#include +#include +#include +#include +#include +#include +#include +#include +#include + +uint64_t r[1] = {0xffffffffffffffff}; + +int main(void) +{ + syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); + intptr_t res = 0; + res = syscall(SYS_socket, 0x1cul, 2ul, 0); + if (res != -1) + r[0] = res; + *(uint32_t*)0x200001c0 = 0; + syscall(SYS_setsockopt, r[0], 0x29, 0x1b, 0x200001c0ul, 4ul); + *(uint8_t*)0x20000080 = 0x1c; + *(uint8_t*)0x20000081 = 0x1c; + *(uint16_t*)0x20000082 = htobe16(0x4e20); + *(uint32_t*)0x20000084 = 0; + *(uint8_t*)0x20000088 = 0; + *(uint8_t*)0x20000089 = 0; + *(uint8_t*)0x2000008a = 0; + *(uint8_t*)0x2000008b = 0; + *(uint8_t*)0x2000008c = 0; + *(uint8_t*)0x2000008d = 0; + *(uint8_t*)0x2000008e = 0; + *(uint8_t*)0x2000008f = 0; + *(uint8_t*)0x20000090 = 0; + *(uint8_t*)0x20000091 = 0; + *(uint8_t*)0x20000092 = -1; + *(uint8_t*)0x20000093 = -1; + *(uint32_t*)0x20000094 = htobe32(0x7f000001); + *(uint32_t*)0x20000098 = 0; + syscall(SYS_bind, r[0], 0x20000080ul, 0x18ul); + *(uint32_t*)0x200002c0 = 0; + *(uint8_t*)0x200002c8 = 0x1c; + *(uint8_t*)0x200002c9 = 0x1c; + *(uint16_t*)0x200002ca = htobe16(0x4e23); + *(uint32_t*)0x200002cc = 4; + *(uint8_t*)0x200002d0 = -1; + *(uint8_t*)0x200002d1 = 1; + *(uint8_t*)0x200002d2 = 0; + *(uint8_t*)0x200002d3 = 0; + *(uint8_t*)0x200002d4 = 0; + *(uint8_t*)0x200002d5 = 0; + *(uint8_t*)0x200002d6 = 0; + *(uint8_t*)0x200002d7 = 0; + *(uint8_t*)0x200002d8 = 0; + *(uint8_t*)0x200002d9 = 0; + *(uint8_t*)0x200002da = 0; + *(uint8_t*)0x200002db = 0; + *(uint8_t*)0x200002dc = 0; + *(uint8_t*)0x200002dd = 0; + *(uint8_t*)0x200002de = 0; + *(uint8_t*)0x200002df = 1; + *(uint32_t*)0x200002e0 = 0x80000000; + *(uint64_t*)0x200002e8 = 0; + *(uint64_t*)0x200002f0 = 0; + *(uint64_t*)0x200002f8 = 0; + *(uint64_t*)0x20000300 = 0; + *(uint64_t*)0x20000308 = 0; + *(uint64_t*)0x20000310 = 0; + *(uint64_t*)0x20000318 = 0; + *(uint64_t*)0x20000320 = 0; + *(uint64_t*)0x20000328 = 0; + *(uint64_t*)0x20000330 = 0; + *(uint64_t*)0x20000338 = 0; + *(uint64_t*)0x20000340 = 0; + syscall(SYS_setsockopt, r[0], 0x29, 0x51, 0x200002c0ul, 0x88ul); + return 0; +} +EOF +mycc -o /tmp/syzkaller18 -Wall -Wextra -O0 /tmp/syzkaller18.c || + exit 1 + +(cd ../testcases/swap; ./swap -t 1m -i 20 -h > /dev/null 2>&1) & +start=`date +%s` +while pgrep -q swap; do + (cd /tmp; timeout 1m ./syzkaller18) + [ $((`date +%s` - start)) -ge 60 ] && break +done +pkill -9 syzkaller18 swap +wait + +rm -f /tmp/syzkaller18 /tmp/syzkaller18.c /tmp/syzkaller18.core +exit 0 From owner-svn-src-user@freebsd.org Tue Jun 30 07:37:25 2020 Return-Path: Delivered-To: svn-src-user@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1AD08360FD9 for ; Tue, 30 Jun 2020 07:37:25 +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.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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49wx5c6kRyz42Py; Tue, 30 Jun 2020 07:37:24 +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 CA46F148EA; Tue, 30 Jun 2020 07:37:24 +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 05U7bOfX006460; Tue, 30 Jun 2020 07:37:24 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 05U7bOJg006459; Tue, 30 Jun 2020 07:37:24 GMT (envelope-from pho@FreeBSD.org) Message-Id: <202006300737.05U7bOJg006459@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Tue, 30 Jun 2020 07:37:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r362793 - 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: 362793 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2020 07:37:25 -0000 Author: pho Date: Tue Jun 30 07:37:24 2020 New Revision: 362793 URL: https://svnweb.freebsd.org/changeset/base/362793 Log: Updated the exclude list. Modified: user/pho/stress2/misc/all.sh Modified: user/pho/stress2/misc/all.sh ============================================================================== --- user/pho/stress2/misc/all.sh Tue Jun 30 07:36:49 2020 (r362792) +++ user/pho/stress2/misc/all.sh Tue Jun 30 07:37:24 2020 (r362793) @@ -65,6 +65,8 @@ # lockf5.sh Spinning threads seen 20160718 # ifconfig.sh WiP 20190211 # ifconfig2.sh WiP 20190211 +# marcus5.sh https://people.freebsd.org/~pho/stress/log/mjguzik028.txt 20200624 +# marcus6.sh WiP 20200626 # maxvnodes.sh Only supposed to work in single user mode 20190412 # maxvnodes2.sh Only supposed to work in single user mode 20190412 # memguard.sh Waiting for fix commit @@ -103,6 +105,9 @@ # syzkaller11.sh WiP 20200419 # syzkaller13.sh WiP 20200607 # syzkaller15.sh WiP 20200617 +# syzkaller16.sh WiP 20200620 +# syzkaller17.sh WiP 20200630 +# syzkaller18.sh WiP 20200630 # ucom.sh Stuck in tail -F 20180129 # umountf7.sh panic: handle_written_inodeblock: live inodedep ... 20190219 # umountf9.sh panic: handle_written_inodeblock: live inodedep ... 20170221