Re: [PATCH] video: fbdev: kyrofb: fix a DoS bug by restricting user input

2021-07-13 Thread Sam Ravnborg
Hi On Tue, Jul 13, 2021 at 12:51:14PM +, Zheyu Ma wrote: > The user can pass in any value to the driver through the 'ioctl' > interface. The driver dost not check, which may cause DoS bugs. > > Fix this by checking if the divisor is 0 This fix is trying to avoid the situation on a too low la

[PATCH] video: fbdev: kyrofb: fix a DoS bug by restricting user input

2021-07-13 Thread Zheyu Ma
The user can pass in any value to the driver through the 'ioctl' interface. The driver dost not check, which may cause DoS bugs. Fix this by checking if the divisor is 0 The following log reveals it: divide error: [#1] PREEMPT SMP KASAN PTI RIP: 0010:SetOverlayViewPort+0x133/0x5f0 drivers/