mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-24 06:44:23 +08:00
5e6a1c803f
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions). As found with Coccinelle[1], add __counted_by for struct ivpu_job. [1] https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci Cc: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Cc: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Cc: Oded Gabbay <ogabbay@kernel.org> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Tom Rix <trix@redhat.com> Cc: dri-devel@lists.freedesktop.org Cc: llvm@lists.linux.dev Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Link: https://lore.kernel.org/r/20230922175416.work.272-kees@kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> |
||
---|---|---|
.. | ||
ivpu_debugfs.c | ||
ivpu_debugfs.h | ||
ivpu_drv.c | ||
ivpu_drv.h | ||
ivpu_fw_log.c | ||
ivpu_fw_log.h | ||
ivpu_fw.c | ||
ivpu_fw.h | ||
ivpu_gem.c | ||
ivpu_gem.h | ||
ivpu_hw_37xx_reg.h | ||
ivpu_hw_37xx.c | ||
ivpu_hw_40xx_reg.h | ||
ivpu_hw_40xx.c | ||
ivpu_hw_reg_io.h | ||
ivpu_hw.h | ||
ivpu_ipc.c | ||
ivpu_ipc.h | ||
ivpu_job.c | ||
ivpu_job.h | ||
ivpu_jsm_msg.c | ||
ivpu_jsm_msg.h | ||
ivpu_mmu_context.c | ||
ivpu_mmu_context.h | ||
ivpu_mmu.c | ||
ivpu_mmu.h | ||
ivpu_pm.c | ||
ivpu_pm.h | ||
Kconfig | ||
Makefile | ||
TODO | ||
vpu_boot_api.h | ||
vpu_jsm_api.h |