Re: [9fans] devproc procctl close bug

2014-05-26 Thread erik quanstrom
On Mon May 26 16:32:54 EDT 2014, cinap_len...@felloff.net wrote: > excellent :) why, do you plan a plan 9 botnet that exploits this hole :-). - erik

Re: [9fans] devproc procctl close bug

2014-05-26 Thread cinap_lenrek
excellent :) -- cinap

Re: [9fans] devproc procctl close bug

2014-05-26 Thread erik quanstrom
On Mon May 26 16:10:59 EDT 2014, cinap_len...@felloff.net wrote: > theres a bug in devproc again. > > the fd is not bounds checked for the "close fd" > procctl command and the "closefiles" command misses > the last fd as it iterates from: good catch. appled patch to 9atom. - erik

[9fans] devproc procctl close bug

2014-05-26 Thread cinap_lenrek
theres a bug in devproc again. the fd is not bounds checked for the "close fd" procctl command and the "closefiles" command misses the last fd as it iterates from: fd=0 to maxfd-1 and not to maxfd in procctlclosefiles() static void procctlcloseone(Proc *p, Fgrp *f, int fd) { Chan *c;