2013/3/10 Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>: > On Fri, Mar 08, 2013 at 03:26:43PM +0100, Rabin Vincent wrote: >> The keymap size used by tc3589x is too low, leading to the driver >> overwriting other people's memory. Fix this by making the driver use >> the automatically allocated keymap provided by >> matrix_keypad_build_keymap() instead of allocating one on its own. >> >> Signed-off-by: Rabin Vincent <rabin.vincent@xxxxxxxxxxxxxx> > > Do you think you could prepare a patch against stable as older kernels > should have the same issue but matrix_keypad_build_keymap does not > allocate keymap there? The memory overwriting problem only exists after 1932811f426fee ("Input: matrix-keymap - uninline and prepare for device tree support"). Before that the driver was passing in a row_shift of 3, which, with a max rows count of 8, fit into the 64 entries of keymap that the driver allocates. 1932811f426fee was introduced in v3.5. 5383116b86d8e87 ("Input: marix-keymap - automatically allocate memory for keymap") was introduced in v3.8 The only stable kernel from v3.5 to v3.8 which is currently maintained is v3.8. So, it looks like this patch can be applied to v3.8 stable, and no stable specific patches are needed. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html