1. Please describe the problem:
Simple bounds overflows (related to fixed-sized arrays, allocations, etc) are not being detected by the Fedora kernel. CONFIG_UBSAN_BOUNDS=y has been available since at least v5.16, and is default enabled on other distros (e.g. Ubuntu and Android).
2. What is the Version-Release number of the kernel:
N/A
3. Did it work previously in Fedora? If so, what kernel version did the issue
*first* appear? Old kernels are available for download at
https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :
no
4. Can you reproduce this issue? If so, please provide the steps to reproduce
the issue below:
Yes, rebuild with CONFIG_LKDTM=y and notice that:
echo ARRAY_BOUNDS | cat > /sys/kernel/debug/provoke_crash/DIRECT
does not cause a WARN visible in "dmesg".
5. Does this problem occur with the latest Rawhide kernel? To install the
Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
``sudo dnf update --enablerepo=rawhide kernel``:
Yes
6. Are you running any modules that not shipped with directly Fedora's kernel?:
N/A
7. Please attach the kernel logs. You can get the complete kernel log
for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
issue occurred on a previous boot, use the journalctl ``-b`` flag.
N/A
Reproducible: Always