The patch has fixed a NULL pointer deference crash in hiding the cursor. It
is verified by syzbot patch tester.
Reported by: syzbot
https://syzkaller.appspot.com/bug?id=defb47bf56e1c14d5687280c7bb91ce7b608b94b
Signed-off-by: Hassan Shahbazi <redacted>
---
drivers/video/fbdev/core/fbcon.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
On Wed, Mar 31, 2021 at 07:34:29PM +0300, Hassan Shahbazi wrote:
quoted hunk
The patch has fixed a NULL pointer deference crash in hiding the cursor. It
is verified by syzbot patch tester.
Reported by: syzbot
https://syzkaller.appspot.com/bug?id=defb47bf56e1c14d5687280c7bb91ce7b608b94b
Signed-off-by: Hassan Shahbazi <redacted>
---
drivers/video/fbdev/core/fbcon.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
As ops obviously is not NULL here (you just used it on the line above),
why are you checking it again?
And what makes curser be NULL here? How can that happen?
Also your subject line can use some work, please make it reflect the
driver subsystem you are looking at.
thanks,
greg k-h
On Wed, Mar 31, 2021 at 07:32:06PM +0200, Greg KH wrote:
On Wed, Mar 31, 2021 at 07:34:29PM +0300, Hassan Shahbazi wrote:
quoted
The patch has fixed a NULL pointer deference crash in hiding the cursor. It
is verified by syzbot patch tester.
Reported by: syzbot
https://syzkaller.appspot.com/bug?id=defb47bf56e1c14d5687280c7bb91ce7b608b94b
Signed-off-by: Hassan Shahbazi <redacted>
---
drivers/video/fbdev/core/fbcon.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
As ops obviously is not NULL here (you just used it on the line above),
why are you checking it again?
Yes, that's right. I will remove that check and will submit a new patch.
And what makes curser be NULL here? How can that happen?
Honestly, I don't know. I reproduced the crash on my local, followed the
stack trace, and then changed the line to avoid the crash. If you think this
patch is not the best solution, I can drop it and investigate more to find
the root cause.
Also your subject line can use some work, please make it reflect the
driver subsystem you are looking at.
This was a mistake, I did not intend to change the subject. I will ensure
the next patch reflects the subsystem.
On Thu, Apr 01, 2021 at 09:21:54AM +0300, Hassan Shahbazi wrote:
On Wed, Mar 31, 2021 at 07:32:06PM +0200, Greg KH wrote:
quoted
On Wed, Mar 31, 2021 at 07:34:29PM +0300, Hassan Shahbazi wrote:
quoted
The patch has fixed a NULL pointer deference crash in hiding the cursor. It
is verified by syzbot patch tester.
Reported by: syzbot
https://syzkaller.appspot.com/bug?id=defb47bf56e1c14d5687280c7bb91ce7b608b94b
Signed-off-by: Hassan Shahbazi <redacted>
---
drivers/video/fbdev/core/fbcon.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
As ops obviously is not NULL here (you just used it on the line above),
why are you checking it again?
Yes, that's right. I will remove that check and will submit a new patch.
quoted
And what makes curser be NULL here? How can that happen?
Honestly, I don't know. I reproduced the crash on my local, followed the
stack trace, and then changed the line to avoid the crash. If you think this
patch is not the best solution, I can drop it and investigate more to find
the root cause.
Finding the root cause would be good to do here, so that we can
potentially fix that if it is needed.
thanks,
greg k-h