[PATCH AUTOSEL for 4.9 279/293] proc: fix /proc/*/map_files lookup

2018-04-08 Thread Sasha Levin
From: Alexey Dobriyan [ Upstream commit ac7f1061c2c11bb8936b1b6a94cdb48de732f7a4 ] Current code does: if (sscanf(dentry->d_name.name, "%lx-%lx", start, end) != 2) However sscanf() is broken garbage. It silently accepts whitespace between format specifiers (did

[PATCH AUTOSEL for 4.9 279/293] proc: fix /proc/*/map_files lookup

2018-04-08 Thread Sasha Levin
From: Alexey Dobriyan [ Upstream commit ac7f1061c2c11bb8936b1b6a94cdb48de732f7a4 ] Current code does: if (sscanf(dentry->d_name.name, "%lx-%lx", start, end) != 2) However sscanf() is broken garbage. It silently accepts whitespace between format specifiers (did you know that?). It