Re: [PATCH v2] tools/testing/nvdimm: Fix the array size for dimm devices.

2018-10-30 Thread Dan Williams
On Tue, Oct 30, 2018 at 6:51 PM Masayoshi Mizuma wrote: > > From: Masayoshi Mizuma > > KASAN reports following global out of bounds access while > nfit_test is being loaded. The out of bound access happens > the following reference to dimm_fail_cmd_flags[dimm]. 'dimm' is > over than the index

[PATCH v2] tools/testing/nvdimm: Fix the array size for dimm devices.

2018-10-30 Thread Masayoshi Mizuma
From: Masayoshi Mizuma KASAN reports following global out of bounds access while nfit_test is being loaded. The out of bound access happens the following reference to dimm_fail_cmd_flags[dimm]. 'dimm' is over than the index value, NUM_DCR (==5). static int override_return_code(int dimm,