Re: [PATCH] proc-vmcore: wrong data type casting fix

2016-03-11 Thread Baoquan He
On 03/11/16 at 04:15pm, Dave Young wrote: > On i686 PAE enabled machine the contiguous physical area could be large > and it can cause triming down variables in below calculation in > read_vmcore() and mmap_vmcore(): > > tsz = min_t(size_t, m->offset + m->size - *fpos, buflen); > > Then

Re: [PATCH] proc-vmcore: wrong data type casting fix

2016-03-11 Thread Baoquan He
On 03/11/16 at 04:15pm, Dave Young wrote: > On i686 PAE enabled machine the contiguous physical area could be large > and it can cause triming down variables in below calculation in > read_vmcore() and mmap_vmcore(): > > tsz = min_t(size_t, m->offset + m->size - *fpos, buflen); > > Then

[PATCH] proc-vmcore: wrong data type casting fix

2016-03-11 Thread Dave Young
On i686 PAE enabled machine the contiguous physical area could be large and it can cause triming down variables in below calculation in read_vmcore() and mmap_vmcore(): tsz = min_t(size_t, m->offset + m->size - *fpos, buflen); Then the real size passed down is not correct any more.

[PATCH] proc-vmcore: wrong data type casting fix

2016-03-11 Thread Dave Young
On i686 PAE enabled machine the contiguous physical area could be large and it can cause triming down variables in below calculation in read_vmcore() and mmap_vmcore(): tsz = min_t(size_t, m->offset + m->size - *fpos, buflen); Then the real size passed down is not correct any more.