Re: [PATCH] ACPI: NFIT: Fix input validation of bus-family

2020-11-24 Thread Jeff Moyer
Dan Williams writes: > Dan reports that smatch thinks userspace can craft an out-of-bound bus > family number. However, nd_cmd_clear_to_send() blocks all non-zero > values of bus-family since only the kernel can initiate these commands. > However, in the speculation path, family is a user

[PATCH] ACPI: NFIT: Fix input validation of bus-family

2020-11-23 Thread Dan Williams
Dan reports that smatch thinks userspace can craft an out-of-bound bus family number. However, nd_cmd_clear_to_send() blocks all non-zero values of bus-family since only the kernel can initiate these commands. However, in the speculation path, family is a user controlled array index value so mask