* [PATCH] Revert "drm/ast: Zero is missing in detect function"
@ 2021-10-15 7:25 Thomas Zimmermann
2021-10-15 19:27 ` Kim Phillips
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Zimmermann @ 2021-10-15 7:25 UTC (permalink / raw)
To: airlied, daniel, ainux.wang
Cc: dri-devel, Thomas Zimmermann, Chuck Lever III, Kim Phillips
Commit 572994bf18ff ("drm/ast: Zero is missing in detect function")
prevents some systems from booting. Seen on Supermicro Super
Server/X10SRL-F, BIOS 3.3 10/28/2020 . There's further a bug that
results in
KASAN: use-after-free in enqueue_timer+0x4f/0x1e0
which is also triggered by commit
572994bf18ff ("drm/ast: Zero is missing in detect function").
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 572994bf18ff ("drm/ast: Zero is missing in detect function")
Reported-by: Chuck Lever III <chuck.lever@oracle.com>
Reported-by: Kim Phillips <kim.phillips@amd.com>
Cc: Ainux.Wang <ainux.wang@gmail.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Link: https://lore.kernel.org/dri-devel/A194B6CE-AF77-422D-A92F-292ABD83BCCE@oracle.com/
---
drivers/gpu/drm/ast/ast_mode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index 6bfaefa01818..ea64944ad4ca 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -1306,7 +1306,7 @@ static enum drm_connector_status ast_connector_detect(struct drm_connector
int r;
r = ast_get_modes(connector);
- if (r <= 0)
+ if (r < 0)
return connector_status_disconnected;
return connector_status_connected;
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Revert "drm/ast: Zero is missing in detect function"
2021-10-15 7:25 [PATCH] Revert "drm/ast: Zero is missing in detect function" Thomas Zimmermann
@ 2021-10-15 19:27 ` Kim Phillips
0 siblings, 0 replies; 2+ messages in thread
From: Kim Phillips @ 2021-10-15 19:27 UTC (permalink / raw)
To: Thomas Zimmermann, airlied, daniel, ainux.wang; +Cc: dri-devel, Chuck Lever III
On 10/15/21 2:25 AM, Thomas Zimmermann wrote:
> Commit 572994bf18ff ("drm/ast: Zero is missing in detect function")
> prevents some systems from booting. Seen on Supermicro Super
> Server/X10SRL-F, BIOS 3.3 10/28/2020 . There's further a bug that
> results in
>
> KASAN: use-after-free in enqueue_timer+0x4f/0x1e0
>
> which is also triggered by commit
> 572994bf18ff ("drm/ast: Zero is missing in detect function").
That last statement is technically wrong. Like I said, in my
case [1], the bad commit is commit aae74ff9caa8 ("drm/ast:
Add detect function support")
Please revert aae74ff9caa8.
Thanks,
Kim
[1] https://www.spinics.net/lists/dri-devel/msg318039.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-15 19:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-15 7:25 [PATCH] Revert "drm/ast: Zero is missing in detect function" Thomas Zimmermann
2021-10-15 19:27 ` Kim Phillips
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox