NULL pointer dereference in the UDL driver |
|||||||||
Issue descriptionUnder certain circumstances, like in b/78032256, this can lead to crash. The fix is to backport the following upstream patch: https://patchwork.kernel.org/patch/10352491/
,
Apr 23 2018
CL submitted https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1023421
,
Apr 26 2018
,
Apr 26 2018
This bug requires manual review: M67 has already been promoted to the beta branch, so this requires manual review Please contact the milestone owner if you have questions. Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 26 2018
,
Apr 26 2018
Buildbots are having a bad day so the original commit hasn't landed in ToT yet. Hopefully we can get the approval when it does. It is getting a bit late here in STO, and we would like to merge this tomorrow.
,
Apr 26 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/00b629e400742f6cbc9568024968286ed66889d5 commit 00b629e400742f6cbc9568024968286ed66889d5 Author: Emil Lundmark <lndmrk@chromium.org> Date: Thu Apr 26 20:01:53 2018 BACKPORT: FROMLIST: drm: udl: Destroy framebuffer only if it was initialized This fixes a NULL pointer dereference that can happen if the UDL driver is unloaded before the framebuffer is initialized. This can happen e.g. if the USB device is unplugged right after it was plugged in. Signed-off-by: Emil Lundmark <lndmrk@chromium.org> Reviewed-by: Sean Paul <seanpaul@chromium.org> (am from https://patchwork.kernel.org/patch/10352491/) Conflicts: drivers/gpu/drm/udl/udl_fb.c BUG= chromium:835746 TEST=emerge-fizz chromeos-kernel-4_4 Change-Id: I9caac5442fe3854838c028d8c57a970f91f76d86 Reviewed-on: https://chromium-review.googlesource.com/1023421 Commit-Ready: Emil Lundmark <lndmrk@chromium.org> Tested-by: Emil Lundmark <lndmrk@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> [modify] https://crrev.com/00b629e400742f6cbc9568024968286ed66889d5/drivers/gpu/drm/udl/udl_fb.c
,
Apr 26 2018
Did this get merged prior to the review? Also, couple of questions for context: - M67 regression? At what point did this originate? - Fix tested against ToT or similar to verify modification?
,
Apr 26 2018
Not sure which review you mean. This is a regression between 3.18 and 4.4 kernel. It has been tested against ToT.
,
Apr 26 2018
I have tested this for several time, I believe it works. The crash issue is gone.+
,
Apr 26 2018
Approving merge to M67 Chrome OS.
,
Apr 26 2018
Thanks!
,
Apr 27 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/af11e90a206feca77b03c69ef92fcb2124ca2b32 commit af11e90a206feca77b03c69ef92fcb2124ca2b32 Author: Emil Lundmark <lndmrk@chromium.org> Date: Fri Apr 27 02:43:54 2018 BACKPORT: FROMLIST: drm: udl: Destroy framebuffer only if it was initialized This fixes a NULL pointer dereference that can happen if the UDL driver is unloaded before the framebuffer is initialized. This can happen e.g. if the USB device is unplugged right after it was plugged in. Signed-off-by: Emil Lundmark <lndmrk@chromium.org> Reviewed-by: Sean Paul <seanpaul@chromium.org> (am from https://patchwork.kernel.org/patch/10352491/) Conflicts: drivers/gpu/drm/udl/udl_fb.c BUG= chromium:835746 TEST=emerge-fizz chromeos-kernel-4_4 Change-Id: I9caac5442fe3854838c028d8c57a970f91f76d86 Reviewed-on: https://chromium-review.googlesource.com/1030411 Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org> Commit-Queue: Stefan Adolfsson <sadolfsson@chromium.org> Tested-by: Stefan Adolfsson <sadolfsson@chromium.org> [modify] https://crrev.com/af11e90a206feca77b03c69ef92fcb2124ca2b32/drivers/gpu/drm/udl/udl_fb.c
,
Apr 27 2018
Thanks all for getting this in :)
,
May 1 2018
Please follow up with upstream to get this merged there. It seems like you just need to revise the commit message to explain _how_ this can happen (Daniel and Stephane have given you pretty good templates). Once it's merged upstream, it should also be backported to 4.14.
,
May 1 2018
chatting with marcheu, he reminded me that udl is supported on other kernels as well, so we'll need this backported to all other kernels with udl enabled.
,
May 14 2018
Issue 834332 has been merged into this issue. |
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by mcasas@chromium.org
, Apr 23 2018