Re: Kernel panic: softdep_deallocate_dependencies: dangling deps

2019-12-05 Thread Darren Tucker
On Wed, Dec 04, 2019 at 09:17:59AM -0500, Demi M. Obenour wrote:
> On my OpenBSD VM, if I enable softdeps in /etc/fstab, the kernel panics
> 
> panic: softdep_deallocate_dependencies: dangling deps

I get the same thing with a just-updated armv7 snapshot a minute or so
after booting.

booting sd0a:/bsd: 4600928+674708+249056+565592 [251532+120+318208+282368]=0x0
EHCI failed to shut down host controller.

OpenBSD/armv7 booting ...
arg0 0xc09a01a0 arg1 0x0 arg2 0x47ef8000
Allocating page tables
IRQ stack: p0x409cf000 v0xc09cf000
ABT stack: p0x409d v0xc09d
UND stack: p0x409d1000 v0xc09d1000
SVC stack: p0x409d2000 v0xc09d2000
Creating L1 page table at 0x409a4000
Mapping kernel
Constructing L2 page tables
undefined page type 0x2 pa 0x4000 va 0x4000 pages 0x2000 attr 0x8
type 0x7 pa 0x4200 va 0x4200 pages 0x5ef8 attr 0x8
type 0x4 pa 0x47ef8000 va 0x47ef8000 pages 0x10 attr 0x8
type 0x7 pa 0x47f08000 va 0x47f08000 pages 0x8d5 attr 0x8
type 0x2 pa 0x487dd000 va 0x487dd000 pages 0x65b attr 0x8
type 0x4 pa 0x48e38000 va 0x48e38000 pages 0x1 attr 0x8
type 0x7 pa 0x48e39000 va 0x48e39000 pages 0x1 attr 0x8
type 0x2 pa 0x48e3a000 va 0x48e3a000 pages 0x100 attr 0x8
type 0x1 pa 0x48f3a000 va 0x48f3a000 pages 0x17 attr 0x8
type 0x0 pa 0x48f51000 va 0x48f51000 pages 0x5 attr 0x8
type 0x4 pa 0x48f56000 va 0x48f56000 pages 0x1 attr 0x8
type 0x6 pa 0x48f57000 va 0x48f57000 pages 0x1 attr 0x8008
type 0x4 pa 0x48f58000 va 0x48f58000 pages 0x2 attr 0x8
type 0x0 pa 0x48f5a000 va 0x48f5a000 pages 0x4 attr 0x8
type 0x4 pa 0x48f5e000 va 0x48f5e000 pages 0x2 attr 0x8
type 0x0 pa 0x48f6 va 0x48f6 pages 0x2 attr 0x8
type 0x6 pa 0x48f62000 va 0x48f62000 pages 0x1 attr 0x8008
type 0x0 pa 0x48f63000 va 0x48f63000 pages 0x1 attr 0x8
type 0x2 pa 0x48f64000 va 0x48f64000 pages 0x5027 attr 0x8
type 0x5 pa 0x4df8b000 va 0x4df8b000 pages 0x1 attr 0x8008
type 0x2 pa 0x4df8c000 va 0x4df8c000 pages 0x2074 attr 0x8
pmap [ using 852840 bytes of bsd ELF symbol table ]
board type: 0
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.6-current (GENERIC) #241: Thu Dec  5 12:54:22 MST 2019
dera...@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 142397440 (135MB)
avail mem = 129286144 (123MB)
mainbus0 at root: Xunlong Orange Pi Zero
cpu0 at mainbus0 mpidr 0: ARM Cortex-A7 r0p5
cpu0: 32KB 32b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 8-way L2 cache
cortex0 at mainbus0
psci0 at mainbus0: PSCI 0.0
simplebus0 at mainbus0: "soc"
syscon0 at simplebus0: "syscon"
sxiccmu0 at simplebus0
sxipio0 at simplebus0: 94 pins
ampintc0 at simplebus0 nirq 160, ncpu 4: "interrupt-controller"
sxirtc0 at simplebus0
sxiccmu1 at simplebus0
sxipio1 at simplebus0: 12 pins
sxisyscon0 at simplebus0
"clock" at simplebus0 not configured
"mixer" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
"lcd-controller" at simplebus0 not configured
sximmc0 at simplebus0
sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma
sximmc1 at simplebus0
sdmmc1 at sximmc1: 4-bit, sd high-speed, mmc high-speed, dma
"usb" at simplebus0 not configured
"phy" at simplebus0 not configured
ehci0 at simplebus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci0 at simplebus0: version 1.0
ehci1 at simplebus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci1 at simplebus0: version 1.0
"timer" at simplebus0 not configured
dwxe0 at simplebus0: address 02:42:59:0f:93:c6
ukphy0 at dwxe0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI 
0x001105, model 0x
sxidog0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
"hdmi-phy" at simplebus0 not configured
"codec-analog" at simplebus0 not configured
"video-codec" at simplebus0 not configured
"gpu" at simplebus0 not configured
gpio0 at sxipio0: 32 pins
gpio1 at sxipio0: 32 pins
gpio2 at sxipio0: 32 pins
gpio3 at sxipio0: 32 pins
gpio4 at sxipio0: 32 pins
gpio5 at sxipio0: 32 pins
gpio6 at sxipio0: 32 pins
gpio7 at sxipio1: 32 pins
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 
addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 
addr 1
agtimer0 at mainbus0: tick rate 24000 KHz
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0:  removable
sd0: 30436MB, 512 bytes/sector, 62333952 sectors
manufacturer 0x0020, product 0x2281 at sdmmc1 function 1 not configured
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd0a (c2a9e74a63a85ef5.a) 

small update to man smtpd.conf

2019-12-05 Thread myportslist20190323
Synopsis:   small update to man smtpd.conf to include from local syntax
Category:   documentation
Environment:
System  : OpenBSD 6.6
Details : OpenBSD 6.6-current (GENERIC.MP) #509: Tue Dec  3 
19:03:47 MST 2019
 
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
Description:
man smtpd.conf doesn't yet include the new "from local" syntax in 
EXAMPLES section
The man page is not wrong. However, I think "from local" can be 
included in 
the section about forwarding email to other servers. I've tested it
with several servers.

I don't know if this next bit should also be in the man page, but in
order to get forwarding to work, I fill in the well-known aliases
on the sending machine with a different domain than the actual 
hostname. For example, the server that sends email may have
foo.my.local in /etc/myname, but I fill in root@fictional.domain
in the well-known aliases in /etc/mail/aliases. The receiving
server of course needs a match statement for that fictional domain.

How-To-Repeat:
man smtpd.conf
Fix:
Index: usr.sbin/smtpd/smtpd.conf.5
===
RCS file: /cvs/src/usr.sbin/smtpd/smtpd.conf.5,v
retrieving revision 1.236
diff -u -p -u -r1.236 smtpd.conf.5
--- usr.sbin/smtpd/smtpd.conf.5 5 Dec 2019 14:49:35 -   1.236
+++ usr.sbin/smtpd/smtpd.conf.5 5 Dec 2019 17:12:34 -
@@ -1151,8 +1151,8 @@ action "local_mail" mbox alias 
 action "outbound" relay host smtp+tls://b...@smtp.example.com \e
auth 
 
-match for local action "local_mail"
-match for any action "outbound"
+match from local for local action "local_mail"
+match from local for any action "outbound"
 .Ed
 .Pp
 In this second example,