> 2026年12月2日 17:48,netd…@kernel.org 写道:
>
> Hi!
>
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
>
> - Whether the issue was actually triggered, or is only theoretical
> (e.g. found by LLM and not proven at runtime). If it was triggered
> please include the symptoms, like the stack trace or kernel messages.
>
> - What hardware the change was tested on. For driver fixes please
> mention the device (and if relevant firmware version) used for
> testing, or say that the change was not tested on real hardware.
It was found by the Sashiko LLM review of the net-next
statistics series this fix was originally part of, by reading the code.
The evidence behind it is:
- Commit 694de316f607 ("net: libwx: fix VF illegal register access")
reports that reading WX_CFG_PORT_ST from a VF causes an illegal
register access and hangs the system. That commit put the read behind
pci_dev::is_virtfn, which is only set in pci_iov_scan_device(), so the
read is still reached by a VF that a guest enumerated itself.
- pci_dev::is_virtfn being clear in a guest is documented behaviour, not
a PCI core bug (see the comment above genwqe_is_privileged() in
drivers/misc/genwqe/card_base.h). ngbevf and txgbevf are separate
modules with their own device IDs, so they know at probe time that
they are VFs, while every role check in libwx used is_virtfn and took
the PF branch in a guest. The five affected paths are listed in the
commit message.
I just test the fix patch, for make C=1 W=1 and load in host os.
>
> Please do not repost the series just to address the above. Instead,
> reply to this email with the missing information, so that reviewers
> can take it into account.
>
> *IMPORTANT*: If you do repost (for other reasons) - please include
> the relevant info in the cover letter or commit messages.
> --
> The evaluation is done by an LLM so it may be wrong, if you think
> that is the case please reply and explain.