Re: [PATCH] proc/kcore: fix invalid memory access in multi-page read optimization

2018-09-04 Thread Dominique Martinet
Omar Sandoval wrote on Tue, Sep 04, 2018: > On Wed, Aug 29, 2018 at 06:04:07AM +0200, Dominique Martinet wrote: > > The 'm' kcore_list item can point to kclist_head, and it is incorrect to > > look at m->addr / m->size in this case. > > There is no choice but to run through the list of entries for

Re: [PATCH] proc/kcore: fix invalid memory access in multi-page read optimization

2018-09-04 Thread Omar Sandoval
On Wed, Aug 29, 2018 at 06:04:07AM +0200, Dominique Martinet wrote: > The 'm' kcore_list item can point to kclist_head, and it is incorrect to > look at m->addr / m->size in this case. > There is no choice but to run through the list of entries for every address > if we did not find any entry in th