diff options
author | Yonghong Song <yonghong.song@linux.dev> | 2024-11-07 09:09:24 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-02-26 07:54:49 -0800 |
commit | b123480eec64dd879785c28f2a2d582d111cfb59 (patch) | |
tree | e7edb9b2f34a12d7bce283e96954ed5eb1a72eda /scripts/gdb/linux/modules.py | |
parent | 9138048bb5899fc73cd951e8b7374351e37394d8 (diff) |
docs/bpf: Document some special sdiv/smod operations
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@linux.dev/
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20241107170924.2944681-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions