diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-12-14 13:16:22 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-12-14 13:16:37 +0000 |
| commit | 026d962ef14dafe19fa73361bea6dcc95f141dfa (patch) | |
| tree | 1c1639349fcbdf921be70ed079934dfa19555ffd /share/examples/lkm/syscall/(developers-only) | |
| parent | d4f25d0c7957f0f1960028eec82625c2d6405537 (diff) | |
* Move the initialization of p_ktr into proc_init() and make the check
in proc_dtor() unconditional. Prior to this, it was possible to fail
and invoke proc_dtor() after the first thread had been created (which
was the condition for checking p_ktr in proc_dtor()) but before p_ktr
had been initialized.
* Move the p_klist initialization in fork1() past the last possible
failure point so we don't have to free it on failure. We didn't,
which meant we were leaking a knlist every time we failed to fork
due to hitting the resource limit.
PR: 291470
MFC after: 1 week
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D54215
Diffstat (limited to 'share/examples/lkm/syscall/(developers-only)')
0 files changed, 0 insertions, 0 deletions
