public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: James Prestwood <prestwoj@gmail.com>, iwd@lists.linux.dev
Cc: Daniel Bond <danielbondno@gmail.com>
Subject: Re: [PATCH v2 1/2] scan: don't survey on external scans
Date: Fri, 6 Sep 2024 14:01:00 -0500	[thread overview]
Message-ID: <4a5d7ca4-bd66-4f7d-8d2f-db7d86514d8a@gmail.com> (raw)
In-Reply-To: <20240905152658.380237-1-prestwoj@gmail.com>

Hi James,

On 9/5/24 10:26 AM, James Prestwood wrote:
> Since surveys end up making driver calls in the kernel its not
> entirely known how they are implemented or how long they will
> take. For this reason the survey will be skipped if getting the
> results from an external scan.
> 
> Doing this also fixes a crash caused by external scans where the
> scan request pointer is not checked and dereferenced:
> 
> 0x00005ffa6a0376de in get_survey_done (user_data=0x5ffa783a3f90) at src/scan.c:2059
> 0x0000749646a29bbd in ?? () from /usr/lib/libell.so.0
> 0x0000749646a243cb in ?? () from /usr/lib/libell.so.0
> 0x0000749646a24655 in l_main_iterate () from /usr/lib/libell.so.0
> 0x0000749646a24ace in l_main_run () from /usr/lib/libell.so.0
> 0x0000749646a263a4 in l_main_run_with_signal () from /usr/lib/libell.so.0
> 0x00005ffa6a00d642 in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:614
> 
> Reported-by: Daniel Bond <danielbondno@gmail.com>
> ---
>   src/scan.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
> 
> v2:
>   * Disabled scan surveys rather than allowing a NULL scan request
> 

Both applied, thanks.

Regards,
-Denis


      parent reply	other threads:[~2024-09-06 19:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-05 15:26 [PATCH v2 1/2] scan: don't survey on external scans James Prestwood
2024-09-05 15:26 ` [PATCH v2 2/2] scan: check pending requests after regdom update James Prestwood
2024-09-06 19:01 ` 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=4a5d7ca4-bd66-4f7d-8d2f-db7d86514d8a@gmail.com \
    --to=denkenz@gmail.com \
    --cc=danielbondno@gmail.com \
    --cc=iwd@lists.linux.dev \
    --cc=prestwoj@gmail.com \
    /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