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-next>] [day] [month] [year] [list]
Date:   Mon, 7 Aug 2017 14:50:49 +0800
From:   Kai-Heng Feng <kai.heng.feng@...onical.com>
To:     LKML <linux-kernel@...r.kernel.org>
Cc:     andreas.noever@...il.com, michael.jamet@...el.com,
        yehezkel.bernat@...el.com,
        Kai-Heng Feng <kai.heng.feng@...onical.com>,
        mika.westerberg@...ux.intel.com
Subject: Re: [PATCH] thunderbolt: icm: Remove Apple check for Alpine Ridge

On Mon, Aug 7, 2017 at 12:49 PM, Kai-Heng Feng
<kai.heng.feng@...onical.com> wrote:
> In icm_ar_is_supported(), icm->upstream_port will be uninitialized if
> the hardware is not an Apple one.
>
> The uninitialized icm->upstream_port will later be dereferenced in
> pcie2cio_write(), causes a NULL pointer dereference issue.
>
> Commit f67cf491175a ("thunderbolt: Add support for Internal Connection
> Manager (ICM)") states that all Alpine Ridge will use ICM, so I guess
> it's safe to remove the Apple check.
>
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@...onical.com>
> ---
>  drivers/thunderbolt/icm.c | 7 -------
>  1 file changed, 7 deletions(-)
>
> diff --git a/drivers/thunderbolt/icm.c b/drivers/thunderbolt/icm.c
> index bdaac1ff00a5..2ab25aac5446 100644
> --- a/drivers/thunderbolt/icm.c
> +++ b/drivers/thunderbolt/icm.c
> @@ -514,13 +514,6 @@ static bool icm_ar_is_supported(struct tb *tb)
>         struct icm *icm = tb_priv(tb);
>
>         /*
> -        * Starting from Alpine Ridge we can use ICM on Apple machines
> -        * as well. We just need to reset and re-enable it first.
> -        */
> -       if (!is_apple())
> -               return true;
> -
> -       /*
>          * Find the upstream PCIe port in case we need to do reset
>          * through its vendor specific registers.
>          */
> --
> 2.13.4
>

Forgot to CC LKML...

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ