[PATCH v2] selftests: vDSO: Explicitly include sched.h

2024-10-07 Thread Yu Liao
t;) Signed-off-by: Yu Liao --- Changes in v2: - Include instead of v1: https://lore.kernel.org/all/20240919111841.20226-1-liaoy...@huawei.com/ tools/testing/selftests/vDSO/vdso_test_getrandom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/vDSO/vdso_test_getrandom.

[PATCH v2 1/2] ACPI: NFIT: Fix incorrect calculation of idt size

2023-08-26 Thread Yu Liao
s: 2a5ab99847bd ("ACPICA: struct acpi_nfit_interleave: Replace 1-element array with flexible array") Cc: sta...@vger.kernel.org # v6.4+ Signed-off-by: Yu Liao Reviewed-by: Dave Jiang --- v1 -> v2: add Dave's review tag and cc nvd...@lists.linux.dev --- drivers/acpi/nfit/core.c |

[PATCH v2 2/2] ACPI: NFIT: use struct_size() helper

2023-08-26 Thread Yu Liao
Make use of the struct_size() helper instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worst scenario, could lead to heap overflows. Signed-off-by: Yu Liao Reviewed-by: Dave Jiang --- drivers/acpi/nfit/core.c | 10 -- 1