Paul Moore
0e8e06574c
audit: don't WARN_ON_ONCE(!current->mm) in audit_exe_compare()
...
commit 969d90ec212bae4b45bf9d21d7daa30aa6cf055e upstream.
eBPF can end up calling into the audit code from some odd places, and
some of these places don't have @current set properly so we end up
tripping the `WARN_ON_ONCE(!current->mm)` near the top of
`audit_exe_compare()`. While the basic `!current->mm` check is good,
the `WARN_ON_ONCE()` results in some scary console messages so let's
drop that and just do the regular `!current->mm` check to avoid
problems.
Cc: <stable@vger.kernel.org>
Fixes: 47846d51348d ("audit: don't take task_lock() in audit_exe_compare() code path")
Reported-by: Artem Savkov <asavkov@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 17:15:00 +00:00
..
2023-11-28 17:14:59 +00:00
2023-11-28 17:15:00 +00:00
2023-05-26 19:01:47 +02:00
2023-11-28 17:14:51 +00:00
2023-10-06 13:16:07 +02:00
2023-04-16 14:23:07 +02:00
2023-11-28 17:14:58 +00:00
2023-11-20 11:56:43 +01:00
2022-12-21 14:31:52 -08:00
2023-11-28 17:14:59 +00:00
2023-06-09 23:29:50 +10:00
2023-11-20 11:57:13 +01:00
2023-11-28 17:14:40 +00:00
2023-11-20 11:57:24 +01:00
2023-09-23 11:14:32 +02:00
2023-09-23 11:14:30 +02:00
2023-11-28 17:14:41 +00:00
2023-11-20 11:56:43 +01:00
2023-09-13 09:53:45 +02:00
2023-11-20 11:57:25 +01:00
2022-11-30 16:13:18 -08:00
2022-08-22 18:50:06 -04:00
2023-11-28 17:15:00 +00:00
2022-08-29 19:47:03 -04:00
2023-05-17 11:34:55 -04:00
2023-10-25 12:16:11 +02:00
2022-09-26 19:46:09 -07:00
2023-05-22 14:30:52 -04:00
2022-09-26 10:13:13 -07:00
2023-03-14 19:32:38 -07:00
2023-06-05 09:57:20 +02:00
2023-01-13 11:48:15 +01:00
2023-11-28 17:14:41 +00:00
2023-04-05 19:42:46 -07:00
2022-11-01 10:04:52 -07:00
2023-04-18 16:39:34 -07:00
2023-06-01 17:15:33 -04:00
2022-07-05 13:32:59 -07:00
2023-02-08 13:36:22 +01:00
2023-09-23 11:14:17 +02:00
2022-09-07 21:53:50 +02:00
2023-05-28 16:20:21 +09:00
2022-07-15 18:21:49 +00:00
2023-04-08 13:45:37 -07:00
2023-03-24 11:01:29 +01:00
2022-12-01 15:53:05 -08:00
2022-11-12 18:47:36 -08:00
2023-09-02 09:13:30 +02:00
2022-11-15 00:42:02 -08:00
2023-09-02 09:13:30 +02:00
2023-06-09 17:44:17 -07:00
2023-06-09 17:44:24 -07:00
2023-06-28 10:59:38 -07:00
2022-09-11 21:55:06 -07:00
2023-11-28 17:14:45 +00:00
2023-03-24 20:10:59 -07:00
2023-07-29 23:32:26 +09:00
2023-06-08 12:27:20 -07:00
2023-03-24 17:09:14 +01:00
2023-06-28 10:59:38 -07:00
2022-09-11 21:55:12 -07:00
2023-06-28 15:51:08 -07:00
2023-04-08 13:45:38 -07:00
2023-04-20 22:55:35 -04:00
2023-11-28 17:14:46 +00:00
2023-09-23 11:14:33 +02:00
2023-06-14 12:27:38 -07:00
2023-09-13 09:53:57 +02:00
2023-09-13 09:53:57 +02:00
2023-09-13 09:53:57 +02:00
2022-09-11 21:55:12 -07:00
2023-04-16 14:23:07 +02:00
2022-10-04 15:59:36 +02:00
2023-05-02 17:23:27 -07:00
2023-02-17 14:58:01 -08:00
2022-12-27 12:52:12 +01:00
2023-09-23 11:14:18 +02:00
2022-11-09 18:06:35 +00:00
2023-04-13 11:49:20 -07:00
2023-07-26 10:51:59 -07:00
2023-11-28 17:14:41 +00:00
2023-05-15 13:45:00 +02:00
2023-05-09 21:50:27 +02:00
2023-04-20 11:36:35 +02:00
2022-10-17 16:41:16 +02:00
2023-07-06 10:06:04 -07:00
2023-07-17 12:53:21 -07:00
2022-09-08 16:56:45 -07:00
2023-06-28 16:05:21 -07:00
2022-09-11 21:55:10 -07:00
2022-08-29 12:47:15 +01:00
2023-01-05 12:10:35 -08:00
2023-02-18 14:34:36 -05:00
2023-06-29 15:19:43 -07:00
2023-02-02 22:50:04 -08:00
2022-11-30 20:16:49 -04:00
2023-04-13 11:49:35 -07:00
2023-06-08 15:43:09 -04:00
2023-11-28 17:14:45 +00:00
2023-06-19 16:25:28 -07:00
2023-06-09 17:44:21 -07:00
2023-09-13 09:53:08 +02:00
2023-05-17 17:02:08 -10:00
2023-11-28 17:14:41 +00:00