From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 29 10:13:34 2005 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2286116A4CE for ; Tue, 29 Mar 2005 10:13:34 +0000 (GMT) Received: from gandalf.osk.com.ua (osk.com.ua [195.5.17.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67D4E43D5E for ; Tue, 29 Mar 2005 10:13:33 +0000 (GMT) (envelope-from subscriber@osk.com.ua) Received: from oleg.osk.lan (unknown [192.168.0.20]) by gandalf.osk.com.ua (Postfix) with ESMTP id A1BB778C08; Tue, 29 Mar 2005 13:13:50 +0300 (EEST) Date: Tue, 29 Mar 2005 12:15:20 +0200 From: Oleg Tarasov X-Mailer: The Bat! (v3.0.1.33) Professional X-Priority: 3 (Normal) Message-ID: <83927877.20050329121520@osk.com.ua> To: Bruce Evans In-Reply-To: <20050323235823.E19701@epsplex.bde.org> References: <815955888.20050323113529@osk.com.ua> <20050323235823.E19701@epsplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-bugs@FreeBSD.org Subject: Re: sio interrupt-level buffer overflows X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: FreeBSD MailList List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2005 10:13:34 -0000 Hello, Bruce Evans wrote: > I can't explain the panic. The only relevant difference that I can think > of is that the change gives larger interrupt-level buffers in sio. ppp > might be depending on them not being very large. However, at the interrupt > level, ppp just copies data 1 character at a time into mbufs, so there is > not much to go wrong. Does the panic occur in ppp (in the kernel) or in sio? This problem had unusual solution. It seems the key to this problem is that FreeBSD 5.3-STABLE-p5 (I have updated my system) has DEADLOCKS when intensively using sio device on high speed (115200) with SMP support. It seems that MPSAFE causes those deadlocks. Turning debug.mpsafenet="0" in /boot/loader.conf makes the system to work fine & stable instead of panicing every hour or more often This change works both with original or modified sio.c. I am grateful for solution with interrupt-level buffer overflows (the change worked fine, no more overflows) but here we have another, more serious BUG. -- Best regards, Oleg Tarasov mailto:subscriber@osk.com.ua