Re: 6.5.13 regression: BUG: kernel NULL pointer dereference, address: 0000000000000020

2023-11-29 Thread Gustavo A. R. Silva
the kernel source. But a quick (and possibly imperfect) grepping seems to show that struct neighbor was the only one used with __randomize_layout. So, I *think* it might be the only one that could cause a problem with the recent change to the randomize_layout plugin. Yeah, I can confirm we do

Re: 6.5.13 regression: BUG: kernel NULL pointer dereference, address: 0000000000000020

2023-11-28 Thread Dan Moulding
Thanks, Sam. Yes it does look like that's the same issue. I applied that patch to v6.6.3 instead of reverting the change to the randomize_layout plugin and the problem also goes away with the patch applied. In that thread with the patch, Gustavo does mention that many other zero-length arrays, be

Re: 6.5.13 regression: BUG: kernel NULL pointer dereference, address: 0000000000000020

2023-11-28 Thread Sam James
I suspect this is https://lore.kernel.org/linux-hardening/20231124102458.gb1503...@e124191.cambridge.arm.com/ and the patch at https://lore.kernel.org/linux-hardening/170117162434.28731.12930304842635897908.git-patchwork-not...@kernel.org/T/#t may help.