On Tue, Sep 15, 2020 at 6:20 PM Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote: > > On Tue, Sep 15, 2020 at 4:39 AM Ilya Leoshkevich <iii@xxxxxxxxxxxxx> wrote: > > > > getsetsockopt() calls getsockopt() with optlen == 1, but then checks > > the resulting int. It is ok on little endian, but not on big endian. > > > > Fix by checking char instead. > > > > Fixes: 8a027dc0 ("selftests/bpf: add sockopt test that exercises sk helpers") > > Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx> > > --- > > > > v1->v2: Also pass a single byte to log_err. > > > > Acked-by: Andrii Nakryiko <andriin@xxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>