Re: fs/proc: Crash observed in next_tgid (fs/proc/base.c)

From: Alexey Dobriyan
Date: Wed Apr 17 2019 - 14:15:03 EST


> Test case: Not some specific test case.

Write 2 programs: one forks, clones, and execs randomly (but not going
out of control), another does open("/proc"), getdents in a loop.
Don't use shell scripts or readdir as they only bring overhead.

Run getdents in a loop and several forkers, see what happens.