Re: [PATCH v2 bpf-next 10/10] selftests/bpf: add freplace of BTF-unreliable main prog test

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

 



On Tue, 2023-12-12 at 15:25 -0800, Andrii Nakryiko wrote:
> Add a test validating that freplace'ing another main (entry) BPF program
> fails if the target BPF program doesn't have valid/expected func proto BTF.
> 
> Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx>
> ---

Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>

I have two nitpicks, fill free to ignore.
When test is run with -vvv, verifier log says:

    -- BEGIN PROG LOAD LOG --
    func#0 @0
    Cannot replace static functions
    processed 0 insns ...
    -- END PROG LOAD LOG --

Would it be possible to match the error message in this test?
Also, maybe kernel should be tweaked to be a bit more informative,
as message about static function is confusing, wdyt?







[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux