Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH] netdev: zero out diagnostic info
Date: Wed, 28 Apr 2021 11:24:35 -0500	[thread overview]
Message-ID: <ff2c412d-fa5d-45cc-bb3d-d97c147af67a@gmail.com> (raw)
In-Reply-To: <20210428162113.141720-1-prestwoj@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]

Hi James,

On 4/28/21 11:21 AM, James Prestwood wrote:
> The info struct is on the stack which leads to the potential
> for uninitialized data access. Zero out the info struct prior
> to calling the get station callback:
> 
> ==141137== Conditional jump or move depends on uninitialised value(s)
> ==141137==    at 0x458A6F: diagnostic_info_to_dict (diagnostic.c:109)
> ==141137==    by 0x41200B: station_get_diagnostic_cb (station.c:3620)
> ==141137==    by 0x405BE1: netdev_get_station_cb (netdev.c:4783)
> ==141137==    by 0x4722F9: process_unicast (genl.c:994)
> ==141137==    by 0x4722F9: received_data (genl.c:1102)
> ==141137==    by 0x46F28B: io_callback (io.c:120)
> ==141137==    by 0x46E5AC: l_main_iterate (main.c:478)
> ==141137==    by 0x46E65B: l_main_run (main.c:525)
> ==141137==    by 0x46E65B: l_main_run (main.c:507)
> ==141137==    by 0x46E86B: l_main_run_with_signal (main.c:647)
> ==141137==    by 0x403EA8: main (main.c:490)
> ---
>   src/netdev.c | 2 ++
>   1 file changed, 2 insertions(+)
> 

Applied, thanks.

Regards,
-Denis

      reply	other threads:[~2021-04-28 16:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28 16:21 [PATCH] netdev: zero out diagnostic info James Prestwood
2021-04-28 16:24 ` Denis Kenzior [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ff2c412d-fa5d-45cc-bb3d-d97c147af67a@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox