Re: [PATCH] fs/ntfs3: Fix memory corruption when page_size changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 14, 2024 at 4:55 PM Dom Cobley <popcornmix@xxxxxxxxx> wrote:
> 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.

Here are links to some bug reports about the issue:
https://github.com/raspberrypi/linux/issues/6036
https://forum.libreelec.tv/thread/28620-libreelec-12-0-rpi5-and-ntfs-hdd-problem/?postID=192713#post192713
https://forums.raspberrypi.com/viewtopic.php?p=2203090#p2203090
https://forums.raspberrypi.com/viewtopic.php?t=367545

The common points are it occurs on the (default) 16K pagesize kernel,
but switching to 4K pagesize kernel
avoids the issue.

Issue wasn't present in previous RPiOS LTS kernel (6.1), but is
present in current LTS kernel (6.6).
Revering to 6.1 kernel avoids the issue.

I've confirmed that reverting the commit:
865e7a7700d9 ("fs/ntfs3: Reduce stack usage")

avoids the issue.

This patch avoids the issue for me, and I'd like confirmation it is correct.





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux