Matthew Wilcox (Oracle)
bd4d2333a3
mm: open-code page_folio() in dump_page()
...
commit 6a7de1bf218d75f27f68d6a3f5ae1eb7332b941e upstream.
page_folio() calls page_fixed_fake_head() which will misidentify this page
as being a fake head and load off the end of 'precise'. We may have a
pointer to a fake head, but that's OK because it contains the right
information for dump_page().
gcc-15 is smart enough to catch this with -Warray-bounds:
In function 'page_fixed_fake_head',
inlined from '_compound_head' at ../include/linux/page-flags.h:251:24,
inlined from '__dump_page' at ../mm/debug.c:123:11:
../include/asm-generic/rwonce.h:44:26: warning: array subscript 9 is outside
+array bounds of 'struct page[1]' [-Warray-bounds=]
Link: https://lkml.kernel.org/r/20241125201721.2963278-2-willy@infradead.org
Fixes: fae7d834c43c ("mm: add __dump_folio()")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reported-by: Kees Cook <kees@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-14 20:03:33 +01:00
..
2024-12-09 10:41:02 +01:00
2024-12-14 20:03:32 +01:00
2024-09-26 14:01:44 -07:00
2024-07-03 19:30:26 -07:00
2024-05-05 17:53:51 -07:00
2024-07-03 19:30:00 -07:00
2023-10-25 16:47:13 -07:00
2022-09-11 20:25:50 -07:00
2024-02-22 10:24:57 -08:00
2024-09-03 21:15:36 -07:00
2024-02-22 10:24:57 -08:00
2024-09-03 21:15:47 -07:00
2024-04-25 20:56:04 -07:00
2024-09-17 01:07:01 -07:00
2024-12-14 20:03:33 +01:00
2024-07-03 19:29:58 -07:00
2023-12-05 11:17:58 +01:00
2023-06-09 16:25:56 -07:00
2024-05-14 00:31:43 -07:00
2024-08-12 22:00:43 -04:00
2024-09-01 20:43:33 -07:00
2024-09-01 20:43:33 -07:00
2024-11-10 14:07:08 -08:00
2024-09-09 16:38:59 -07:00
2023-06-23 16:58:19 -07:00
2022-11-08 17:37:15 -08:00
2024-12-14 20:03:32 +01:00
2024-07-03 19:30:06 -07:00
2024-07-12 15:52:15 -07:00
2024-11-12 10:14:00 -08:00
2024-09-01 20:25:50 -07:00
2024-09-01 20:25:45 -07:00
2023-10-25 16:47:14 -07:00
2024-09-26 14:01:43 -07:00
2024-07-03 19:29:58 -07:00
2023-12-12 10:11:32 +01:00
2024-12-05 14:03:08 +01:00
2023-08-18 10:12:36 -07:00
2024-10-28 21:40:39 -07:00
2024-08-27 14:12:51 +02:00
2024-10-17 00:28:10 -07:00
2024-09-03 21:15:38 -07:00
2024-09-03 21:15:44 -07:00
2024-08-07 18:33:56 -07:00
2023-04-12 17:36:23 -07:00
2024-09-21 07:29:05 -07:00
2024-09-03 21:15:31 -07:00
2023-08-24 16:20:30 -07:00
2024-09-25 11:35:19 -07:00
2024-11-05 16:49:54 -08:00
2024-12-14 20:03:33 +01:00
2024-11-11 00:00:37 -08:00
2024-09-26 14:01:44 -07:00
2024-09-21 07:29:05 -07:00
2024-09-03 21:15:59 -07:00
2024-09-26 14:01:44 -07:00
2024-10-28 21:40:41 -07:00
2024-12-14 20:03:32 +01:00
2024-06-05 19:19:26 -07:00
2024-05-05 17:53:49 -07:00
2024-03-13 12:12:21 -07:00
2024-09-09 16:39:03 -07:00
2024-11-05 16:49:54 -08:00
2024-07-12 15:52:15 -07:00
2024-11-07 14:14:58 -08:00
2024-09-03 21:15:28 -07:00
2022-10-03 14:02:43 -07:00
2024-07-03 19:30:26 -07:00
2024-11-22 15:30:26 +01:00
2024-02-22 15:27:17 -08:00
2024-09-01 20:25:54 -07:00
2024-09-01 20:25:55 -07:00
2024-11-05 16:49:55 -08:00
2024-11-14 22:43:48 -08:00
2024-09-21 07:29:05 -07:00
2022-09-26 19:46:25 -07:00
2024-11-11 17:20:23 -08:00
2024-09-03 21:15:31 -07:00
2024-10-28 21:40:40 -07:00
2024-09-03 21:15:32 -07:00
2024-04-25 20:56:32 -07:00
2024-11-14 22:43:48 -08:00
2024-09-01 20:25:53 -07:00
2024-08-15 22:16:14 -07:00
2023-01-18 17:12:52 -08:00
2024-11-11 00:00:37 -08:00
2024-09-03 21:15:40 -07:00
2024-05-19 14:40:44 -07:00
2023-12-10 16:51:50 -08:00
2024-01-08 15:27:15 -08:00
2021-06-29 10:53:47 -07:00
2024-06-15 10:43:04 -07:00
2024-05-05 17:53:45 -07:00
2024-09-21 07:29:05 -07:00
2024-10-28 21:40:38 -07:00
2024-07-10 12:14:54 -07:00
2021-07-04 18:30:17 +00:00
2022-03-08 09:30:46 -05:00
2024-04-25 20:55:49 -07:00
2024-09-01 20:26:04 -07:00
2021-05-07 00:26:35 -07:00
2024-05-07 10:37:00 -07:00
2023-12-10 16:51:39 -08:00
2024-02-22 10:24:47 -08:00
2024-12-14 20:03:26 +01:00
2024-11-03 10:47:03 -08:00
2022-10-03 14:03:05 -07:00
2024-10-09 12:47:19 -07:00
2024-09-01 20:25:45 -07:00
2024-11-16 15:30:32 -08:00
2024-09-17 01:07:00 -07:00
2024-09-03 21:15:40 -07:00
2024-10-31 20:27:04 -07:00
2022-10-03 14:03:07 -07:00
2024-01-08 15:27:15 -08:00
2024-12-09 10:41:07 +01:00
2024-12-09 10:41:04 +01:00
2024-12-09 10:41:04 +01:00
2024-10-21 22:11:19 +08:00
2024-09-01 14:43:08 -07:00
2024-09-03 21:15:33 -07:00
2024-04-25 20:56:37 -07:00
2024-09-17 01:07:01 -07:00
2024-11-11 17:20:23 -08:00
2024-09-17 01:07:01 -07:00
2024-11-14 15:25:07 -08:00
2024-08-24 16:09:16 +02:00
2023-04-12 17:36:23 -07:00
2024-09-21 07:29:05 -07:00
2024-09-01 20:26:02 -07:00
2024-09-01 20:26:02 -07:00
2024-11-05 16:49:55 -08:00
2024-11-05 16:49:55 -08:00
2024-12-09 10:41:08 +01:00
2023-11-28 14:08:38 +01:00
2024-11-05 16:49:54 -08:00
2024-12-09 10:41:01 +01:00
2024-07-03 22:40:37 -07:00
2024-09-01 20:25:56 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00
2024-09-21 07:29:05 -07:00
2024-11-11 00:00:37 -08:00