Re: umsc(4) no longer works since t2k17 hackathon

2017-10-04 Thread Paul de Weerd
On Wed, Oct 04, 2017 at 12:59:45PM -0700, Philip Guenther wrote: | > - if (!umcs_get_reg(sc, UMCS_GPIO, )) { | > + printf("%s: data before umcs_get_reg: %d\n", DEVNAME(sc), data); | > + umcs_get_reg(sc, UMCS_GPIO, ); | > + printf("%s: data after umcs_get_reg: %d\n", DEVNAME(sc), data); | >

Re: umsc(4) no longer works since t2k17 hackathon

2017-10-04 Thread Philip Guenther
On Wed, 4 Oct 2017, Paul de Weerd wrote: ... > which bumps dev/usb/umcs.c to revision 1.5 with commit message: > > "Deactivate the device if I/O fails in attach. > > Coverity CID 1453399; ok deraadt@" > > reverting this makes the device work again, but since there's a > Coverity CID attached,

umsc(4) no longer works since t2k17 hackathon

2017-10-04 Thread Paul de Weerd
Hi all, I have a 4-port ST Lab umsc(4) device that used to work quite well for serial access to a set of machines. Unfortunately, after upgrading to 6.2-ish, it stopped working with the error: umcs0: unable to get number of ports Bisecting through a set of snapshot kernels, I found the problem

Re: inetd(8) pledge error

2017-10-04 Thread Jeremie Courreges-Anglas
On Wed, Oct 04 2017, Sebastian Benoit wrote: > i'm not sure that pledge there is correct. > > spawn() gets calles from gettcp() which gets called from the main event > loop, and directly from the event loop. > > The pledge here might be a convenient place to reduce pledges

Re: inetd(8) pledge error

2017-10-04 Thread Sebastian Benoit
i'm not sure that pledge there is correct. spawn() gets calles from gettcp() which gets called from the main event loop, and directly from the event loop. The pledge here might be a convenient place to reduce pledges after the initialization phase? It takes away the "cpath dns unix" pledges.