Re: [PATCH] Input: joydev - prevent potential write out of bounds in ioctl
From: Linus Torvalds
Date: Mon Jun 21 2021 - 11:45:46 EST
On Sun, Jun 20, 2021 at 10:25 PM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
>
> Yes, this makes sense to me and it is safe as joydev->keypam is
> guaranteed to be the right size.
>
> Are you going to reformat this and resend or should I?
I don't have any hardware to test, so please consider that patch of
mine more of a "I think something like this" rather than a real patch
submission.
(I often find it easier to make a patch as a way to just make it very
explicit what I think might be the solution, rather than just
explaining it in English).
So please consider that patch throw-away - it's already gone from my tree.
And I don't need authorship for it: finding the problem - like
Alexander did - or even just writing a good commit message is worth
more than the patch itself, I think. The fix is a one-liner thing, the
real work was finding the bug.
So if you do want to set me as author, you can add my sign-off, but
you can just give credit to Alexander where it really belongs.
Linus