Gaosheng Cui
8552e6048e
audit: fix undefined behavior in bit shift for AUDIT_BIT
...
[ Upstream commit 986d93f55b ]
Shifting signed 32-bit value by 31 bits is undefined, so changing
significant bit to unsigned. The UBSAN warning calltrace like below:
UBSAN: shift-out-of-bounds in kernel/auditfilter.c:179:23
left shift of 1 by 31 places cannot be represented in type 'int'
Call Trace:
<TASK>
dump_stack_lvl+0x7d/0xa5
dump_stack+0x15/0x1b
ubsan_epilogue+0xe/0x4e
__ubsan_handle_shift_out_of_bounds+0x1e7/0x20c
audit_register_class+0x9d/0x137
audit_classes_init+0x4d/0xb8
do_one_initcall+0x76/0x430
kernel_init_freeable+0x3b3/0x422
kernel_init+0x24/0x1e0
ret_from_fork+0x1f/0x30
</TASK>
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com >
[PM: remove bad 'Fixes' tag as issue predates git, added in v2.6.6-rc1]
Signed-off-by: Paul Moore <paul@paul-moore.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-12-02 17:39:57 +01:00
..
2020-12-30 11:54:09 +01:00
2020-07-15 20:34:11 -07:00
2022-08-21 15:15:49 +02:00
2020-08-22 10:53:12 +01:00
2022-08-21 15:15:54 +02:00
2020-07-21 22:05:32 -07:00
2020-10-03 17:28:45 -07:00
2022-10-26 13:25:30 +02:00
2020-07-13 17:01:44 -07:00
2022-12-02 17:39:57 +01:00
2020-08-12 10:58:00 -07:00
2021-01-12 20:18:25 +01:00
2020-10-09 12:47:02 -06:00
2022-08-03 12:00:52 +02:00
2020-10-07 12:13:23 +02:00
2020-07-27 12:55:43 +02:00
2022-11-16 09:57:10 +01:00
2020-10-02 17:58:52 -06:00
2021-01-06 14:56:51 +01:00
2020-09-17 18:46:04 +02:00
2020-12-30 11:53:58 +01:00
2020-10-01 15:03:40 -04:00
2022-05-25 09:17:56 +02:00
2020-09-10 09:10:06 +02:00
2020-09-04 12:46:07 +01:00
2020-07-19 19:20:22 -07:00
2021-11-18 14:04:25 +01:00
2021-07-19 09:44:51 +02:00
2021-05-19 10:13:00 +02:00
2020-07-27 23:24:00 +02:00
2020-12-26 16:02:43 +01:00
2020-09-18 15:17:40 +02:00
2020-10-03 14:18:29 -07:00
2020-10-28 15:46:47 +01:00
2020-08-27 08:01:47 -07:00
2020-07-27 12:20:40 -07:00
2020-07-23 17:55:20 +00:00
2020-07-19 19:20:22 -07:00
2020-10-31 13:16:02 -07:00
2021-04-21 13:00:50 +02:00
2020-12-26 16:02:45 +01:00
2020-09-23 13:24:34 -07:00
2020-09-17 17:58:13 -07:00
2021-05-14 09:50:38 +02:00
2020-08-22 12:44:37 -07:00
2020-07-13 15:32:56 -07:00
2020-07-24 17:12:41 -07:00
2021-06-23 14:42:47 +02:00
2020-09-03 15:17:28 -07:00
2022-03-08 19:09:38 +01:00
2020-09-30 20:32:33 -06:00
2020-10-01 14:52:46 +02:00
2022-11-25 17:45:55 +01:00
2020-09-15 09:57:45 -05:00
2022-11-25 17:45:55 +01:00
2020-07-27 16:34:12 +03:00
2021-01-06 14:56:51 +01:00
2020-08-31 14:40:29 -04:00
2020-10-21 17:36:32 -04:00
2021-03-17 17:06:11 +01:00
2021-01-06 14:56:51 +01:00
2020-08-12 10:57:59 -07:00
2020-07-19 18:05:49 -07:00
2020-08-18 15:44:44 +02:00
2020-09-25 14:23:27 +02:00
2020-09-15 22:13:31 +10:00
2020-08-27 16:06:47 -04:00
2020-07-09 12:38:41 -07:00
2021-01-06 14:56:51 +01:00
2020-09-10 12:25:51 -07:00
2020-07-14 13:46:42 -07:00
2020-07-25 19:34:47 -06:00
2021-08-18 08:59:13 +02:00
2020-10-14 20:28:05 -07:00
2021-01-06 14:56:51 +01:00
2022-01-05 12:40:32 +01:00
2020-10-16 09:28:43 -04:00
2020-07-13 17:52:46 -04:00
2020-10-02 09:37:41 -04:00
2020-09-22 13:58:40 +02:00
2020-09-28 15:07:41 +02:00
2020-11-27 11:03:06 -08:00
2022-08-21 15:16:18 +02:00
2020-10-19 19:39:22 +02:00
2020-09-04 12:34:50 +02:00
2021-03-07 12:34:07 +01:00
2021-09-22 12:28:05 +02:00
2020-09-04 12:46:07 +01:00
2021-03-30 14:31:53 +02:00
2020-07-19 19:22:56 -07:00
2020-12-21 13:30:06 +01:00
2020-07-10 14:50:51 +02:00
2020-08-04 20:16:37 -07:00
2021-02-03 23:28:43 +01:00
2022-04-08 14:40:03 +02:00
2020-10-05 16:35:57 +01:00
2020-07-14 16:29:42 -07:00
2020-08-03 17:57:40 -07:00
2021-09-18 13:40:22 +02:00
2020-09-24 20:15:45 -07:00
2020-12-03 10:03:14 -08:00
2022-11-25 17:45:55 +01:00
2021-01-06 14:56:51 +01:00
2020-07-28 22:25:30 -04:00
2021-11-26 10:39:14 +01:00
2020-08-21 08:55:13 +02:00
2021-09-12 08:58:27 +02:00
2020-09-18 13:58:37 -07:00
2020-09-18 13:58:37 -07:00
2021-05-14 09:50:18 +02:00
2020-08-12 10:57:59 -07:00
2020-09-14 15:39:42 +02:00
2020-09-26 10:22:29 +02:00
2021-01-30 13:55:18 +01:00
2020-07-10 13:45:32 +02:00
2020-07-10 13:45:32 +02:00
2020-10-07 14:23:44 -06:00
2020-10-12 11:41:02 -06:00
2020-10-23 11:55:28 -04:00
2020-10-23 11:55:28 -04:00
2022-11-03 23:57:53 +09:00
2020-08-05 09:30:19 -04:00
2020-08-05 09:30:20 -04:00
2020-08-05 11:08:39 -04:00
2020-08-03 16:11:42 -04:00
2020-08-05 11:08:39 -04:00
2020-08-05 11:08:39 -04:00
2020-09-10 11:39:22 +02:00
2020-08-18 14:14:25 +02:00
2020-08-05 11:08:40 -04:00
2020-08-05 11:08:40 -04:00
2020-08-05 11:08:40 -04:00
2020-09-10 10:05:58 +02:00
2020-08-05 11:08:41 -04:00
2020-09-10 10:05:58 +02:00
2020-08-05 11:08:40 -04:00
2020-08-05 11:08:40 -04:00
2020-07-31 09:24:23 +02:00
2020-07-13 15:32:56 -07:00
2022-05-25 09:18:02 +02:00