Re: Array of TAILQs in kern_synch.c

2016-09-01 Thread Mathieu -
Ted Unangst wrote: > Michal Mazurek wrote: > > There is what appears to be a sensless hash in kern_synch.c. It's an > > array of 128 TAILQs which are hashed according to the high bits of the > > wchan. It's possible to write a program that adds kern.maxthread entries > > to one of those TAILQs. Jus

Re: Array of TAILQs in kern_synch.c

2016-09-01 Thread Ted Unangst
Michal Mazurek wrote: > There is what appears to be a sensless hash in kern_synch.c. It's an > array of 128 TAILQs which are hashed according to the high bits of the > wchan. It's possible to write a program that adds kern.maxthread entries > to one of those TAILQs. Just running chrome with 11 tabs

Array of TAILQs in kern_synch.c

2016-08-31 Thread Michal Mazurek
There is what appears to be a sensless hash in kern_synch.c. It's an array of 128 TAILQs which are hashed according to the high bits of the wchan. It's possible to write a program that adds kern.maxthread entries to one of those TAILQs. Just running chrome with 11 tabs open adds 35 entries to one T