Re: [PATCH 6.6 205/530] af_unix: fix use-after-free in unix_stream_read_actor()

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

 



[2023-11-25 23:16] Pascal Ernster:
I'm not 100% sure yet, but it appears that this patch is reproducibly causing crashes at boot time on at least one of my x86_64 VMs. I've attached the kernel config used for building the kernel. The cmdline that I've booted the kernel with is:

root=/dev/vda rootfstype=btrfs rootflags=discard rw console=ttyS0,115200 add_efi_memmap intel_iommu=on lockdown=confidentiality usbcore.nousb debug


"Not 100% sure yet", because I saw the crash first on a heavily patched custom kernel of mine, and noticed that the crash went away when I removed the "af_unix: fix use-after-free in unix_stream_read_actor()" patch. I have now built a "clean" kernel (6.6.2 with all the patches from https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.6?id=2da2670346795f8fe06acbf499606941303b9cbe applied on top) that also crashes, but it will take a while until I have compiled such a "clean" kernel without all my custom patches and with only the "af_unix: fix use-after-free in unix_stream_read_actor()" patch removed.


I've now tested with a clean/vanilla kernel 6.6.2 with all the patches from https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.6?id=2da2670346795f8fe06acbf499606941303b9cbe applied on top, but *excluding* the "af_unix: fix use-after-free in unix_stream_read_actor()" patch, and my VM boots cleanly, without any crashes.

When I try to boot a build of the exact same kernel, but *including* the "af_unix: fix use-after-free in unix_stream_read_actor()" patch, the VM crashes during boot (as stated in my previous email), so I'm now 100% certain that this patch is causing the crashes.


Regards
Pascal




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux