lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 7 Feb 2022 09:44:43 -0800
From:   Yonghong Song <yhs@...com>
To:     Stanislav Fomichev <sdf@...gle.com>, <netdev@...r.kernel.org>,
        <bpf@...r.kernel.org>
CC:     <ast@...nel.org>, <daniel@...earbox.net>, <andrii@...nel.org>,
        Lorenzo Bianconi <lorenzo@...nel.org>
Subject: Re: [PATCH bpf-next 2/2] bpf: test_run: fix overflow in
 bpf_test_finish frags parsing



On 2/4/22 3:58 PM, Stanislav Fomichev wrote:
> This place also uses signed min_t and passes this singed int to
> copy_to_user (which accepts unsigned argument). I don't think
> there is an issue, but let's be consistent.
> 
> Cc: Lorenzo Bianconi <lorenzo@...nel.org>
> Fixes: 7855e0db150ad ("bpf: test_run: add xdp_shared_info pointer in bpf_test_finish signature")
> Signed-off-by: Stanislav Fomichev <sdf@...gle.com>

Agreed that there is no actual issue as the 'copy_size' should be small 
here (<= maximum skb total packet size). I tried to add 
-Wsign-conversion to kernel compilation and saw tons of warnings. I guess
we have to deal with case by case then.

Acked-by: Yonghong Song <yhs@...com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ