All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Xiao Wu <xiaowu.417@qq.com>,
	linux-wireless@vger.kernel.org,
	Christophe Jaillet <christophe.jaillet@wanadoo.fr>,
	Johannes Berg <johannes@sipsolutions.net>,
	"John W. Linville" <linville@tuxdriver.com>
Cc: kernel-janitors@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] wifi: cfg80211: Fix an error handling path in cfg80211_wext_siwscan()
Date: Sat, 27 Jun 2026 13:45:50 +0200	[thread overview]
Message-ID: <147239f2-452a-4100-8341-dc5dd77448eb@web.de> (raw)
In-Reply-To: <tencent_D39C654EBCC3C95DC8C48841701D8D5D2808@qq.com>

…
> The PoC uses pthread barrier synchronization to force both paths through
> the lockless check simultaneously.  It runs on wlan0 created by
> mac80211_hwsim (modprobe mac80211_hwsim radios=2).
> 
> Full PoC (compile with:  gcc -Wall -o poc poc.c -lpthread):

Thanks for your test approach.


…
>      pthread_barrier_init(&barrier_go, NULL, 2);
>      pthread_create(&nt, NULL, nl_thread, NULL);
…

Can there be a need to improve error detection and corresponding exception handling?
https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/posix-pos/pos54-c

Regards,
Markus

      reply	other threads:[~2026-06-27 11:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-20 19:48 [PATCH] wifi: cfg80211: Fix an error handling path in cfg80211_wext_siwscan() Christophe JAILLET
2026-06-22  5:25 ` XIAO WU
2026-06-27 11:45   ` Markus Elfring [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=147239f2-452a-4100-8341-dc5dd77448eb@web.de \
    --to=markus.elfring@web.de \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=johannes@sipsolutions.net \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=xiaowu.417@qq.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.