summaryrefslogtreecommitdiff
tag nameassoc-array-fixes-v2 (6f22cd85d026e54861f8bdb2295dc15639517e35)
tag date2026-10-13 10:01:27 -0700
tagged byLinus Torvalds <torvalds@linux-foundation.org>
tagged objectcommit bbab563c51...
downloadlinux-next-assoc-array-fixes-v2.tar.gz
linux-next-assoc-array-fixes-v2.zip
Clean up assoc_array library
Nils Ollrogge reported a bug in the assoc_array library and had a patch to fix it too, but that code was too obscure for me to follow, so I did what I preach: use modern LLM tools to help make sense of it all. So this is an LLM-assisted branch which makes the code more readable by splitting up some of the larger and hard-to-read functions. The code was then run through a test harness in user space, which not only confirmed the bug Nils reported, but found three other bugs too - all going back to the very first commit adding this library back in 2013. v2: David Howells asked for a fix-up of a couple of comments and rename assoc_array_segment_leaves() to assoc_array_fill_segment_cache(), and added his Tested-by: and Reviewed-by: -----BEGIN PGP SIGNATURE----- iQFSBAABCgA8FiEEq68RxlopcLEwq+PEeb4+QwBBGIYFAmrOZIgeHHRvcnZhbGRz QGxpbnV4LWZvdW5kYXRpb24ub3JnAAoJEHm+PkMAQRiGK04H/12UZsYrlGpq75Ud 584lIZiC/2Jo8JyZ/cakjUOOppc68gqSd6TiTKiYST5tBXKgTX+CBrrUimMBKVBB ws70R5Kwer/putS6jrVwmXMoYlg5Tf+5sSvPTJd5YnE1jBfJz9/qTuSVkNx2kQAM mhou4/OSFG0Z9QloNKUbxpzt2RVZGkViHShM+xINWzL0UiJhN4WnHzagZaNu+xhT 3pJDinazSG01Mx64sEe8Vew/Ms5/FCmV+RVgI6w1ReI9EHbLYjQZ5mdqSnkQzTgR Bi6mfD7VSYsHqH+IsJXzCE64x+hap8D69trkvPU0xJKAVzllFWuT+DNLF91hpW1s 8Vlznzk= =i7Fp -----END PGP SIGNATURE-----