Re: ifmedia_ioctl: ignore ENETRESET from ifm_change()

2019-04-20 Thread Jonathan Matthew
On Mon, Apr 15, 2019 at 04:48:02PM +0200, Stefan Sperling wrote: > ieee80211_media_change() will return ENETRESET if the interface is > switched into 11a/b/g/n mode from any other mode. > ifmedia_ioctl() considers this an error and reverts ifmedia's state > to the previous setting, even though net8

Re: Tighten nl(1) pledge(2) a bit

2019-04-20 Thread Theo de Raadt
Rafael Neves wrote: > Hi tech@, > > The Patch 1 below tighten pledge(2) promises to stdio, after the > freopen(3) call, I've commited this. > and replaces an exit(3) call to return, so the > stack protector could be used. I'm still not a huge fan of those. I don't recall ever seeing an over

Re: libevent: Protect integer multiplications (min_heap)

2019-04-20 Thread Ted Unangst
Tobias Stoeckmann wrote: > I would like to protect min_heap_push against integer overflows, > which could either be triggered on a 64 bit system with massive > amounts of RAM (to overflow s->n) or on a 32 bit system with tight > memory layout (overflowing a * sizeof *p). > > Both cases are basical

Tighten nl(1) pledge(2) a bit

2019-04-20 Thread Rafael Neves
Hi tech@, The Patch 1 below tighten pledge(2) promises to stdio, after the freopen(3) call, and replaces an exit(3) call to return, so the stack protector could be used. I verify that after pledge stdio, there are only calls to: getline(3), memcmp(3), regexec(3), printf(3), fwrite(3), fputs(3),