From owner-freebsd-hackers@freebsd.org Thu Oct 19 14:46:19 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F4088E3D7C2 for ; Thu, 19 Oct 2017 14:46:18 +0000 (UTC) (envelope-from srs0=xhoe=bs=sigsegv.be=kristof@codepro.be) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7B5D6C8AC; Thu, 19 Oct 2017 14:46:18 +0000 (UTC) (envelope-from srs0=xhoe=bs=sigsegv.be=kristof@codepro.be) Received: from [169.254.138.137] (vega.codepro.be [IPv6:2a01:4f8:162:1127::3]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 43DF22476C; Thu, 19 Oct 2017 16:46:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1508424375; bh=R+DMNOJBRAgOwZJsd4L+O6uP53bNC9xy/7lKMNXPRdY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kCYgF4lOkvxy5Xj/LVPQbDcZ5oxMDPf0av8OPIasOSYATgFQwJc69YTpRA//+Z/pJ hVHkilKgroirUPdHcar+OUvSeb2DtSkW9pJ5fcTYYVcjSFNQSiH+0LBXs/y02Nh8F9 jU8m80h8/1FT5hQSUBojpgzEqxTGruf883Gn4PwU= From: "Kristof Provost" To: "Dmitry Vyukov" Cc: freebsd-hackers@freebsd.org, rwatson@freebsd.org, "Kostya Serebryany" , syzkaller Subject: Re: syzkaller for freebsd Date: Thu, 19 Oct 2017 16:46:31 +0200 Message-ID: <95CF3989-2830-41E4-A29A-B32EBC818CE0@sigsegv.be> In-Reply-To: References: MIME-Version: 1.0 X-Mailer: MailMate (2.0BETAr6093) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2017 14:46:19 -0000 Neat! On 19 Oct 2017, at 14:05, Dmitry Vyukov via freebsd-hackers wrote: > panic: ffs_write: type 0xfffff80003eee760 8 (0,0) > https://pastebin.com/raw/Xm80kYSz > This one even comes with a C reproducer (which is surprising, because > syzkaller currently only generates/builds reproducers for Linux, still > it somehow run on FreeBSD and triggered the crash): > https://pastebin.com/raw/EZe8thej > FreeBSD can run (some/many) Linux binaries, so perhaps that’s what you’re seeing here. > Fatal trap 12: page fault in vnet_pf_uninit > https://pastebin.com/raw/0AiJJz7D > I’m pretty sure this one isn’t really a direct result of fuzzing. Unloading pf on 11.1 is unreliable. Doing `kldunload -f pf` will likely result in the same panic. I believe this to be fixed in CURRENT. Regards, Kristof From owner-freebsd-hackers@freebsd.org Thu Oct 19 15:08:51 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A25CE3E12B for ; Thu, 19 Oct 2017 15:08:51 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED5416D464 for ; Thu, 19 Oct 2017 15:08:50 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 61d13e65-b4df-11e7-a893-25625093991c X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 61d13e65-b4df-11e7-a893-25625093991c; Thu, 19 Oct 2017 15:08:38 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v9JF8XQC008662; Thu, 19 Oct 2017 09:08:33 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1508425713.1383.6.camel@freebsd.org> Subject: Re: We do serial differently. From: Ian Lepore To: Zaphod Beeblebrox , FreeBSD Hackers Date: Thu, 19 Oct 2017 09:08:33 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2017 15:08:51 -0000 On Thu, 2017-10-19 at 00:25 -0400, Zaphod Beeblebrox wrote: > How does FreeBSD do serial differently than Linux or MacOS or Windows? > > Now... this isn't _exactly_ serial, but the serial that is emulated by the > arduino driver in ports. > > The issue is that running the arduino IDE works (and it boots with the > loaded code), but then running 'pronterface'  fails to connect --- looking > all-the-while like one-way communication. > > I see someone else basically having the same problem and claiming that > hacking a trace (that affects the DTR response) on the arduino fixes it for > FreeBSD (see https://plus.google.com/+MiroslavPrymek/posts/6TDdbuoNhzH )... > > Given this information, can I stty my way out of this problem?  Can I make > a small modification to pronterface? Use the "callout" device, /dev/cuaXX, rather than /dev/ttyXX (which is the "callin" device).  The callin device waits for a call to come in, and that's implemented by blocking in open() until the modem/other-end asserts DTR (or DSR, I can never remember which end is which). So if it's hanging with /dev/ttyU0 use /dev/cuaU0. -- Ian