Re: [PATCH] mm: fix devision by 0 in percpu_pagelist_fraction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/28/2012 11:25 PM, Sasha Levin wrote:

> percpu_pagelist_fraction_sysctl_handler() has only considered -EINVAL as a possible error
> from proc_dointvec_minmax(). If any other error is returned, it would proceed to divide by
> zero since percpu_pagelist_fraction wasn't getting initialized at any point. For example,
> writing 0 bytes into the proc file would trigger the issue.
> 
> Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>


Reviewed-by: Minchan Kim <minchan@xxxxxxxxxx>

-- 
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]