Re: [PATCH v2] audit: Avoid excessive dput/dget in audit_context setup and reset paths
Al Viro <[email protected]>
| Newsgroups | org.kernel.vger.audit,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260203195958.GG3183987@ZenIV> |
On Tue, Feb 03, 2026 at 02:44:33PM -0500, Waiman Long wrote: > + /* > + * Defer the path_put() call of the old pwd to workqueue as > + * we may be in an atomic context that cannot call path_put() > + * directly because of might_sleep(). > + */ > + pp = kmalloc(sizeof(*pp), GFP_NOFS); If that really gets called in atomic context, this kmalloc will in itself be enough to fuck you over, won't it?