Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Birger Koblitz" <mail@birger-koblitz.de>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: usb: aqc111: Fix rx/tx_fixup issues
Date: Tue, 24 Nov 2026 17:24:07 +0000	[thread overview]
Message-ID: <sashiko-outbox-231700@kernel.org> (raw)
In-Reply-To: <20261124-aqc111-v3-1-10f2c124d808@birger-koblitz.de>

> The MAC supported by the aqc111 driver is very similar
> to the AX88179A. During the development of the driver for
> the AX88179A, the following issues in endianness, respectively
> alignment-handling were found, which are also present in the aqc111 driver:
>  CHECK   drivers/net/usb/aqc111.c
> drivers/net/usb/aqc111.c:1094:34: warning: incorrect type in argument 1 (different base types)
> drivers/net/usb/aqc111.c:1094:34:    expected restricted __le64 const [usertype] *p
> drivers/net/usb/aqc111.c:1094:34:    got unsigned long long [usertype] *
> drivers/net/usb/aqc111.c:1122:45: warning: incorrect type in argument 1 (different base types)
> drivers/net/usb/aqc111.c:1122:45:    expected restricted __le64 const [usertype] *p
> drivers/net/usb/aqc111.c:1122:45:    got unsigned long long [usertype] *[assigned] pkt_desc_ptr
> drivers/net/usb/aqc111.c:1235:22: warning: incorrect type in assignment (different base types)
> drivers/net/usb/aqc111.c:1235:22:    expected unsigned long long [usertype]
> drivers/net/usb/aqc111.c:1235:22:    got restricted __le64 [usertype]
> 
> While sparse complains about lack of the use of __le64, these spots also
> incorrectly handle alignment. Fix these problems by introducing __le64
> where necessary and additionally make use of get_unaligned_le64/
> put_unalignged_le64().
> 
> The current code also incorrectly modifies the skb buffer without checking
> it was cloned, possibly corrupting a shared buffer. This issue is also
> fixed.
> 
> Finally, also introduce a minimum lengthe check for packets as the packet
> length is received via a USB transfer and may be incorrect.
> 
> Fixes: 361459cd9642 ("net: usb: aqc111: Implement RX data path")
> Fixes: 4a3576d2bcc7 ("net: usb: aqc111: Implement TX data path")
> Signed-off-by: Birger Koblitz <mail@birger-koblitz.de>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-aqc111-v3-1-10f2c124d808@birger-koblitz.de?part=1

      parent reply	other threads:[~2026-11-24 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 17:14 [PATCH net-next v3] net: usb: aqc111: Fix rx/tx_fixup issues Birger Koblitz
2026-11-24 17:18 ` netdev-bot+sinfo
2026-11-24 17:24 ` sashiko-bot [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=sashiko-outbox-231700@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mail@birger-koblitz.de \
    --cc=sashiko-reviews@lists.linux.dev \
    /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