Re: [Linux Kernel Bug][mm/gup] 3 Warning Crashes: kmalloc bug in gup_test_ioctl, is_valid_gup_args, pin_user_pages_fast

From: Matthew Wilcox
Date: Fri Jan 26 2024 - 13:35:05 EST


On Fri, Jan 26, 2024 at 11:31:26AM -0600, Chenyuan Yang wrote:
> In this context, I would like to seek your valued opinion. Do you
> believe it would be more prudent to avoid fuzz testing the
> `gup_test_ioctl`, or are the warnings in `gup_test_ioctl` an
> anticipated outcome?

It seems like a waste of time. Debian certainly disables it, so
unless you can find a distro who enables it, I wouldn't bother.

> It seems that `gup_test_ioctl` can indeed be exposed in the kernel by
> accessing /sys/kernel/debug/gup_test.

If someone wants to fix these things, they can, but it just doesn't
seem worth doing. Part of the art of fuzz testing is finding things
that are worth testing.