[BUG] segfault at `find_finfo(3)`
segfault is thrown when trying to compile the linux kernel at strcmp(hash, finfo[i].hash)
of find_finfo(3)
. Turns out finfo[i].hash
is NULL while hash
isn't.
Consider the following scenario:
open f1 = "/some/file" for writing open f2 = "/some/file" for reading close f1(write) close f2(read)
the above sequence will throw a segfault. That's because f1->hash
is computed at close(2)
. Yet f2
open will search the finfo
array and stumble upon the scenario mentioned above.
This(bug $1) was definitely a bug and I've patched it, yet the problem mentioned still remains and thus i believe there is another bug(bug $2).
I will submit my solution of bug $1 soon so we can work from there.