Dom Cobley
150b75e012
fs/ntfs3: Fix memory corruption when page_size changes
...
The rework in fs/ntfs3: Reduce stack usage
changes log->page_size but doesn't change the associated
log->page_mask and log->page_bits.
That results in the bytes value in read_log_page
getting a negative value, which is bad when it is
passed to memcpy.
The kernel panic can be observed when connecting an
ntfs formatted drive that has previously been connected
to a Windows machine to a Raspberry Pi 5, which by defauilt
uses a 16K kernel pagesize.
Fixes: 865e7a7700 ("fs/ntfs3: Reduce stack usage")
Signed-off-by: Dom Cobley <popcornmix@gmail.com >
2024-07-29 14:46:47 +01:00
..
2024-06-16 13:51:01 +02:00
2024-03-12 20:32:19 -07:00
2024-02-26 11:36:28 +01:00
2024-06-16 13:50:54 +02:00
2024-01-11 20:11:35 -08:00
2024-07-05 09:38:17 +02:00
2024-03-12 20:32:19 -07:00
2024-03-12 20:32:19 -07:00
2024-07-25 09:53:38 +02:00
2024-07-25 09:53:42 +02:00
2024-04-11 22:56:28 +02:00
2024-03-12 20:32:19 -07:00
2024-03-27 13:17:15 +01:00
2024-03-12 13:17:36 -07:00
2024-03-07 22:08:15 +00:00
2023-12-28 04:57:57 -08:00
2024-05-30 09:44:15 +02:00
2024-05-30 09:44:04 +02:00
2024-02-25 09:43:39 +01:00
2024-02-27 11:21:33 +01:00
2024-07-25 09:53:37 +02:00
2024-04-25 21:59:59 +09:00
2024-01-23 10:58:56 -05:00
2024-03-13 14:30:58 -07:00
2024-07-18 13:22:54 +02:00
2024-07-11 12:51:16 +02:00
2024-03-14 18:03:09 -07:00
2024-03-12 20:32:19 -07:00
2024-06-12 11:39:21 +02:00
2024-07-05 09:38:00 +02:00
2023-12-29 11:58:34 -08:00
2024-07-25 09:53:40 +02:00
2023-12-21 12:51:00 -05:00
2024-03-12 20:32:19 -07:00
2024-03-11 09:38:17 -07:00
2024-07-25 09:53:26 +02:00
2024-03-12 20:32:19 -07:00
2024-01-04 23:42:21 -05:00
2024-07-11 12:51:05 +02:00
2024-07-27 11:36:15 +02:00
2024-04-14 06:55:46 -04:00
2024-03-12 14:27:37 -07:00
2024-07-18 13:22:39 +02:00
2024-07-25 09:53:42 +02:00
2024-07-25 09:53:25 +02:00
2024-07-05 09:38:02 +02:00
2024-07-18 13:22:47 +02:00
2023-08-31 12:07:34 -05:00
2024-03-07 12:59:51 +01:00
2024-07-29 14:46:47 +01:00
2024-07-27 11:36:15 +02:00
2024-05-30 09:44:03 +02:00
2024-07-11 12:51:04 +02:00
2024-06-27 13:52:28 +02:00
2024-06-21 14:40:33 +02:00
2024-03-09 12:33:22 -08:00
2024-03-12 20:32:19 -07:00
2024-02-27 11:21:32 +01:00
2024-03-12 20:32:19 -07:00
2024-01-26 09:08:16 -08:00
2024-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2024-07-25 09:53:41 +02:00
2024-04-16 15:39:50 -07:00
2024-04-11 15:16:48 +02:00
2024-02-27 11:21:31 +01:00
2024-06-21 14:40:11 +02:00
2024-03-21 15:09:29 -07:00
2024-06-27 13:52:18 +02:00
2024-03-12 20:32:19 -07:00
2024-04-03 16:06:39 +02:00
2024-06-16 13:50:56 +02:00
2024-04-06 09:14:18 -07:00
2024-04-10 07:23:47 +09:00
2024-04-05 11:20:28 +02:00
2023-11-14 08:31:31 -05:00
2024-03-12 20:03:34 -07:00
2024-02-02 13:11:50 +01:00
2024-03-21 20:20:52 -07:00
2022-03-03 20:38:56 -08:00
2024-03-11 10:07:03 -07:00
2024-03-06 10:52:12 +01:00
2023-11-18 15:00:01 +01:00
2024-07-25 09:53:39 +02:00
2024-02-06 14:31:05 +01:00
2024-02-08 10:12:26 +01:00
2024-05-05 14:00:48 -07:00
2024-05-30 09:44:56 +02:00
2024-03-11 10:07:03 -07:00
2024-01-22 15:33:38 +01:00
2024-03-12 20:03:34 -07:00
2024-07-25 09:53:26 +02:00
2024-02-02 13:11:50 +01:00
2024-06-27 13:52:11 +02:00
2024-03-15 09:00:09 -07:00
2024-03-13 12:53:53 -07:00
2024-04-09 12:03:49 +02:00
2024-03-14 17:43:30 -07:00
2023-08-19 12:12:12 +02:00
2024-05-30 09:44:06 +02:00
2024-07-27 11:36:19 +02:00
2024-03-11 10:21:06 -07:00
2024-02-27 11:21:31 +01:00
2024-02-08 10:12:37 +01:00
2023-11-18 14:56:16 +01:00
2024-02-06 14:31:05 +01:00
2024-04-03 10:21:32 -07:00
2024-02-07 21:16:29 +01:00
2024-03-13 12:53:53 -07:00
2024-07-05 09:38:16 +02:00
2024-03-13 12:53:53 -07:00
2024-02-02 13:11:49 +01:00
2023-11-18 14:56:16 +01:00
2024-03-12 20:03:34 -07:00
2023-11-18 14:56:16 +01:00
2023-12-12 16:20:02 +01:00
2023-12-12 16:20:02 +01:00
2024-02-06 17:07:21 +01:00
2024-02-20 09:23:52 +01:00
2023-12-12 16:20:02 +01:00
2024-01-08 10:57:34 -08:00
2024-07-11 12:51:19 +02:00
2023-12-28 04:57:57 -08:00
2024-07-18 13:22:51 +02:00
2024-02-15 23:43:47 -05:00