lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 14 Jun 2019 15:17:01 +0100
From:   Colin Ian King <>
To:     Sean Paul <>,
        Maarten Lankhorst <>,
        Daniel Vetter <>,
        Maxime Ripard <>,
Cc:     "" <>
Subject: re: drm: Add helpers to kick off self refresh mode in drivers


Static analysis with Coverity has picked up two potential issues with
the commit in linux-next:

commit 1452c25b0e60278820f3d2155c65f1bfcce5ee79
Author: Sean Paul <>
Date:   Wed Jun 12 10:50:19 2019 -0400

    drm: Add helpers to kick off self refresh mode in drivers

1. There is a potential null dereference on the following code path in
function drm_self_refresh_helper_entry_work:

        state = drm_atomic_state_alloc(dev);
        if (!state) {
                ret = -ENOMEM;
                goto out;

..the exit path out calls drm_atomic_state_put(state) which dereferences
the null state.

2. The following error exit path to out in function
drm_self_refresh_helper_entry_work will check if ret is -EDEADLK however
ret has not been initialized at this point:

       if (!crtc_state->enable)
                goto out;


       if (ret == -EDEADLK) {


Powered by blists - more mailing lists