[PATCH] fbcon: break earlier in search_fb_in_map and search_for_mapped_con

2024-09-26 Thread Qianqiang Liu
Break the for loop immediately upon finding the target, making the process more efficient. Signed-off-by: Qianqiang Liu --- drivers/video/fbdev/core/fbcon.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core

[PATCH v3] fbcon: Fix a NULL pointer dereference issue in fbcon_putcs

2024-09-24 Thread Qianqiang Liu
/syzkaller.appspot.com/bug?extid=3d613ae53c031502687a Tested-by: syzbot+3d613ae53c0315026...@syzkaller.appspotmail.com Signed-off-by: Qianqiang Liu --- Changes since v2: - Document the commit message in more detail --- Changes since v1: - Initialize ops->putcs by calling set_blitting_type()

[PATCH v2] fbcon: Fix a NULL pointer dereference issue in fbcon_putcs

2024-09-24 Thread Qianqiang Liu
87a Tested-by: syzbot+3d613ae53c0315026...@syzkaller.appspotmail.com Signed-off-by: Qianqiang Liu --- Changes since v1: - Initialize ops->putcs by calling set_blitting_type() --- drivers/video/fbdev/core/fbcon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/core/f

Re: [PATCH] fbcon: Fix a NULL pointer dereference issue in fbcon_putcs

2024-09-20 Thread Qianqiang Liu
&con2fb); return 0; } But I still need time to debug the kernel code.. -- Best, Qianqiang Liu

[PATCH] fbcon: Fix a NULL pointer dereference issue in fbcon_putcs

2024-09-17 Thread Qianqiang Liu
 > I think this patch just hides the real problem. > How could putcs have become NULL ? > > Helge Oh, you are right! I will figure it out. Best, Qianqiang Liu

[PATCH] fbcon: Fix a NULL pointer dereference issue in fbcon_putcs

2024-09-15 Thread Qianqiang Liu
bot+3d613ae53c0315026...@syzkaller.appspotmail.com Signed-off-by: Qianqiang Liu --- drivers/video/fbdev/core/fbcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c index 3f7333dca508..96c1262cc981 100644 --- a/driv