Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2015 02:28:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201466] ifconfig called from ruby shell class causes kernel panic
Message-ID:  <bug-201466-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201466

            Bug ID: 201466
           Summary: ifconfig called from ruby shell class causes kernel
                    panic
           Product: Base System
           Version: 10.2-BETA1
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: tss@e-ontap.com

Created attachment 158594
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158594&action=edit
core.txt

This code causes kernel panic in FreeBSD 10.2-BETA1.
(same as with GENERIC kernel)

#!/usr/local/bin/ruby21
require 'shell'
Shell.def_system_command("ifconfig", path = "/sbin/ifconfig")
sh=Shell.new
sh.ifconfig('epair','create')

-------------------------------------------------------

freebsd102 dumped core - see /var/crash/vmcore.0

Sat Jul 11 06:49:32 JST 2015

FreeBSD freebsd102 10.2-BETA1 FreeBSD 10.2-BETA1 #0 r285358: Sat Jul 11
04:42:16 JST 2015     root@freebsd102:/usr/obj/usr/src/sys/VIMAGE  i386

panic: page fault

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address    = 0x0
fault code        = supervisor read, page not present
instruction pointer    = 0x20:0x0
stack pointer            = 0x28:0xd341c8c4
frame pointer            = 0x28:0xd341c8e4
code segment        = base 0x0, limit 0xfffff, type 0x1b
            = DPL 0, pres 1, def32 1, gran 1
processor eflags    = interrupt enabled, resume, IOPL = 0
current process        = 1056 (ifconfig)
trap number        = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0xc0b74292 at kdb_backtrace+0x52
#1 0xc0b3509b at vpanic+0x11b
#2 0xc0b34f7b at panic+0x1b
#3 0xc106dc5b at trap_fatal+0x30b
#4 0xc106dfc5 at trap_pfault+0x355
#5 0xc106d694 at trap+0x674
#6 0xc10589dc at calltrap+0x6
#7 0xc3fe3aa0 at epair_ioctl+0x70
#8 0xc0c02392 at ifioctl+0x1392
#9 0xc0b95138 at soo_ioctl+0x2c8
#10 0xc0b8d068 at kern_ioctl+0x258
#11 0xc0b8cd6c at sys_ioctl+0xec
#12 0xc106e726 at syscall+0x4a6
#13 0xc1058a71 at Xint0x80_syscall+0x21
Uptime: 1h37m40s
Physical memory: 231 MB
Dumping 72 MB: 57 41 25 9

Reading symbols from /boot/kernel/uhid.ko.symbols...done.
Loaded symbols for /boot/kernel/uhid.ko.symbols
Reading symbols from /boot/kernel/if_epair.ko.symbols...done.
Loaded symbols for /boot/kernel/if_epair.ko.symbols
#0  0x00000000 in ?? ()
(kgdb) #0  0x00000000 in ?? ()
(kgdb)

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201466-8>