Re: [PATCH bpf-next v2] docs/bpf: Document some special sdiv/smod operations

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

 



On Thu, Nov 7, 2024 at 9:09 AM Yonghong Song <yonghong.song@xxxxxxxxx> wrote:
>
> Patch [1] fixed possible kernel crash due to specific sdiv/smod operations
> in bpf program. The following are related operations and the expected results
> of those operations:
>   - LLONG_MIN/-1 = LLONG_MIN
>   - INT_MIN/-1 = INT_MIN
>   - LLONG_MIN%-1 = 0
>   - INT_MIN%-1 = 0
>
> Those operations are replaced with codes which won't cause
> kernel crash. This patch documents what operations may cause exception and
> what replacement operations are.
>
>   [1] https://lore.kernel.org/all/20240913150326.1187788-1-yonghong.song@xxxxxxxxx/
>
> Signed-off-by: Yonghong Song <yonghong.song@xxxxxxxxx>

More than enough time has passed.
Applied to bpf-next.





[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