Re: [PATCH] tools/testing/nvdimm: Fix the index for dimm devices.

2018-10-30 Thread Masayoshi Mizuma
On Tue, Oct 30, 2018 at 03:30:05PM -0700, Dan Williams wrote: > On Mon, Oct 29, 2018 at 12:11 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 follo

Re: [PATCH] tools/testing/nvdimm: Fix the index for dimm devices.

2018-10-30 Thread Dan Williams
On Mon, Oct 29, 2018 at 12:11 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 va

Re: [PATCH] tools/testing/nvdimm: Fix the index for dimm devices.

2018-10-30 Thread Dan Williams
On Mon, Oct 29, 2018 at 12:11 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 va

[PATCH] tools/testing/nvdimm: Fix the index for dimm devices.

2018-10-29 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, un