FreeBSD 9.2-RELEASE-p7 #0: Tue Jun 3 11:05:13 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC new with nut-2.7+ is /usr/local/etc/devd/nut-usb.conf Which might be useful in principle, but only causes problems. Because it has blocks like this: notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x0001"; match "product" "0x0000"; action "chgrp _ups /dev/$device-name*; chmod g+rw /dev/$device-name*"; }; Where $device-name is undefined, so it reduces to '/dev/*' for the chgrp and chmod operations. The man page says $device-name is one of the variables available for a 'match' block, makes no mention of it being available with 'notify'. Only affects users with USB attached UPSs.. so it stumped me for a while on why it was only happening to this machine. Plus it was secondary, though now it might be the true cause, to the endless cycle of panics from updating to 9.1-RELEASE-p10....instead of the backtraces pointing to vboxnet. Since rolling back to -p9 didn't solve things...
Device name is defined. Please change /dev/$device-name to $device-name. (My new UPS broke yesterday so I cannot test until it is replaced. After attaching the UPS, can I see ls -lR /dev output.
There's no attaching on my part because the attach occurs during boot when it enumerates all USB devices. I only saved an ls -AFxl, since I was trying to quickly fix things in single user to see if boot won't end in panic. total 4 crw-r--r-- 1 root wheel 0x34 9 Jul 20:30 acpi lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 ad10@ -> ada3 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad10p1@ -> ada3p1 lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 ad12@ -> ada4 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad12p1@ -> ada4p1 lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 ad13@ -> ada5 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad13p1@ -> ada5p1 lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 ad14@ -> ada9 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad14p1@ -> ada9p1 lrwxr-xr-x 1 root wheel 5 9 Jul 20:30 ad15@ -> ada10 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad15p1@ -> ada10p1 lrwxr-xr-x 1 root wheel 5 9 Jul 20:30 ad16@ -> ada14 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad16p1@ -> ada14p1 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad16p2@ -> ada14p2 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad16p3@ -> ada14p3 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad16p4@ -> ada14p4 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad16p6@ -> ada14p6 lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 ad4@ -> ada0 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad4p1@ -> ada0p1 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad4p2@ -> ada0p2 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad4p3@ -> ada0p3 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad4p4@ -> ada0p4 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad4p5@ -> ada0p5 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad4p6@ -> ada0p6 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad4p7@ -> ada0p7 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad4p8@ -> ada0p8 lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 ad6@ -> ada1 lrwxr-xr-x 1 root wheel 5 9 Jul 20:30 ad61@ -> ada11 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad61p1@ -> ada11p1 lrwxr-xr-x 1 root wheel 5 9 Jul 20:30 ad62@ -> ada12 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad62p1@ -> ada12p1 lrwxr-xr-x 1 root wheel 5 9 Jul 20:30 ad63@ -> ada13 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 ad63p1@ -> ada13p1 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad6p1@ -> ada1p1 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad6p2@ -> ada1p2 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad6p3@ -> ada1p3 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad6p4@ -> ada1p4 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad6p5@ -> ada1p5 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad6p6@ -> ada1p6 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad6p7@ -> ada1p7 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad6p8@ -> ada1p8 lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 ad8@ -> ada2 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 ad8p1@ -> ada2p1 crw-r----- 1 root _ups 0x81 9 Jul 20:30 ada0 crw-r----- 1 root _ups 0x83 9 Jul 20:30 ada0p1 crw-r----- 1 root _ups 0x85 9 Jul 20:30 ada0p2 crw-r----- 1 root _ups 0x87 9 Jul 20:30 ada0p3 crw-r----- 1 root _ups 0x89 9 Jul 20:30 ada0p4 crw-r----- 1 root _ups 0x8b 9 Jul 20:30 ada0p5 crw-r----- 1 root _ups 0x8d 9 Jul 20:30 ada0p6 crw-r----- 1 root _ups 0x8f 9 Jul 20:30 ada0p7 crw-r----- 1 root _ups 0x91 9 Jul 20:30 ada0p8 crw-r----- 1 root _ups 0x93 9 Jul 20:30 ada1 crw-r----- 1 root _ups 0xa8 9 Jul 20:30 ada10 crw-r----- 1 root _ups 0xdf 9 Jul 20:30 ada10p1 crw-r----- 1 root _ups 0xaa 9 Jul 20:30 ada11 crw-r----- 1 root _ups 0xe1 9 Jul 20:30 ada11p1 crw-r----- 1 root _ups 0xac 9 Jul 20:30 ada12 crw-r----- 1 root _ups 0xe3 9 Jul 20:30 ada12p1 crw-r----- 1 root _ups 0xae 9 Jul 20:30 ada13 crw-r----- 1 root _ups 0xe5 9 Jul 20:30 ada13p1 crw-r----- 1 root _ups 0xb0 9 Jul 20:30 ada14 crw-r----- 1 root _ups 0xe7 9 Jul 20:30 ada14p1 crw-r----- 1 root _ups 0xe9 9 Jul 20:30 ada14p2 crw-r----- 1 root _ups 0xeb 9 Jul 20:30 ada14p3 crw-r----- 1 root _ups 0xed 9 Jul 20:30 ada14p4 crw-r----- 1 root _ups 0xef 9 Jul 20:30 ada14p6 crw-r----- 1 root _ups 0xc2 9 Jul 20:30 ada1p1 crw-r----- 1 root _ups 0xc4 9 Jul 20:30 ada1p2 crw-r----- 1 root _ups 0xc6 9 Jul 20:30 ada1p3 crw-r----- 1 root _ups 0xc8 9 Jul 20:30 ada1p4 crw-r----- 1 root _ups 0xca 9 Jul 20:30 ada1p5 crw-r----- 1 root _ups 0xcc 9 Jul 20:30 ada1p6 crw-r----- 1 root _ups 0xce 9 Jul 20:30 ada1p7 crw-r----- 1 root _ups 0xd0 9 Jul 20:30 ada1p8 crw-r----- 1 root _ups 0x95 9 Jul 20:30 ada2 crw-r----- 1 root _ups 0xd2 9 Jul 20:30 ada2p1 crw-r----- 1 root _ups 0x97 9 Jul 20:30 ada3 crw-r----- 1 root _ups 0xd4 9 Jul 20:30 ada3p1 crw-r----- 1 root _ups 0x99 9 Jul 20:30 ada4 crw-r----- 1 root _ups 0xd6 9 Jul 20:30 ada4p1 crw-r----- 1 root _ups 0xa1 9 Jul 20:30 ada5 crw-r----- 1 root _ups 0xd8 9 Jul 20:30 ada5p1 crw-r----- 1 root _ups 0xa3 9 Jul 20:30 ada6 crw-r----- 1 root _ups 0xda 9 Jul 20:30 ada6p1 crw-r----- 1 root _ups 0xa4 9 Jul 20:30 ada7 crw-r----- 1 root _ups 0xdb 9 Jul 20:30 ada7p1 crw-r----- 1 root _ups 0xa5 9 Jul 20:30 ada8 crw-r----- 1 root _ups 0xdc 9 Jul 20:30 ada8p1 crw-r----- 1 root _ups 0xa6 9 Jul 20:30 ada9 crw-r----- 1 root _ups 0xdd 9 Jul 20:30 ada9p1 crw------- 1 root _ups 0x5a 9 Jul 20:30 atkbd0 crw------- 1 root _ups 0x33 9 Jul 20:30 audit crw-r----- 1 root wheel 0x1c 9 Jul 20:30 bpf lrwxr-xr-x 1 root wheel 3 9 Jul 20:30 bpf0@ -> bpf crw-rw---- 1 root _ups 0x80 9 Jul 20:30 cd0 lrwxr-xr-x 1 root wheel 3 9 Jul 20:30 cdrom@ -> cd0 crw------- 1 root _ups 0x11 9 Jul 21:14 console crw------- 1 root _ups 0x59 9 Jul 20:30 consolectl crw-r----- 1 root _ups 0x26 9 Jul 20:30 cpuctl0 crw-r----- 1 root _ups 0x27 9 Jul 20:30 cpuctl1 crw-r----- 1 root _ups 0x28 9 Jul 20:30 cpuctl2 crw-r----- 1 root _ups 0x29 9 Jul 20:30 cpuctl3 crw-r----- 1 root _ups 0x2a 9 Jul 20:30 cpuctl4 crw-r----- 1 root _ups 0x2b 9 Jul 20:30 cpuctl5 crw-r----- 1 root _ups 0x2c 9 Jul 20:30 cpuctl6 crw-r----- 1 root _ups 0x2d 9 Jul 20:30 cpuctl7 crw-rw-rw- 1 root _ups 0x17 9 Jul 20:30 ctty crw------- 1 root _ups 0x3 9 Jul 20:30 cuse crw------- 1 root _ups 0xf 9 Jul 20:30 devctl cr--r--r-- 1 root _ups 0x6d 9 Jul 20:30 devstat crw-rw-rw- 1 root wheel 0x15f 9 Jul 20:31 dsp0.0 crw-rw-rw- 1 root wheel 0x160 9 Jul 21:41 dsp0.1 crw-rw-rw- 1 root wheel 0x170 9 Jul 20:32 dsp0.2 crw-rw-rw- 1 root wheel 0x173 9 Jul 21:15 dsp0.3 crw-rw-rw- 1 root wheel 0x174 9 Jul 21:14 dsp0.4 crw-rw-rw- 1 root wheel 0x184 9 Jul 21:35 dsp0.5 crw-rw-rw- 1 root wheel 0x152 11 Jul 06:42 dsp0.6 crw-rw-rw- 1 root wheel 0x175 9 Jul 21:14 dsp1.1 crw-rw-rw- 1 root wheel 0x177 9 Jul 21:14 dsp2.1 crw-rw-rw- 1 root wheel 0x179 9 Jul 21:14 dsp3.1 dr-xr-xr-x 3 root _ups 512 9 Jul 20:30 dtrace/ lrwxr-xr-x 1 root wheel 14 9 Jul 20:30 dumpdev@ -> /dev/gpt/swap0 lrwxr-xr-x 1 root wheel 3 9 Jul 20:30 dvd@ -> cd0 dr-xr-xr-x 2 root wheel 512 9 Jul 20:30 fd/ crw------- 1 root _ups 0x14 9 Jul 20:30 fido crw-rw---- 1 root _ups 0x172 11 Jul 08:05 fuse0 crw-r----- 1 root _ups 0xe 9 Jul 20:30 geom.ctl dr-xr-xr-x 2 root _ups 512 9 Jul 20:30 gpt/ dr-xr-xr-x 2 root _ups 512 9 Jul 20:30 gptid/ crw------- 1 root _ups 0x16 9 Jul 20:30 io crw------- 1 root _ups 0x102 9 Jul 20:30 ipauth crw------- 1 root _ups 0xb5 9 Jul 20:30 ipl crw------- 1 root _ups 0x10a 9 Jul 20:30 iplookup crw------- 1 root _ups 0xf4 9 Jul 20:30 ipnat crw------- 1 root _ups 0x108 9 Jul 20:30 ipscan crw------- 1 root _ups 0xfa 9 Jul 20:30 ipstate crw------- 1 root _ups 0x106 9 Jul 20:30 ipsync lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 kbd0@ -> atkbd0 lrwxr-xr-x 1 root wheel 7 9 Jul 20:30 kbd1@ -> kbdmux0 lrwxr-xr-x 1 root wheel 5 9 Jul 20:30 kbd2@ -> ukbd0 crw------- 1 root _ups 0x31 9 Jul 20:30 kbdmux0 crw------- 1 root _ups 0x15 9 Jul 20:30 klog crw-r----- 1 root _ups 0x13 9 Jul 20:30 kmem dr-xr-xr-x 2 root _ups 512 9 Jul 20:30 led/ lrwxr-xr-x 1 root wheel 12 9 Jul 20:31 log@ -> /var/run/log crw-r----- 1 root _ups 0x15e 9 Jul 20:31 md0 crw------- 1 root _ups 0x66 9 Jul 20:30 mdctl crw-r----- 1 root _ups 0x12 9 Jul 20:30 mem crw-rw-rw- 1 root _ups 0x2e 9 Jul 20:30 midistat crw-rw-rw- 1 root _ups 0x63 9 Jul 20:30 mixer0 crw-rw-rw- 1 root _ups 0x64 9 Jul 20:30 mixer1 crw-rw-rw- 1 root _ups 0x65 9 Jul 20:30 mixer2 crw-rw-rw- 1 root _ups 0x149 9 Jul 20:30 mixer3 crw------- 1 root _ups 0x30 9 Jul 20:30 nfslock dr-xr-xr-x 2 root _ups 512 9 Jul 20:30 ntfs/ crw-rw-rw- 1 root _ups 0x18 11 Jul 08:02 null crw-rw-rw- 1 root _ups 0x35 9 Jul 20:30 nvidia0 crw-rw-rw- 1 root _ups 0x36 9 Jul 20:30 nvidiactl crw------- 1 root _ups 0x6e 9 Jul 20:30 pass0 crw------- 1 root _ups 0x6f 9 Jul 20:30 pass1 crw------- 1 root _ups 0x78 9 Jul 20:30 pass10 crw------- 1 root _ups 0x79 9 Jul 20:30 pass11 crw------- 1 root _ups 0x7a 9 Jul 20:30 pass12 crw------- 1 root _ups 0x7b 9 Jul 20:30 pass13 crw------- 1 root _ups 0x7c 9 Jul 20:30 pass14 crw------- 1 root _ups 0x7d 9 Jul 20:30 pass15 crw------- 1 root _ups 0x7e 9 Jul 20:30 pass16 crw-rw---- 1 root _ups 0x7f 9 Jul 20:30 pass17 crw------- 1 root _ups 0x70 9 Jul 20:30 pass2 crw------- 1 root _ups 0x71 9 Jul 20:30 pass3 crw------- 1 root _ups 0x72 9 Jul 20:30 pass4 crw------- 1 root _ups 0x73 9 Jul 20:30 pass5 crw------- 1 root _ups 0x74 9 Jul 20:30 pass6 crw------- 1 root _ups 0x75 9 Jul 20:30 pass7 crw------- 1 root _ups 0x76 9 Jul 20:30 pass8 crw------- 1 root _ups 0x77 9 Jul 20:30 pass9 crw-r--r-- 1 root _ups 0x1a 9 Jul 20:30 pci crw-rw-rw- 1 root _ups 0x1b 9 Jul 20:30 ptmx dr-xr-xr-x 2 root _ups 512 9 Jul 21:14 pts/ crw-rw-rw- 1 root _ups 0x1e 9 Jul 20:30 random lrwxr-xr-x 1 root wheel 3 9 Jul 20:30 rdvd@ -> cd0 crw-r--r-- 1 root wheel 0x155 9 Jul 20:31 rtc lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 shm@ -> /tmp cr--r--r-- 1 root _ups 0x10 9 Jul 20:30 sndstat lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 stderr@ -> fd/2 lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 stdin@ -> fd/0 lrwxr-xr-x 1 root wheel 4 9 Jul 20:30 stdout@ -> fd/1 crw------- 1 root _ups 0x2f 9 Jul 20:30 sysmouse crw------- 1 root _ups 0x49 9 Jul 20:31 ttyv0 crw------- 1 root _ups 0x4a 9 Jul 20:31 ttyv1 crw------- 1 root _ups 0x4b 9 Jul 20:31 ttyv2 crw------- 1 root _ups 0x4c 9 Jul 20:31 ttyv3 crw------- 1 root _ups 0x4d 9 Jul 20:31 ttyv4 crw------- 1 root _ups 0x4e 9 Jul 20:31 ttyv5 crw------- 1 root _ups 0x4f 9 Jul 20:31 ttyv6 crw------- 1 root _ups 0x50 9 Jul 20:31 ttyv7 crw------- 1 root _ups 0x51 9 Jul 20:30 ttyv8 crw------- 1 root _ups 0x52 9 Jul 20:30 ttyv9 crw------- 1 root _ups 0x53 9 Jul 20:30 ttyva crw------- 1 root _ups 0x54 9 Jul 20:30 ttyvb crw------- 1 root _ups 0x55 9 Jul 20:30 ttyvc crw------- 1 root _ups 0x56 9 Jul 20:30 ttyvd crw------- 1 root _ups 0x57 9 Jul 20:30 ttyve crw------- 1 root _ups 0x58 9 Jul 20:30 ttyvf crw------- 1 root _ups 0x5c 9 Jul 20:30 ufssuspend lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen0.1@ -> usb/0.1.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen0.2@ -> usb/0.2.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen0.3@ -> usb/0.3.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen0.4@ -> usb/0.4.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen0.5@ -> usb/0.5.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.1@ -> usb/1.1.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.2@ -> usb/1.2.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.3@ -> usb/1.3.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.4@ -> usb/1.4.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.5@ -> usb/1.5.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.6@ -> usb/1.6.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.7@ -> usb/1.7.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.8@ -> usb/1.8.0 lrwxr-xr-x 1 root wheel 9 9 Jul 20:30 ugen1.9@ -> usb/1.9.0 crw-r--r-- 1 root _ups 0x11a 9 Jul 20:30 uhid0 crw-r--r-- 1 root _ups 0x134 9 Jul 20:30 uhid1 crw------- 1 root _ups 0x132 9 Jul 20:30 ukbd0 crw-r--r-- 1 root _ups 0x12d 9 Jul 20:30 ums0 lrwxr-xr-x 1 root wheel 6 9 Jul 20:30 urandom@ -> random dr-xr-xr-x 2 root _ups 512 9 Jul 20:30 usb/ crw-r--r-- 1 root _ups 0x61 9 Jul 20:30 usbctl crw-rw---- 1 root vboxusers 0x5f 9 Jul 20:30 vboxdrv crw-rw-rw- 1 root wheel 0x60 9 Jul 20:30 vboxdrvu crw-rw---- 1 root vboxusers 0x10c 9 Jul 20:30 vboxnetctl crw-rw---- 1 webcamd webcamd 0x171 9 Jul 20:32 video0 crw-rw---- 1 root _ups 0x62 9 Jul 20:30 xpt0 crw-rw-rw- 1 root _ups 0x19 9 Jul 20:30 zero crw-rw-rw- 1 root _ups 0x5d 9 Jul 20:30 zfs dr-xr-xr-x 3 root _ups 512 9 Jul 20:30 zvol/ See now I probably would've needed to look deeper to fix the mess....but after 15 panics (there was 16th an hour before I submitted)....since ~3:30pm... until then rebooting for latest freebsd-update had been going fine. Came down to the one system with a USB attached UPS. Actually, I re-read the docs...and its says "...variables and their possible values that can be used together with the *match* statement". Those notify blocks don't contain a *match* statement for device-name, so how does $device-name become defined?
Created attachment 144676 [details] devd patch Try this patch.
A commit references this bug: Author: cy Date: Tue Jul 15 06:02:54 UTC 2014 New revision: 361870 URL: http://svnweb.freebsd.org/changeset/ports/361870 Log: Fix permissions /dev permissions. PR: 191777 Changes: head/sysutils/nut/Makefile head/sysutils/nut/files/patch-scripts-devd-nut-usb.conf.in
A commit references this bug: Author: cy Date: Thu Jul 17 20:04:19 UTC 2014 New revision: 362164 URL: http://svnweb.freebsd.org/changeset/ports/362164 Log: The build adds "*" to its devd conf file prior to install. Really fix PR 191777. PR: 191777 Changes: head/sysutils/nut/Makefile head/sysutils/nut/files/patch-scripts-devd-nut-usb.conf.in