On Sun, Feb 09, 2025 at 11:05:15PM +0100, Jiri Olsa wrote: > Jann reported [1] possible issue when trampoline_check_ip returns > address near the bottom of the address space that is allowed to > call into the syscall if uretprobes are not set up. > > Though the mmap minimum address restrictions will typically prevent > creating mappings there, let's make sure uretprobe syscall checks > for that. > > [1] > https://lore.kernel.org/bpf/202502081235.5A6F352985@keescook/T/#m9d416df341b8fbc11737dacbcd29f0054413cbbf > Cc: Kees Cook <k...@kernel.org> > Cc: Eyal Birger <eyal.bir...@gmail.com> > Cc: sta...@vger.kernel.org > Reported-by: Jann Horn <ja...@google.com> > Signed-off-by: Jiri Olsa <jo...@kernel.org>
Thanks for this! Reviewed-by: Kees Cook <k...@kernel.org> -- Kees Cook