Skip to content

downstream: rebase devel onto v11.1.0 - #39

Merged
zevorn merged 0 commit into
develfrom
codex/rebase-devel-onto-v11.1.0-20260902
Sep 2, 2026
Merged

downstream: rebase devel onto v11.1.0#39
zevorn merged 0 commit into
develfrom
codex/rebase-devel-onto-v11.1.0-20260902

Conversation

@zevorn

@zevorn zevorn commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

This PR is for CI validation only. If all CI checks pass, the rebased branch will be force-pushed to devel.

Summary

  • Rebase the downstream devel series onto the v11.1.0 tag.
  • Normalize six commit messages to QEMU subsystem: summary style.
  • Drop the redundant 9p xattr payload patch because the tag already contains the equivalent 1 KiB limit.

Validation

  • git diff --check
  • All 447 rebased commits retain a Signed-off-by trailer.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T05:28:24.158922Z ea9a059 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3af133e49e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread hw/usb/dev-rtl8152.c
Comment on lines +272 to +274
for (unsigned int i = 0; i < size; i++) {
if (byen & (1u << ((addr + i) & 3))) {
space[i] = data[i];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reject register transfers that cross the register bank

When a guest sends an RTL8152 vendor SET_REGS request whose translated register offset is near 0xffff, this loop writes all guest-controlled wLength bytes without checking the remaining bank size. For example, after selecting OCP base 0xf000, an access at 0xbfff translates to the last byte of rtl_ocp, so a length of 2 already writes beyond the device object; USB permits lengths up to the 4096-byte control buffer. The analogous unchecked memcpy() in rtl8152_reg_read() can disclose out-of-bounds host memory, so both paths should reject transfers whose translated offset plus length exceeds the selected 64-KiB bank.

Useful? React with 👍 / 👎.

@zevorn
zevorn force-pushed the codex/rebase-devel-onto-v11.1.0-20260902 branch from 3af133e to ea9a059 Compare September 2, 2026 05:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea9a059155

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread hw/usb/dev-rtl8152.c

usb_packet_copy(p, &s->in_buf[s->in_ptr], len);
s->in_ptr += len;
if (s->in_ptr >= s->in_len && ((s->in_len & (64 - 1)) || !len)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the negotiated bulk packet size when deciding on a ZLP

When the device negotiates high speed, bulk endpoint 1 has a 512-byte maximum packet size, but this condition still treats every multiple of 64 as requiring a terminating zero-length packet. For example, a 100-byte Ethernet frame produces a 128-byte RX record; that is already a short high-speed packet, yet the buffer remains occupied and the next host URB receives a spurious ZLP before queued traffic is flushed. Base this decision on the active endpoint's maximum packet size rather than the full-speed constant.

Useful? React with 👍 / 👎.

@zevorn
zevorn merged commit ea9a059 into devel Sep 2, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant