Re: [PATCH] mm/vmstat: fix overflow in mod_zone_page_state()

2016-01-04 Thread Vlastimil Babka
On 12/29/2015 01:07 PM, Heiko Carstens wrote: mod_zone_page_state() takes a "delta" integer argument. delta contains the number of pages that should be added or subtracted from a struct zone's vm_stat field. If a zone is larger than 8TB this will cause overflows. E.g. for a zone with a size

Re: [PATCH] mm/vmstat: fix overflow in mod_zone_page_state()

2016-01-04 Thread Vlastimil Babka
On 12/29/2015 01:07 PM, Heiko Carstens wrote: mod_zone_page_state() takes a "delta" integer argument. delta contains the number of pages that should be added or subtracted from a struct zone's vm_stat field. If a zone is larger than 8TB this will cause overflows. E.g. for a zone with a size

[PATCH] mm/vmstat: fix overflow in mod_zone_page_state()

2015-12-29 Thread Heiko Carstens
mod_zone_page_state() takes a "delta" integer argument. delta contains the number of pages that should be added or subtracted from a struct zone's vm_stat field. If a zone is larger than 8TB this will cause overflows. E.g. for a zone with a size slightly larger than 8TB the line

[PATCH] mm/vmstat: fix overflow in mod_zone_page_state()

2015-12-29 Thread Heiko Carstens
mod_zone_page_state() takes a "delta" integer argument. delta contains the number of pages that should be added or subtracted from a struct zone's vm_stat field. If a zone is larger than 8TB this will cause overflows. E.g. for a zone with a size slightly larger than 8TB the line