* killall with exactly 65 (33 in 32-bit environments) arguments can kill random processes
* this can be accidentially or even maliciously used to kill processes
* root casue is an off-by-one error
[Test Case]
* as seen in the bug description above, but please note that this triggers the bug only sometimes (1/3 of my tries)
ps xa | wc -l
for i in `seq 1 65`; do touch ~/tmp_tasks/test$i; done;
for i in `seq 1 65`; do echo ~/tmp_tasks/test$i; done | xargs killall
ps xa | wc -l
[Regression Potential]
* there should be no/minimal regression Potential
- the fix itself is minimal
- no solution (other than maybe exploits) should rely on this behaviour
SRU-Template:
[Impact]
* killall with exactly 65 (33 in 32-bit environments) arguments can kill random processes
* this can be accidentially or even maliciously used to kill processes
* root casue is an off-by-one error
[Test Case]
* as seen in the bug description above, but please note that this triggers the bug only sometimes (1/3 of my tries)
ps xa | wc -l
for i in `seq 1 65`; do touch ~/tmp_tasks/test$i; done;
for i in `seq 1 65`; do echo ~/tmp_tasks/test$i; done | xargs killall
ps xa | wc -l
[Regression Potential]
* there should be no/minimal regression Potential
- the fix itself is minimal
- no solution (other than maybe exploits) should rely on this behaviour