NetBSD Problem Report #48813

From www@NetBSD.org  Sat May 17 04:03:10 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 622D5A583B
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 17 May 2014 04:03:10 +0000 (UTC)
Message-Id: <20140517040308.A02D7A585F@mollari.NetBSD.org>
Date: Sat, 17 May 2014 04:03:08 +0000 (UTC)
From: dogan@tesmer.org.tr
Reply-To: dogan@tesmer.org.tr
To: gnats-bugs@NetBSD.org
Subject: Use of ppp interface causes kernel panic
X-Send-Pr-Version: www-1.0

>Number:         48813
>Category:       kern
>Synopsis:       Use of ppp interface causes kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 17 04:05:00 +0000 2014
>Closed-Date:    Thu Jun 05 21:03:33 +0000 2014
>Last-Modified:  Thu Jun 05 21:03:33 +0000 2014
>Originator:     Mustafa Dogan
>Release:        NetBSD 6.99.41
>Organization:
www.tesmer.org.tr
>Environment:
NetBSD md.dogan.biz.tr 6.99.41 NetBSD 6.99.41 (GENERIC) #0: Thu May 16 05:47:43 EEST 2014  root@md.dogan.biz.tr:/root/OBJ/sys/arch/amd64/compile/GENERIC amd64
>Description:
After src/sys/net changes dated 2014/05/15, use of ppp interface causes kernel panic.
I updated -current source tree and and made release with build.sh on 2014/05/16. 

# cd /usr/src; ./build.sh -x release

Then, I installed new kernel and userland. Now, when I try to use ppp interface, it causes kernel panic.

# pppd call 3g.ppp
# nslookup www.netbsd.org

At this point, kernel panicking.

panic: kernel diagnostic assertion "offset != 0 && offset < softint_bytes" failed: file "/usr/src/sys/kern/kern_softint.c", line 467 0 8192
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x13c
kern_assert() at netbsd:kern_assert+0x4f
softint_schedule() at netbsd:softint_schedule+0x77
pppintr() at netbsd:pppintr+0x2ed
softint_dispatch() at netbsd:softint_dispatch+0xd3
DDB lost frame for netbsd:Xsoftintr+0x4f, trying 0xfffffe80068a5ff0
Xsoftintr() at netbsd:Xsoftintr+0x4f
--- Interrupt ---
0:
cpu0: End traceback

>How-To-Repeat:
Build new kernel with -current source dated 2014/05/16 and reboot with it. Then use ppp interface (for example a 3G modem with ppp interface).
>Fix:
Probably this problem occurred after the src/sys/net source changes at 2014/05/15 related to schednetisr(). 

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: rmind@NetBSD.org
State-Changed-When: Sat, 17 May 2014 14:52:30 +0000
State-Changed-Why:
Thanks for the PR.  Can you cvs up and try again?


From: "Mindaugas Rasiukevicius" <rmind@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48813 CVS commit: src/sys/net
Date: Sat, 17 May 2014 14:51:10 +0000

 Module Name:	src
 Committed By:	rmind
 Date:		Sat May 17 14:51:10 UTC 2014

 Modified Files:
 	src/sys/net: if_ppp.c

 Log Message:
 ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.


 To generate a diff of this commit:
 cvs rdiff -u -r1.142 -r1.143 src/sys/net/if_ppp.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: dogan@tesmer.org.tr
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org,
 netbsd-bugs@netbsd.org,
 gnats-admin@netbsd.org,
 rmind@netbsd.org
Subject: Re: kern/48813 (Use of ppp interface causes kernel panic)
Date: Thu, 5 Jun 2014 22:30:10 +0300

 Hi,
 I tried and it is OK.
 You may close this PR.
 Thanks.
 M. Dogan

 > Synopsis: Use of ppp interface causes kernel panic
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: rmind@NetBSD.org
 > State-Changed-When: Sat, 17 May 2014 14:52:30 +0000
 > State-Changed-Why:
 > Thanks for the PR.  Can you cvs up and try again?


State-Changed-From-To: feedback->closed
State-Changed-By: rmind@NetBSD.org
State-Changed-When: Thu, 05 Jun 2014 21:03:33 +0000
State-Changed-Why:
Fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.