Files
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-03-27 13:17:15 +01:00
2023-12-29 11:58:34 -08:00
2024-07-27 11:36:15 +02:00
2023-08-31 12:07:34 -05:00
2024-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2024-03-06 10:52:12 +01:00
2024-05-30 09:44:56 +02:00
2024-03-13 12:53:53 -07:00
2023-08-19 12:12:12 +02:00
2024-05-30 09:44:06 +02: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
2024-02-15 23:43:47 -05:00