On 11/17/25 1:01 AM, Nilay Shroff wrote:
This change look good to me however as I mentioned earlier, introducing __data_racy would break the kernel build. So are you going to raise a separate bug report to fix it?
AS .tmp_vmlinux2.kallsyms.o LD vmlinux.unstripped BTFIDS vmlinux.unstripped WARN: multiple IDs found for 'task_struct': 116, 10183 - using 116 WARN: multiple IDs found for 'module': 190, 10190 - using 190 WARN: multiple IDs found for 'vm_area_struct': 324, 10227 - using 324 WARN: multiple IDs found for 'inode': 956, 10314 - using 956 WARN: multiple IDs found for 'path': 989, 10344 - using 989 WARN: multiple IDs found for 'file': 765, 10375 - using 765 WARN: multiple IDs found for 'cgroup': 1030, 10409 - using 1030 WARN: multiple IDs found for 'seq_file': 1358, 10593 - using 1358 WARN: multiple IDs found for 'bpf_prog': 2054, 10984 - using 2054 WARN: multiple IDs found for 'bpf_map': 2134, 11012 - using 2134 [...] [...] make[2]: *** [scripts/Makefile.vmlinux:72: vmlinux.unstripped] Error 255 make[2]: *** Deleting file 'vmlinux.unstripped' make[1]: *** [/home/src/linux/Makefile:1242: vmlinux] Error 2 make: *** [Makefile:248: __sub-make] Error 2
The kernel build is already broken without my patch series. Anyway, I have reported this. In the kernel documentation I found the following:
**Please do NOT report BPF issues to bugzilla.kernel.org since it is a guarantee that the reported issue will be overlooked.**
So I sent an email to the BPF mailing list reporting that the kernel build fails if both CONFIG_DEBUG_INFO_BTF and CONFIG_KCSAN are enabled for Linus' master branch (commit e7c375b18160 ("Merge tag 'vfs-6.18-rc7.fixes' of gitolite.kernel.org:pub/scm/linux/kernel/git/ vfs/vfs")). See also https://lore.kernel.org/bpf/2412725b-916c-47bd-91c3-c2d57e3e6c7b@acm.org/.
Bart.