Re: [PATCH 4.10 070/111] audit: fix auditd/kernel connection state tracking

From: Peter Zijlstra
Date: Tue Feb 20 2018 - 08:04:45 EST


On Tue, Mar 28, 2017 at 02:30:56PM +0200, Greg Kroah-Hartman wrote:
> 4.10-stable review patch. If anyone has any objections, please let me know.

> + if (!(auditd_test_task(current) ||
> + (current == __mutex_owner(&audit_cmd_mutex)))) {
> + long stime = audit_backlog_wait_time;

Since I cannot find the original email on lkml, NAK on this.
__mutex_owner() is not a general purpose helper function.