* Re: [PATCH] wifi: ath10k: add extra output check in ath10k_wmi_event_debug_print() [not found] <20250110115024.1497597-1-dmantipov@yandex.ru> @ 2025-01-10 12:28 ` Kalle Valo 0 siblings, 0 replies; only message in thread From: Kalle Valo @ 2025-01-10 12:28 UTC (permalink / raw) To: Dmitry Antipov Cc: Jeff Johnson, linux-wireless, lvc-project, Fedor Pchelkin, ath10k Dmitry Antipov <dmantipov@yandex.ru> writes: > In 'ath10k_wmi_event_debug_print()', passing skb of the very weird > layout may produce debug output of the zero length. In such a case, > 'if (skb->data[i - 1] == '\n')' will trigger an access beyond skb data > boundaries. So fix this by adding an extra check whether at least one > byte of the debug output was really emitted. Compile tested only. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Suggested-by: Fedor Pchelkin <pchelkin@ispras.ru> > Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Adding ath10k list. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches ^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-10 12:28 UTC | newest] Thread overview: (only message) (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20250110115024.1497597-1-dmantipov@yandex.ru> 2025-01-10 12:28 ` [PATCH] wifi: ath10k: add extra output check in ath10k_wmi_event_debug_print() Kalle Valo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).