When running "gradm -L /path/to/learningmode/logfile -O /path/to/new/policy" a broken section of code can cause bad things, including eating up all virtual memory. I have a fix, which I've also provided to gradm/grsecurity's author. Reproducible: Always Steps to Reproduce: 1.Given a log file that triggers the bug 2.Run "gradm -L logfile -O policyfile" 3. Actual Results: Failure to finish, no output, potentially even exhaustion of memory and thrashing. Expected Results: Finished and written output. A patch is attached.
Created attachment 40118 [details, diff] Fixes nested loops problem.
2004-09-20 21:44 spender * gradm_learn.c: fix index, thanks to barry schwartz Fixed in Grsecurity CVS.
Still need anything here?
2.0.2 is in the tree as ~arch now. This should resolve this bug as your patch went into upstream cvs beforehand.