[PATCH] MIPS: OCTEON: make get_system_type() thread-safe

2014-07-22 Thread Aaro Koskinen
get_system_type() is not thread-safe on OCTEON. It uses static data, also more dangerous issue is that it's calling cvmx_fuse_read_byte() every time without any synchronization. Currently it's possible to get processes stuck looping forever in kernel simply by launching multiple readers of /proc/cp

Re: [PATCH] MIPS: OCTEON: make get_system_type() thread-safe

2014-07-22 Thread Markos Chandras
On 07/22/2014 12:51 PM, Aaro Koskinen wrote: > get_system_type() is not thread-safe on OCTEON. It uses static data, > also more dangerous issue is that it's calling cvmx_fuse_read_byte() > every time without any synchronization. Currently it's possible to get > processes stuck looping forever in ke