All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+93cbd5fbb85814306ba1@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] Re: UBSAN: array-index-out-of-bounds in htc_issue_send
Date: Thu, 24 Oct 2024 07:41:29 -0700	[thread overview]
Message-ID: <671a5c99.050a0220.1e4b4d.00ed.GAE@google.com> (raw)
In-Reply-To: <0000000000004e41110614187d35@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.

***

Subject: Re: UBSAN: array-index-out-of-bounds in htc_issue_send
Author: dmantipov@yandex.ru

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next eaed5fc0c322d75cfcdbc7a16c0c5023d9e4f6fe

diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.c b/drivers/net/wireless/ath/ath9k/htc_hst.c
index eb631fd3336d..a5bc0a5dfe7c 100644
--- a/drivers/net/wireless/ath/ath9k/htc_hst.c
+++ b/drivers/net/wireless/ath/ath9k/htc_hst.c
@@ -294,6 +294,9 @@ int htc_connect_service(struct htc_target *target,
  		return -ETIMEDOUT;
  	}

+	if (unlikely(target->conn_rsp_epid == ENDPOINT_UNUSED))
+		return -ENODEV;
+
  	*conn_rsp_epid = target->conn_rsp_epid;
  	return 0;
  err:


  parent reply	other threads:[~2024-10-24 14:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20 14:34 [syzbot] [wireless?] [usb?] UBSAN: array-index-out-of-bounds in htc_issue_send syzbot
2024-03-21  1:15 ` Edward Adam Davis
2024-03-21  1:35   ` syzbot
2024-03-21  1:39 ` Edward Adam Davis
2024-03-21  2:09   ` syzbot
2024-03-21  2:39 ` Edward Adam Davis
2024-03-21  3:10   ` syzbot
2024-03-21  3:18 ` Edward Adam Davis
2024-03-21  5:43   ` syzbot
2024-03-21  7:31 ` [PATCH usb] wifi: ath9k: fix oob " Edward Adam Davis
2024-03-21  7:50   ` Greg KH
2024-03-21  8:29   ` Kalle Valo
2024-03-21 18:52   ` Toke Høiland-Jørgensen
2024-10-24 14:41 ` syzbot [this message]
2024-10-25  5:44 ` [syzbot] Re: UBSAN: array-index-out-of-bounds " syzbot

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=671a5c99.050a0220.1e4b4d.00ed.GAE@google.com \
    --to=syzbot+93cbd5fbb85814306ba1@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzkaller-bugs@googlegroups.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.