Linus Torvalds
48ea09cdda
Merge tag 'hardening-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
...
Pull kernel hardening updates from Kees Cook:
- Convert flexible array members, fix -Wstringop-overflow warnings, and
fix KCFI function type mismatches that went ignored by maintainers
(Gustavo A. R. Silva, Nathan Chancellor, Kees Cook)
- Remove the remaining side-effect users of ksize() by converting
dma-buf, btrfs, and coredump to using kmalloc_size_roundup(), add
more __alloc_size attributes, and introduce full testing of all
allocator functions. Finally remove the ksize() side-effect so that
each allocation-aware checker can finally behave without exceptions
- Introduce oops_limit (default 10,000) and warn_limit (default off) to
provide greater granularity of control for panic_on_oops and
panic_on_warn (Jann Horn, Kees Cook)
- Introduce overflows_type() and castable_to_type() helpers for cleaner
overflow checking
- Improve code generation for strscpy() and update str*() kern-doc
- Convert strscpy and sigphash tests to KUnit, and expand memcpy tests
- Always use a non-NULL argument for prepare_kernel_cred()
- Disable structleak plugin in FORTIFY KUnit test (Anders Roxell)
- Adjust orphan linker section checking to respect CONFIG_WERROR (Xin
Li)
- Make sure siginfo is cleared for forced SIGKILL (haifeng.xu)
- Fix um vs FORTIFY warnings for always-NULL arguments
* tag 'hardening-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: (31 commits)
ksmbd: replace one-element arrays with flexible-array members
hpet: Replace one-element array with flexible-array member
um: virt-pci: Avoid GCC non-NULL warning
signal: Initialize the info in ksignal
lib: fortify_kunit: build without structleak plugin
panic: Expose "warn_count" to sysfs
panic: Introduce warn_limit
panic: Consolidate open-coded panic_on_warn checks
exit: Allow oops_limit to be disabled
exit: Expose "oops_count" to sysfs
exit: Put an upper limit on how often we can oops
panic: Separate sysctl logic from CONFIG_SMP
mm/pgtable: Fix multiple -Wstringop-overflow warnings
mm: Make ksize() a reporting-only function
kunit/fortify: Validate __alloc_size attribute results
drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()
drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid()
driver core: Add __alloc_size hint to devm allocators
overflow: Introduce overflows_type() and castable_to_type()
coredump: Proactively round up to kmalloc bucket size
...
2022-12-14 12:20:00 -08:00
..
2022-10-27 13:23:43 +02:00
2022-11-04 12:59:25 +02:00
2022-11-24 16:01:04 +01:00
2022-10-04 19:18:08 +02:00
2022-10-16 11:08:19 -07:00
2022-11-22 20:41:53 -08:00
2022-10-19 14:34:37 +01:00
2022-12-13 13:03:06 -08:00
2022-12-11 21:25:58 +01:00
2022-10-03 11:08:33 +01:00
2022-12-13 13:41:26 -08:00
2022-12-09 20:06:35 -08:00
2022-11-18 10:39:22 +01:00
2022-12-05 15:40:59 +01:00
2022-11-30 18:55:36 +01:00
2022-12-12 15:19:38 -08:00
2022-10-27 14:38:04 +03:00
2022-11-21 14:38:28 +01:00
2022-12-13 13:09:38 -08:00
2022-10-03 21:52:33 -07:00
2022-11-14 09:35:50 -08:00
2022-12-08 13:02:37 +00:00
2022-12-14 09:15:43 -08:00
2022-12-13 15:47:48 -08:00
2022-11-23 15:32:06 +00:00
2022-11-04 13:00:06 +00:00
2022-12-10 10:59:30 -05:00
2022-10-07 16:48:26 -07:00
2022-11-07 14:02:11 +00:00
2022-12-12 15:05:30 +01:00
2022-10-05 11:05:17 -06:00
2022-12-01 15:51:32 +00:00
2022-10-21 07:55:44 +09:00
2022-11-30 15:59:06 -08:00
2022-11-09 10:27:10 -08:00
2022-09-29 16:38:05 -07:00
2022-12-06 10:18:27 -07:00
2022-10-12 11:00:22 -07:00
2022-12-07 09:43:12 -07:00
2022-11-21 11:39:05 -07:00
2022-12-13 10:43:59 -08:00
2022-12-13 10:43:59 -08:00
2022-12-13 10:43:59 -08:00
2022-10-25 23:19:19 -07:00
2022-12-04 12:59:58 -08:00
2022-10-25 23:19:19 -07:00
2022-12-10 13:20:53 -08:00
2022-12-08 18:25:31 -08:00
2022-11-30 17:13:25 -08:00
2022-12-07 13:49:21 -08:00
2022-10-10 17:53:04 -07:00
2022-09-26 19:46:29 -07:00
2022-10-31 07:12:13 -10:00
2022-11-02 08:18:27 -07:00
2022-12-12 15:48:36 -08:00
2022-12-07 13:54:01 -08:00
2022-09-30 14:50:11 -07:00
2022-10-19 09:58:49 +02:00
2022-10-10 10:21:22 -07:00
2022-11-24 12:27:13 -08:00
2022-10-10 17:53:04 -07:00
2022-11-08 17:37:20 -08:00
2022-11-02 12:39:27 -07:00
2022-12-02 11:11:27 +01:00
2022-12-02 11:25:02 +01:00
2022-12-12 18:18:34 -08:00
2022-10-17 09:51:29 -04:00
2022-11-02 10:30:31 +05:30
2022-12-13 15:47:48 -08:00
2022-10-16 10:45:17 -07:00
2022-11-18 09:14:10 +01:00
2022-12-13 19:29:45 -08:00
2022-12-11 18:12:17 -08:00
2022-10-10 19:45:17 -07:00
2022-11-30 16:13:16 -08:00
2022-11-20 20:49:51 +09:00
2022-12-14 12:20:00 -08:00
2022-10-18 01:21:55 +03:00
2022-11-18 10:19:55 +01:00
2022-11-24 23:24:23 -05:00
2022-10-11 18:51:11 -07:00
2022-11-17 19:26:02 -08:00
2022-12-13 10:33:08 -08:00
2022-10-20 10:13:30 +02:00
2022-09-29 04:40:15 +09:00
2022-10-04 13:31:45 -07:00
2022-11-22 18:50:44 -08:00
2022-12-09 11:53:52 +10:00
2022-11-15 09:00:27 -08:00
2022-10-06 05:57:36 -07:00
2022-11-16 15:53:33 -08:00
2022-12-14 12:20:00 -08:00
2022-12-13 09:47:48 -08:00
2022-12-01 10:46:54 -05:00
2022-12-12 19:30:18 -08:00
2022-11-23 10:31:13 -08:00
2022-10-19 20:54:43 -07:00
2022-11-18 13:56:41 +00:00
2022-11-30 14:49:40 -08:00
2022-10-24 12:30:26 +03:00
2022-11-30 15:58:40 -08:00
2022-11-25 16:14:19 +01:00
2022-12-02 13:10:36 -08:00
2022-09-28 16:17:40 +01:00
2022-10-03 14:02:45 -07:00
2022-11-30 15:58:46 -08:00
2022-11-30 15:58:46 -08:00
2022-12-04 16:45:02 -08:00
2022-11-28 16:48:20 +00:00
2022-11-14 20:49:33 +01:00
2022-12-01 13:49:40 +01:00
2022-10-12 12:56:28 +02:00
2022-11-03 20:46:32 -07:00
2022-11-11 18:18:05 -08:00
2022-10-20 10:13:29 +02:00
2022-11-30 16:13:18 -08:00
2022-10-03 14:03:21 -07:00
2022-11-03 15:47:45 +01:00
2022-11-29 16:34:15 -04:00
2022-12-07 06:47:13 -07:00
2022-12-07 06:47:13 -07:00
2022-12-11 19:30:19 -08:00
2022-11-29 09:09:17 +11:00
2022-12-14 09:15:43 -08:00
2022-11-30 20:16:49 -04:00
2022-11-14 10:07:22 -08:00
2022-10-03 14:21:44 -07:00
2022-09-28 14:21:53 +01:00
2022-12-05 22:22:34 +01:00
2022-12-05 19:21:01 +01:00
2022-11-24 17:55:05 +01:00
2022-10-03 14:21:43 -07:00
2022-12-08 21:49:25 -05:00
2022-12-01 15:53:05 -08:00
2022-11-15 00:42:02 -08:00
2022-11-10 16:27:46 +01:00
2022-12-11 19:30:20 -08:00
2022-11-18 13:55:07 -08:00
2022-11-30 15:58:41 -08:00
2022-10-28 13:37:23 -07:00
2022-10-03 14:03:19 -07:00
2022-10-03 14:03:21 -07:00
2022-10-03 14:03:25 -07:00
2022-09-26 20:30:39 -07:00
2022-10-03 14:02:43 -07:00
2022-12-12 07:47:15 -08:00
2022-11-11 17:20:26 +09:00
2022-12-02 23:52:32 -08:00
2022-11-30 14:49:42 -08:00
2022-11-22 19:38:39 -07:00
2022-12-13 09:47:48 -08:00
2022-12-13 09:47:48 -08:00
2022-11-08 15:57:22 -08:00
2022-11-21 14:30:54 -07:00
2022-12-08 21:49:25 -05:00
2022-10-04 12:06:58 -06:00
2022-11-09 19:28:49 -08:00
2022-10-03 11:29:10 -07:00
2022-12-11 18:12:19 -08:00
2022-10-03 14:03:29 -07:00
2022-11-08 17:37:17 -08:00
2022-11-08 17:37:22 -08:00
2022-11-16 09:44:26 -07:00
2022-11-14 10:07:22 -08:00
2022-10-12 18:51:49 -07:00
2022-10-12 18:51:49 -07:00
2022-11-18 13:55:07 -08:00
2022-10-03 14:03:35 -07:00
2022-11-30 15:58:40 -08:00
2022-12-11 18:12:15 -08:00
2022-12-13 19:29:45 -08:00
2022-12-13 19:29:45 -08:00
2022-10-31 17:47:42 +01:00
2022-12-13 15:47:48 -08:00
2022-10-31 17:47:42 +01:00
2022-12-05 22:22:34 +01:00
2022-12-05 22:22:34 +01:00
2022-11-07 08:42:19 +00:00
2022-10-24 13:44:11 -07:00
2022-12-12 15:18:25 -08:00
2022-12-07 10:56:29 +08:00
2022-10-19 13:00:04 -07:00
2022-12-10 11:01:12 -05:00
2022-11-27 22:09:59 -05:00
2022-10-03 14:03:15 -07:00
2022-11-18 02:15:15 +01:00
2022-10-25 15:15:52 -07:00
2022-11-15 10:50:31 +01:00
2022-10-16 17:58:54 -05:00
2022-09-28 14:11:28 +01:00
2022-11-29 10:45:53 +01:00
2022-10-16 17:58:54 -05:00
2022-10-03 17:34:32 -07:00
2022-11-02 12:39:27 -07:00
2022-09-26 19:46:29 -07:00
2022-12-11 18:12:15 -08:00
2022-10-03 14:03:04 -07:00
2022-12-11 18:12:12 -08:00
2022-12-11 18:12:08 -08:00
2022-12-02 13:04:44 -08:00
2022-10-04 09:46:22 -07:00
2022-12-14 09:54:10 -08:00
2022-12-05 09:31:46 +01:00
2022-11-30 15:58:40 -08:00
2022-12-12 16:07:04 -08:00
2022-10-27 20:12:16 +02:00
2022-12-11 18:12:11 -08:00
2022-11-30 22:04:37 -08:00
2022-11-07 17:54:57 -08:00
2022-11-09 21:14:21 -06:00
2022-10-04 20:52:38 +02:00
2022-10-04 20:52:38 +02:00
2022-10-28 10:00:26 +02:00
2022-10-20 10:13:30 +02:00
2022-12-04 14:37:08 +01:00
2022-10-04 15:55:55 +02:00
2022-11-08 16:42:15 +00:00
2022-11-02 13:09:04 +02:00
2022-10-30 10:12:14 +01:00
2022-10-17 13:14:32 -07:00
2022-11-11 10:58:39 +00:00
2022-10-23 18:06:54 -04:00
2022-11-22 16:36:27 +02:00
2022-10-24 13:30:15 +01:00
2022-12-04 14:37:08 +01:00
2022-12-13 15:47:48 -08:00
2022-12-12 09:01:36 -08:00
2022-10-21 10:11:00 -07:00
2022-10-04 15:59:36 +02:00
2022-12-09 17:39:33 +00:00
2022-11-15 14:30:41 -08:00
2022-09-28 10:46:21 -06:00
2022-10-24 10:30:29 +02:00
2022-12-09 10:42:56 +00:00
2022-11-16 17:13:04 -05:00
2022-11-30 15:58:48 -08:00
2022-10-31 18:10:21 -07:00
2022-11-11 08:38:29 -07:00
2022-12-13 19:29:45 -08:00
2022-11-09 18:06:35 +00:00
2022-11-17 21:43:34 -08:00
2022-12-02 11:33:48 -08:00
2022-12-13 09:47:48 -08:00
2022-12-08 09:18:58 -07:00
2022-12-02 11:25:01 +01:00
2022-10-28 21:56:18 -07:00
2022-10-03 14:03:33 -07:00
2022-11-30 15:58:55 -08:00
2022-12-09 19:47:41 -08:00
2022-12-01 01:07:32 +01:00
2022-11-27 23:35:04 +01:00
2022-12-12 09:13:06 -08:00
2022-12-01 00:09:09 +01:00
2022-10-25 11:44:20 -07:00
2022-11-29 15:00:06 -08:00
2022-10-21 10:44:11 -07:00
2022-10-03 14:03:18 -07:00
2022-11-18 02:18:10 +01:00
2022-12-05 09:44:42 +00:00
2022-10-08 08:56:37 -07:00
2022-11-01 10:04:51 -07:00
2022-10-10 09:10:28 -07:00
2022-10-03 14:03:36 -07:00
2022-12-11 18:12:19 -08:00
2022-12-09 19:31:11 -08:00
2022-10-19 09:58:49 +02:00
2022-09-29 15:20:29 +02:00
2022-10-28 10:47:42 +01:00
2022-10-25 18:58:11 +02:00
2022-12-01 11:35:40 +01:00
2022-11-24 15:09:12 +01:00
2022-11-17 11:26:20 +01:00
2022-09-28 20:28:13 -04:00
2022-11-16 21:52:05 -05:00
2022-10-03 14:03:18 -07:00
2022-11-16 09:43:35 +00:00
2022-12-13 10:43:59 -08:00
2022-12-12 11:39:12 +01:00
2022-09-29 10:17:37 -04:00
2022-10-28 13:37:22 -07:00
2022-10-23 12:01:01 -07:00
2022-10-07 09:32:40 -04:00
2022-12-02 12:04:39 -04:00
2022-12-12 09:29:56 +00:00
2022-10-07 09:32:40 -04:00
2022-11-30 15:58:41 -08:00
2022-11-16 11:33:03 -07:00
2022-10-07 15:00:25 +02:00
2022-10-03 14:03:08 -07:00
2022-11-02 11:51:03 +00:00
2022-12-13 10:08:36 -08:00
2022-11-30 15:58:52 -08:00