* [Intel-gfx] [PATCH xf86-video-intel] sna: Fix double-free crashes
@ 2020-04-08 2:41 Alexei Podtelezhnikov
2020-04-08 2:55 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
0 siblings, 1 reply; 5+ messages in thread
From: Alexei Podtelezhnikov @ 2020-04-08 2:41 UTC (permalink / raw)
To: intel-gfx
Fix double-free crashes.
See https://bugzilla.redhat.com/show_bug.cgi?id=1808767
Signed-off-by: Alexei Podtelezhnikov <apodtele@gmail.com>
---
src/sna/kgem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 6a35067c..9865a912 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3079,6 +3079,9 @@ static void kgem_buffer_release(struct kgem *kgem, struct kgem_buffer *bo)
assert(cached != &bo->base);
list_del(&cached->vma);
+ if (!cached->map__gtt)
+ continue;
+
assert(*(struct kgem_bo **)cached->map__gtt == cached);
*(struct kgem_bo **)cached->map__gtt = NULL;
cached->map__gtt = NULL;
--
2.26.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Intel-gfx] ✗ Fi.CI.BUILD: failure for sna: Fix double-free crashes
2020-04-08 2:41 [Intel-gfx] [PATCH xf86-video-intel] sna: Fix double-free crashes Alexei Podtelezhnikov
@ 2020-04-08 2:55 ` Patchwork
0 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2020-04-08 2:55 UTC (permalink / raw)
To: Alexei Podtelezhnikov; +Cc: intel-gfx
== Series Details ==
Series: sna: Fix double-free crashes
URL : https://patchwork.freedesktop.org/series/75646/
State : failure
== Summary ==
Applying: sna: Fix double-free crashes
error: sha1 information is lacking or useless (src/sna/kgem.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 sna: Fix double-free crashes
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Intel-gfx] [PATCH xf86-video-intel] sna: Fix double-free crashes.
@ 2020-04-08 3:09 Alexei Podtelezhnikov
2020-04-08 7:09 ` Chris Wilson
0 siblings, 1 reply; 5+ messages in thread
From: Alexei Podtelezhnikov @ 2020-04-08 3:09 UTC (permalink / raw)
To: intel-gfx
Fix double-free crashes.
See https://bugzilla.redhat.com/show_bug.cgi?id=1808767
Signed-off-by: Alexei Podtelezhnikov <apodtele@gmail.com>
---
src/sna/kgem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 6a35067c..76bb1599 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3079,6 +3079,9 @@ static void kgem_buffer_release(struct kgem *kgem, struct kgem_buffer *bo)
assert(cached != &bo->base);
list_del(&cached->vma);
+ if (!cached->map__gtt)
+ continue;
+
assert(*(struct kgem_bo **)cached->map__gtt == cached);
*(struct kgem_bo **)cached->map__gtt = NULL;
cached->map__gtt = NULL;
--
2.26.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH xf86-video-intel] sna: Fix double-free crashes.
2020-04-08 3:09 [Intel-gfx] [PATCH xf86-video-intel] " Alexei Podtelezhnikov
@ 2020-04-08 7:09 ` Chris Wilson
2020-04-08 7:27 ` Alexei Podtelezhnikov
0 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2020-04-08 7:09 UTC (permalink / raw)
To: Alexei Podtelezhnikov, intel-gfx
Quoting Alexei Podtelezhnikov (2020-04-08 04:09:21)
> Fix double-free crashes.
> See https://bugzilla.redhat.com/show_bug.cgi?id=1808767
It should be impossible to get here, so this is just papering over a
bug.
Send the full debug log.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH xf86-video-intel] sna: Fix double-free crashes.
2020-04-08 7:09 ` Chris Wilson
@ 2020-04-08 7:27 ` Alexei Podtelezhnikov
0 siblings, 0 replies; 5+ messages in thread
From: Alexei Podtelezhnikov @ 2020-04-08 7:27 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
>> Fix double-free crashes.
>> See https://bugzilla.redhat.com/show_bug.cgi?id=1808767
>
> It should be impossible to get here, so this is just papering over a
> bug.
You sound certain that locking is airtight and pthread.so just happened to be there. The crashes are quite random but seem to need memory shortage. Please also try while I am working on a full debug.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-04-08 7:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-08 2:41 [Intel-gfx] [PATCH xf86-video-intel] sna: Fix double-free crashes Alexei Podtelezhnikov
2020-04-08 2:55 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2020-04-08 3:09 [Intel-gfx] [PATCH xf86-video-intel] " Alexei Podtelezhnikov
2020-04-08 7:09 ` Chris Wilson
2020-04-08 7:27 ` Alexei Podtelezhnikov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.