[HEADS UP] change in devfs path matching logic

Toomas Aas toomas.aas at raad.tartu.ee
Sat Aug 24 20:08:40 UTC 2013


Hello!

On Fri, 23 Aug 2013 Andriy Gapon <avg at FreeBSD.org> wrote:

>
> This change is about to be MFC-ed.
>
> on 26/07/2013 17:39 Andriy Gapon said the following:
>>
>> I have just committed a significant change to devfs path matching logic
>> http://svnweb.freebsd.org/changeset/base/253677

I just rebuilt my 8-STABLE i386 system to r254796 and now receive a  
kernel panic on boot. If I remove my /etc/devfs.rules file, the panic  
does not happen. Can anyone point out what is wrong with my  
devfs.rules what the new path matching logic doesn't like?

$ cat /etc/devfs.rules.old
[localrules=10]
add path "da*" mode 0660 group operator
add path "usb/1.2.0" mode 0660 group uucp
add path "usb/4.3.0" mode 0660 group operator


The panic, as transcribed from screen:

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x0
fault code            = supervisor read, page not present
instruction pointer   = 0x20:0xc06dde21
stack pointer         = 0x28:0xe8690a48
frame pointer         = 0x28:0xe8690a80
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       = 577 (ln)
trap number           = 12
panic: page fault
KDB: stack backtrace:
#0 0xc0670ece at kdb_backtrace+0x50
#1 0xc06449fa at panic+0x132
#2 0xc07eb1d2 at trap_fatal+0x21e
#3 0xc07eb4e0 at trap_pfault+0x1c2
#4 0xc07ec251 at trap+0x3c1
#5 0xc07d95fc at calltrap+0x6
#6 0xc05c7001 at devfs_rule_run+0x13d
#7 0xc05c70c3 at devfs_ruleset_applyde+0x25
#8 0xc05c71b3 at devfs_rules_apply+0x73
#9 0xc05cad51 at devfs_symlink+0x124
#10 0xc080d084 at VOP_SYMLINK_APV+0x4a
#11 0xc06d2985 at kern_symlinkat+0x38b
#12 0xc06d29da at kern_symlink+0x2e
#13 0xc06d2a05 at symlink+0x29
#14 0xc07eb7c7 at syscall+0x1a1
#15 0xc07d9661 at Xint0x80_syscall+0x21


Thanks in advance!
-- 
Toomas Aas
Tartu linnakantselei arvutivõrgu peaspetsialist
tel 736 1274
mob 513 6493


More information about the freebsd-stable mailing list