lists.openwall.net   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  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87ee3k6123.fsf@intel.com>
Date:   Wed, 02 Mar 2022 13:33:56 +0200
From:   Jani Nikula <jani.nikula@...el.com>
To:     CA+G9fYu4PPE6_91mzor0bW7RSzBDNJ3xqqgeeK-jR1jokmhYOQ@...l.gmail.com,
        dri-devel@...ts.freedesktop.org,
        open list <linux-kernel@...r.kernel.org>,
        Linux-Next Mailing List <linux-next@...r.kernel.org>
Cc:     David Airlie <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>,
        Lyude Paul <lyude@...hat.com>, ville.syrjala@...ux.intel.com,
        airlied@...hat.com, dianders@...omium.org, tzimmermann@...e.de,
        sfr@...b.auug.org.au, lkft-triage@...ts.linaro.org,
        Kees Cook <keescook@...omium.org>
Subject: Re: MSM8960: gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10
 is outside, array bounds of 'const u8[6]'

On Tue, 01 Mar 2022, Rudraksha Gupta <guptarud@...il.com> wrote:
> Hi all,
>
>
> I am getting this warning when compiling the kernel for the MSM8960 with 
> this defconfig: 
> https://raw.githubusercontent.com/apq8064-mainline/linux/qcom-apq8064-next/arch/arm/configs/qcom_apq8064_defconfig
>
>
> Warning:
>
> ../drivers/gpu/drm/dp/drm_dp.c: In function 
> 'drm_dp_get_adjust_request_post_cursor':
> ../drivers/gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is 
> outside array bounds of 'const u8[6]' {aka 'const unsigned char[6]'} 
> [-Warray-bounds]
>     59 |         return link_status[r - DP_LANE0_1_STATUS];
>        |                ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/gpu/drm/dp/drm_dp.c:210:51: note: while referencing 'link_status'
>    210 | u8 drm_dp_get_adjust_request_post_cursor(const u8 
> link_status[DP_LINK_STATUS_SIZE],
>        | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

Please see https://lore.kernel.org/r/20220225035610.2552144-3-keescook@chromium.org

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Graphics Center

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ