note: object 'status' of
size 4
2387 | u32 status;
| ^~
Signed-off-by: Kees Cook
Reviewed-by: AngeloGioacchino Del Regno
cess/deprecated.html#open-coded-arithmetic-in-allocator-arguments
[2]
Signed-off-by: Erick Archer
Reviewed-by: AngeloGioacchino Del Regno
---
drivers/iommu/mtk_iommu.c| 2 +-
drivers/iommu/mtk_iommu_v1.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers
the commit description
issue.
Reviewed-by: AngeloGioacchino Del Regno
nd more safer.
This way, the code is more readable and safer.
Apart from that,
Reviewed-by: AngeloGioacchino Del Regno
Link:
https://www.kernel.org/doc/html/latest/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments
[1]
Link: https://github.com/KSPP/linux/issues/160 [
f_bounds+0x80/0x84
...
Reported-by: Mark Brown
Cc: Russell King
Cc: Ard Biesheuvel
Cc: Arnd Bergmann
Cc: Linus Walleij
Cc: Vladimir Murzin
Cc: Zhen Lei
Cc: Keith Packard
Cc: Haibo Li
Cc: linux-arm-ker...@lists.infradead.org
Signed-off-by: Kees Cook
Reviewed-by: AngeloGioacchino Del Regno
Reviewed-by: AngeloGioacchino Del Regno
90
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Justin Stitt
Reviewed-by: AngeloGioacchino Del Regno
CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
functions).
As found with Coccinelle[1], add __counted_by for struct mt6360_priv.
[1]
https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci
Cc: Pavel Machek
Cc: Lee Jones
Cc: Matthias Brugger
Cc: AngeloGioacchino Del Regno
CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
functions).
As found with Coccinelle[1], add __counted_by for struct mt6370_priv.
[1]
https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci
Cc: Pavel Machek
Cc: Lee Jones
Cc: Matthias Brugger
Cc: AngeloGioacchino Del Regno