Re: [PATCH stable 6.6 2/2] selftests/bpf: Add a test to verify previous stacksafe() fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 23, 2024 at 09:48:29AM +0800, Shung-Hsi Yu wrote:
> From: Yonghong Song <yonghong.song@xxxxxxxxx>
> 
> [ Upstream commit 662c3e2db00f92e50c26e9dc4fe47c52223d9982 ]
> 
> A selftest is added such that without the previous patch,
> a crash can happen. With the previous patch, the test can
> run successfully. The new test is written in a way which
> mimics original crash case:
>   main_prog
>     static_prog_1
>       static_prog_2
> where static_prog_1 has different paths to static_prog_2
> and some path has stack allocated and some other path
> does not. A stacksafe() checking in static_prog_2()
> triggered the crash.
> 
> Signed-off-by: Yonghong Song <yonghong.song@xxxxxxxxx>
> Link: https://lore.kernel.org/r/20240812214852.214037-1-yonghong.song@xxxxxxxxx
> Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx>
> Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@xxxxxxxx>
> ---
>  tools/testing/selftests/bpf/progs/iters.c | 54 +++++++++++++++++++++++
>  1 file changed, 54 insertions(+)

Both now queued up,t hanks.

gre gk-h




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux