mbox series

[SRU,F,0/2] Upstream fix for i915_active_acquire crash

Message ID 20200513181049.15830-1-sultan.alsawaf@canonical.com
Headers show
Series Upstream fix for i915_active_acquire crash | expand

Message

Sultan Alsawaf May 13, 2020, 6:10 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1868551

SRU Justification:

[Impact]
Users are experiencing a frequent NULL pointer dereference crash in
i915_active_acquire when using kms, which is used by default.

[Fix]
The fix is a cherry pick from upstream which was supposed to be backported to
5.4 by upstream, but was neglected. The fix has a subsequent Fixes patch to
resolve some uninitialized pointer usage.

[Test]
Verified by multiple bug reporters.

[Regression Potential]
Low. Although there are a lot of lines added, they're mostly boilerplate, and
this patch is confirmed by multiple users to fix a crash.

Chris Wilson (1):
  drm/i915: Hold reference to intel_frontbuffer as we track activity

Colin Ian King (1):
  drm/i915: fix uninitialized pointer reads on pointers to and from

 drivers/gpu/drm/i915/display/intel_display.c  |  2 +-
 .../gpu/drm/i915/display/intel_frontbuffer.c  | 16 ++++-----
 .../gpu/drm/i915/display/intel_frontbuffer.h  | 34 +++++++++++++++++--
 drivers/gpu/drm/i915/display/intel_overlay.c  | 17 +++++++---
 drivers/gpu/drm/i915/gem/i915_gem_clflush.c   |  3 +-
 drivers/gpu/drm/i915/gem/i915_gem_domain.c    |  4 +--
 drivers/gpu/drm/i915/gem/i915_gem_object.c    | 26 +++++++++++++-
 drivers/gpu/drm/i915/gem/i915_gem_object.h    | 23 ++++++++++++-
 .../gpu/drm/i915/gem/i915_gem_object_types.h  |  2 +-
 drivers/gpu/drm/i915/i915_gem.c               | 10 +++---
 drivers/gpu/drm/i915/i915_vma.c               | 14 +++++---
 11 files changed, 118 insertions(+), 33 deletions(-)

Comments

Stefan Bader May 14, 2020, 8:23 a.m. UTC | #1
On 13.05.20 20:10, Sultan Alsawaf wrote:
> BugLink: https://bugs.launchpad.net/bugs/1868551
> 
> SRU Justification:
> 
> [Impact]
> Users are experiencing a frequent NULL pointer dereference crash in
> i915_active_acquire when using kms, which is used by default.
> 
> [Fix]
> The fix is a cherry pick from upstream which was supposed to be backported to
> 5.4 by upstream, but was neglected. The fix has a subsequent Fixes patch to
> resolve some uninitialized pointer usage.
> 
> [Test]
> Verified by multiple bug reporters.
> 
> [Regression Potential]
> Low. Although there are a lot of lines added, they're mostly boilerplate, and
> this patch is confirmed by multiple users to fix a crash.
> 

Lets meet at medium. No change to i915 seems to come without some risk.
Please add the justification to the bug report, too. And update the status of
the devel task (for groovy).

> Chris Wilson (1):
>   drm/i915: Hold reference to intel_frontbuffer as we track activity
> 
> Colin Ian King (1):
>   drm/i915: fix uninitialized pointer reads on pointers to and from
> 
>  drivers/gpu/drm/i915/display/intel_display.c  |  2 +-
>  .../gpu/drm/i915/display/intel_frontbuffer.c  | 16 ++++-----
>  .../gpu/drm/i915/display/intel_frontbuffer.h  | 34 +++++++++++++++++--
>  drivers/gpu/drm/i915/display/intel_overlay.c  | 17 +++++++---
>  drivers/gpu/drm/i915/gem/i915_gem_clflush.c   |  3 +-
>  drivers/gpu/drm/i915/gem/i915_gem_domain.c    |  4 +--
>  drivers/gpu/drm/i915/gem/i915_gem_object.c    | 26 +++++++++++++-
>  drivers/gpu/drm/i915/gem/i915_gem_object.h    | 23 ++++++++++++-
>  .../gpu/drm/i915/gem/i915_gem_object_types.h  |  2 +-
>  drivers/gpu/drm/i915/i915_gem.c               | 10 +++---
>  drivers/gpu/drm/i915/i915_vma.c               | 14 +++++---
>  11 files changed, 118 insertions(+), 33 deletions(-)
> 
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Andrea Righi May 14, 2020, 9:35 a.m. UTC | #2
On Wed, May 13, 2020 at 11:10:47AM -0700, Sultan Alsawaf wrote:
> BugLink: https://bugs.launchpad.net/bugs/1868551
> 
> SRU Justification:
> 
> [Impact]
> Users are experiencing a frequent NULL pointer dereference crash in
> i915_active_acquire when using kms, which is used by default.
> 
> [Fix]
> The fix is a cherry pick from upstream which was supposed to be backported to
> 5.4 by upstream, but was neglected. The fix has a subsequent Fixes patch to
> resolve some uninitialized pointer usage.
> 
> [Test]
> Verified by multiple bug reporters.
> 
> [Regression Potential]
> Low. Although there are a lot of lines added, they're mostly boilerplate, and
> this patch is confirmed by multiple users to fix a crash.

Looks good to me.

Acked-by: Andrea Righi <andrea.righi@canonical.com>
Khalid Elmously May 15, 2020, 4:27 a.m. UTC | #3
On 2020-05-13 11:10:47 , Sultan Alsawaf wrote:
> BugLink: https://bugs.launchpad.net/bugs/1868551
> 
> SRU Justification:
> 
> [Impact]
> Users are experiencing a frequent NULL pointer dereference crash in
> i915_active_acquire when using kms, which is used by default.
> 
> [Fix]
> The fix is a cherry pick from upstream which was supposed to be backported to
> 5.4 by upstream, but was neglected. The fix has a subsequent Fixes patch to
> resolve some uninitialized pointer usage.
> 
> [Test]
> Verified by multiple bug reporters.
> 
> [Regression Potential]
> Low. Although there are a lot of lines added, they're mostly boilerplate, and
> this patch is confirmed by multiple users to fix a crash.
> 
> Chris Wilson (1):
>   drm/i915: Hold reference to intel_frontbuffer as we track activity
> 
> Colin Ian King (1):
>   drm/i915: fix uninitialized pointer reads on pointers to and from
> 
>  drivers/gpu/drm/i915/display/intel_display.c  |  2 +-
>  .../gpu/drm/i915/display/intel_frontbuffer.c  | 16 ++++-----
>  .../gpu/drm/i915/display/intel_frontbuffer.h  | 34 +++++++++++++++++--
>  drivers/gpu/drm/i915/display/intel_overlay.c  | 17 +++++++---
>  drivers/gpu/drm/i915/gem/i915_gem_clflush.c   |  3 +-
>  drivers/gpu/drm/i915/gem/i915_gem_domain.c    |  4 +--
>  drivers/gpu/drm/i915/gem/i915_gem_object.c    | 26 +++++++++++++-
>  drivers/gpu/drm/i915/gem/i915_gem_object.h    | 23 ++++++++++++-
>  .../gpu/drm/i915/gem/i915_gem_object_types.h  |  2 +-
>  drivers/gpu/drm/i915/i915_gem.c               | 10 +++---
>  drivers/gpu/drm/i915/i915_vma.c               | 14 +++++---
>  11 files changed, 118 insertions(+), 33 deletions(-)
> 
> -- 
> 2.20.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team