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] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72=sKCpVuAOeXGT80xkCUL-Ve-my_=Fefzp0HmmLER2D4w@mail.gmail.com>
Date:   Wed, 24 Nov 2021 12:01:51 +0100
From:   Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To:     Luiz Sampaio <sampaio.ime@...il.com>
Cc:     Miguel Ojeda <ojeda@...nel.org>,
        linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 2/2] auxdisplay: charlcd: checking for pointer
 reference before dereferencing

On Tue, Nov 9, 2021 at 11:07 PM Luiz Sampaio <sampaio.ime@...il.com> wrote:
>
> Check if the pointer lcd->ops->init_display exists before dereferencing it.
> If a driver called charlcd_init() without defining the ops, this would
> return segmentation fault, as happened to me when implementing a charlcd
> driver.  Checking the pointer before dereferencing protects from
> segmentation fault.
>
> Signed-off-by: Luiz Sampaio <sampaio.ime@...il.com>

Queued up, thanks!

Cheers,
Miguel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ