From: Alexei Starovoitov Date: Wed, 19 Mar 2025 02:07:18 +0000 (-0700) Subject: Merge branch 'bpf-reject-attaching-fexit-fmod_ret-to-noreturn-functions' X-Git-Tag: v6.15-rc1~99^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ca21620b475e9d359c80a5db9ede7ce4abc4d03;p=thirdparty%2Fkernel%2Fstable.git Merge branch 'bpf-reject-attaching-fexit-fmod_ret-to-noreturn-functions' Yafang Shao says: ==================== Attaching fexit probes to functions marked with __noreturn may lead to unpredictable behavior. To avoid this, we will reject attaching probes to such functions. Currently, there is no ideal solution, so we will hardcode a check for all __noreturn functions. Once a more robust solution is implemented, this workaround can be removed. v4->v5: - Remove unnecessary functions (Alexei) - Use BTF_ID directly (Alexei) v3->v4: https://lore.kernel.org/bpf/20250317121735.86515-1-laoar.shao@gmail.com/ - Reject also fmod_ret (Alexei) - Fix build warnings and remove unnecessary functions (Alexei) v1->v2: https://lore.kernel.org/bpf/20250223062735.3341-1-laoar.shao@gmail.com/ - keep tools/objtool/noreturns.h as is (Josh) - Add noreturns.h to objtool/sync-check.sh (Josh) - Add verbose for the reject and simplify the test case (Song) v1: https://lore.kernel.org/bpf/20250211023359.1570-1-laoar.shao@gmail.com/ ==================== Link: https://patch.msgid.link/20250318114447.75484-1-laoar.shao@gmail.com Signed-off-by: Alexei Starovoitov --- 6ca21620b475e9d359c80a5db9ede7ce4abc4d03