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

2021-07-20 Thread Zheyu Ma
On Tue, Jul 20, 2021 at 2:50 AM Sam Ravnborg wrote: > > Hi Zheyu, > On Wed, Jul 14, 2021 at 04:09:22AM +, 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. > > > > The following log reveals i

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

2021-07-19 Thread Sam Ravnborg
Hi Zheyu, On Wed, Jul 14, 2021 at 04:09:22AM +, 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. > > The following log reveals it: > > divide error: [#1] PREEMPT SMP KASAN PTI > RIP: 0010:

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

2021-07-14 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. The following log reveals it: divide error: [#1] PREEMPT SMP KASAN PTI RIP: 0010:SetOverlayViewPort+0x133/0x5f0 drivers/video/fbdev/kyro/STG4000OverlayDevice.c:47