On Mon, Nov 07, 2022 at 07:47:15PM +0900, Tetsuo Handa wrote: > syzbot is reporting uninitialized value at iforce_init_device() [1], for > commit 6ac0aec6b0a6 ("Input: iforce - allow callers supply data buffer > when fetching device IDs") is checking that valid length is shorter than > bytes to read. Since iforce_get_id_packet() stores valid length when > returning 0, the caller needs to check that valid length is longer than or > equals to bytes to read. > > Link: https://syzkaller.appspot.com/bug?extid=4dd880c1184280378821 [1] > Reported-by: syzbot <syzbot+4dd880c1184280378821@xxxxxxxxxxxxxxxxxxxxxxxxx> > Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> > Fixes: 6ac0aec6b0a6 ("Input: iforce - allow callers supply data buffer when fetching device IDs") Applied, thank you. -- Dmitry