Skip to contentSkip to conversation

ppc-for-11.2-rc2 queue

GIT PULL Applied Harsh Prateek Bora 3 participants 10 messages Nov 19 – Nov 20

lore
Share & tools
lore
#0 lore raw

The following changes since commit 08c9bbb825148dec9669f5184ecf18823bb6d631:

Update version for v11.2.0-rc1 release (2026-11-18 12:57:24 -0800)

are available in the Git repository at:

https://gitlab.com/harshpb/qemu.git tags/pull-ppc-for-11.2-rc2-20261119

for you to fetch changes up to 8f2e232b9c6a0610564a1aed9ee92214ab76d5c1:

MAINTAINERS: Change XIVE status to Maintained, adding self as co-maintainer (2026-11-19 16:34:47 +0530)

----------------------------------------------------------------
ppc queue for 11.2 -rc2
* Fix for CVE-2026-132127
* MAINTAINERS updates:
- Odd Fixes -> Maintained (PPC TCG, PPC KVM, sPAPR, PowerNV, XIVE)
- R: -> M: (Amit for PPC KVM, Gautam for XIVE)

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEa4EM1tK+EPOIPSFCRUTplPnWj7sFAmr+2JIACgkQRUTplPnW j7tofRAAh+MyE9vYyn0DxCrSH3SLQfpC8s3ntf+PEtNMHeq9zmpmgSroB+pdMpVY kaOQaKW1tcrYTkSQP4C51hv4GIOmwng7b/IRnSdzqnil+i5nnEKiuHXUwZd86nCX lJ/hv1rFjHa8HzhE1OQAxbFkofJlTNbr2oD+GkgE6OkjjseWrFe/zXU35f06doUj WoOg54HD8AAANj53jSbe5JmYeFPGUK/lTcoXnBv1pLLLh6cLiqrqGa9yk8szwjRZ FpH/DgSqb+nGwu3mmKmiJDbOx2Eb4mDB8BgmERRGe0DSOQcZ9tO2/yiRGRBJjjZX fjChiZ8/aqaPyMgc1YwiFvTDRoj2FZKhWe1Ki+pzVFxZYLHP4hNcf7se8nqIo9jR P8xQPCoBiJwxqbsv3GiKfjGtmzLQF8a3nFUUSCObtdhK9XAhlUPPcDIpKssvDIJs sNXwfWsCcZh2opeMhB6tNRL/OZxUEEO+kgwFP/BvC3yR5XyeimciR/rqKl+5FYfF KIYqhev/+3KUrkgUAXzLSsc/Do8yP4tBSjnRFUsP1bWLfXocq19uTe1UN12UOmSi OgbXDvpcwb0ulpGKj+lX+mOejzv7WpElRHHz5arv5cWj3sYZTnVUBg9d53J+854Q 1IjAFBNI0eY1qZkrt6DtkvX4XxILiN5HfKGiZX8hrWO7+a9uJ6c= =HTQE
-----END PGP SIGNATURE-----

----------------------------------------------------------------
Aditya Gupta (1):
MAINTAINERS: Mark PowerNV as Maintained

Amit Machhiwal (2):
MAINTAINERS: Step up as maintainer for PPC KVM CPUs
MAINTAINERS: update sPAPR status to Maintained

Chinmay Rath (2):
hw/scsi: validate IU buffer bounds in vscsi_preprocess_desc()
MAINTAINERS: Mark PPC TCG CPUs as Maintained

Gautam Menghani (1):
MAINTAINERS: Change XIVE status to Maintained, adding self as co-maintainer

 MAINTAINERS           | 14 +++++++-------
 hw/scsi/spapr_vscsi.c | 43 ++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 45 insertions(+), 12 deletions(-)
#1 lore raw

[PULL 2/6] MAINTAINERS: Mark PPC TCG CPUs as Maintained

From: Chinmay Rath <[email protected]>

Update the status of PowerPC TCG CPUs from "Odd Fixes" to "Maintained" to reflect their active maintenance.

---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index 15942aaba3..dcfdecedcf 100644
@@ -348,7 +348,7 @@ M: Nicholas Piggin <[email protected]>
 R: Glenn Miles <[email protected]>
 R: Harsh Prateek Bora <[email protected]>
 L: [email protected]
-S: Odd Fixes
+S: Maintained
 F: target/ppc/
 F: hw/ppc/ppc.c
 F: hw/ppc/ppc_booke.c
Signature · 1 line
2.52.0
#2 lore raw

[PULL 6/6] MAINTAINERS: Change XIVE status to Maintained, adding self as co-maintainer

In reply to Harsh Prateek Bora

From: Gautam Menghani <[email protected]>

Add self as XIVE co-maintainer and also update XIVE's status to 'Maintained' to reflect the actual status.

---
 MAINTAINERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
index 05fe7d9fab..3a9b4d34a0 100644
@@ -3079,9 +3079,9 @@ F: tests/qtest/fw_cfg-test.c
 
 XIVE
 M: Glenn Miles <[email protected]>
-R: Gautam Menghani <[email protected]>
+M: Gautam Menghani <[email protected]>
 L: [email protected]
-S: Odd Fixes
+S: Maintained
 F: hw/*/*xive*
 F: include/hw/*/*xive*
 F: tests/qtest/*xive*
Signature · 1 line
2.52.0
#3 lore raw

[PULL 5/6] MAINTAINERS: Mark PowerNV as Maintained

In reply to Harsh Prateek Bora

From: Aditya Gupta <[email protected]>

Change the status of PowerNV to Maintained, to reflect it is actively maintained

---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index 08d6f76e31..05fe7d9fab 100644
@@ -1712,7 +1712,7 @@ M: Aditya Gupta <[email protected]>
 R: Glenn Miles <[email protected]>
 R: Harsh Prateek Bora <[email protected]>
 L: [email protected]
-S: Odd Fixes
+S: Maintained
 F: docs/system/ppc/powernv.rst
 F: hw/ppc/pnv*
 F: hw/intc/pnv*
Signature · 1 line
2.52.0
#4 lore raw

[PULL 3/6] MAINTAINERS: Step up as maintainer for PPC KVM CPUs

In reply to Harsh Prateek Bora

From: Amit Machhiwal <[email protected]>

Update entry for PPC KVM CPUs: move from Reviewer (R:) to Maintainer (M:) and reflect the improved coverage by changing status from "Odd Fixes" to "Maintained".

---
 MAINTAINERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
index dcfdecedcf..0492190107 100644
@@ -515,9 +515,9 @@ F: tests/functional/aarch64/test_kvm.py
 
 PPC KVM CPUs
 M: Nicholas Piggin <[email protected]>
+M: Amit Machhiwal <[email protected]>
 R: Harsh Prateek Bora <[email protected]>
-R: Amit Machhiwal <[email protected]>
-S: Odd Fixes
+S: Maintained
 F: target/ppc/kvm.c
 
 S390 KVM CPUs
Signature · 1 line
2.52.0
#5 lore raw

Re: [PULL 3/6] MAINTAINERS: Step up as maintainer for PPC KVM CPUs

Quoted 9 lines · Harsh Prateek Bora

From: Amit Machhiwal <[email protected]>

Update entry for PPC KVM CPUs: move from Reviewer (R:) to Maintainer (M:) and reflect the improved coverage by changing status from "Odd Fixes" to "Maintained".

Link:
https://lore.kernel.org/qemu-devel/[email protected]

You should check your tooling as these should be Message-id: tags.

Quoted 21 lines
---
 MAINTAINERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
index dcfdecedcf..0492190107 100644
@@ -515,9 +515,9 @@ F: tests/functional/aarch64/test_kvm.py
 
 PPC KVM CPUs
 M: Nicholas Piggin <[email protected]>
+M: Amit Machhiwal <[email protected]>
 R: Harsh Prateek Bora <[email protected]>
-R: Amit Machhiwal <[email protected]>
-S: Odd Fixes
+S: Maintained
 F: target/ppc/kvm.c
 
 S390 KVM CPUs
Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#6 lore raw

Re: [PULL 3/6] MAINTAINERS: Step up as maintainer for PPC KVM CPUs

Quoted 8 lines · Alex Bennée
Quoted 6 lines · Harsh Prateek Bora

From: Amit Machhiwal <[email protected]>

Update entry for PPC KVM CPUs: move from Reviewer (R:) to Maintainer (M:) and reflect the improved coverage by changing status from "Odd Fixes" to "Maintained".

Quoted 5 lines
Quoted 3 lines

Link:
https://lore.kernel.org/qemu-devel/[email protected]

You should check your tooling as these should be Message-id: tags.

I see. I should take care of that going ahead. Thanks!

regards,
Harsh

Quoted 23 lines
Quoted 22 lines
---
  MAINTAINERS | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
index dcfdecedcf..0492190107 100644
@@ -515,9 +515,9 @@ F: tests/functional/aarch64/test_kvm.py
 
  PPC KVM CPUs
  M: Nicholas Piggin <[email protected]>
+M: Amit Machhiwal <[email protected]>
  R: Harsh Prateek Bora <[email protected]>
-R: Amit Machhiwal <[email protected]>
-S: Odd Fixes
+S: Maintained
  F: target/ppc/kvm.c
 
  S390 KVM CPUs
#7 lore raw

[PULL 4/6] MAINTAINERS: update sPAPR status to Maintained

In reply to Harsh Prateek Bora

From: Amit Machhiwal <[email protected]>

Change the status of the sPAPR subsection from "Odd Fixes" to "Maintained" to reflect active maintenance.

---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index 0492190107..08d6f76e31 100644
@@ -1687,7 +1687,7 @@ M: Nicholas Piggin <[email protected]>
 M: Harsh Prateek Bora <[email protected]>
 R: Amit Machhiwal <[email protected]>
 L: [email protected]
-S: Odd Fixes
+S: Maintained
 F: hw/*/spapr*
 F: include/hw/*/spapr*
 F: hw/*/xics*
Signature · 1 line
2.52.0
#8 lore raw

[PULL 1/6] hw/scsi: validate IU buffer bounds in vscsi_preprocess_desc()

In reply to Harsh Prateek Bora

From: Chinmay Rath <[email protected]>

cdb_offset and local_desc values are dependent on the guest. If the value is large enough, it can lead to an out-of-bounds read in vscsi_fetch_desc().

Add an 'avail' constant in vscsi_preprocess_desc() representing the number of bytes available in srp_cmd.add_data[] and use it to prevent out-of-bound reads.

Make all callers of vscsi_preprocess_desc() check its return value and handle failure accordingly.

---
 hw/scsi/spapr_vscsi.c | 43 ++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 38 insertions(+), 5 deletions(-)
hw/scsi/spapr_vscsi.c +38 -5
index eedae00273..1283590844 100644
@@ -484,6 +484,8 @@ static int data_out_desc_size(struct srp_cmd *cmd)
 static int vscsi_preprocess_desc(vscsi_req *req)
 {
     struct srp_cmd *cmd = &req_iu(req)->srp.cmd;
+    /* bytes available for descriptors behind srp_cmd.add_data */
+    const unsigned avail = SRP_MAX_IU_LEN - offsetof(struct srp_cmd, add_data);
 
     req->cdb_offset = cmd->add_cdb_len & ~3;
 
@@ -498,16 +500,35 @@ static int vscsi_preprocess_desc(vscsi_req *req)
     case SRP_NO_DATA_DESC:
         break;
     case SRP_DATA_DESC_DIRECT:
+        if (req->cdb_offset + sizeof(struct srp_direct_buf) > avail) {
+            fprintf(stderr,
+                    "vscsi_preprocess_desc: direct desc out of bounds\n");
+            return -1;
+        }
         req->total_desc = req->local_desc = 1;
         break;
     case SRP_DATA_DESC_INDIRECT: {
-        struct srp_indirect_buf *ind_tmp = (struct srp_indirect_buf *)
-                (cmd->add_data + req->cdb_offset);
+        struct srp_indirect_buf *ind_tmp;
+
+        if (req->cdb_offset + sizeof(struct srp_indirect_buf) > avail) {
+            fprintf(stderr,
+                    "vscsi_preprocess_desc: indirect desc out of bounds\n");
+            return -1;
+        }
+        ind_tmp = (struct srp_indirect_buf *)(cmd->add_data + req->cdb_offset);
 
         req->total_desc = be32_to_cpu(ind_tmp->table_desc.len) /
                           sizeof(struct srp_direct_buf);
         req->local_desc = req->writing ? cmd->data_out_desc_cnt :
                           cmd->data_in_desc_cnt;
+
+        /* desc_list[] entries must also fit inside the IU buffer */
+        if (req->local_desc * sizeof(struct srp_direct_buf) >
+            avail - req->cdb_offset - sizeof(struct srp_indirect_buf)) {
+            fprintf(stderr,
+                    "vscsi_preprocess_desc: local_desc out of bounds\n");
+            return -1;
+        }
         break;
     }
     default:
@@ -725,7 +746,11 @@ static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req)
     memcpy(&resp_data[8], "QEMU    ", 8);
 
     req->writing = 0;
-    vscsi_preprocess_desc(req);
+    if (vscsi_preprocess_desc(req) < 0) {
+        vscsi_makeup_sense(s, req, HARDWARE_ERROR, 0, 0);
+        vscsi_send_rsp(s, req, CHECK_CONDITION, 0, 0);
+        return;
+    }
     rc = vscsi_srp_transfer_data(s, req, 0, resp_data, len);
     if (rc < 0) {
         vscsi_makeup_sense(s, req, HARDWARE_ERROR, 0, 0);
@@ -775,7 +800,12 @@ static void vscsi_report_luns(VSCSIState *s, vscsi_req *req)
         i += 8;
     }
 
-    vscsi_preprocess_desc(req);
+    if (vscsi_preprocess_desc(req) < 0) {
+        g_free(resp_data);
+        vscsi_makeup_sense(s, req, HARDWARE_ERROR, 0, 0);
+        vscsi_send_rsp(s, req, CHECK_CONDITION, 0, 0);
+        return;
+    }
     rc = vscsi_srp_transfer_data(s, req, 0, resp_data, len);
     g_free(resp_data);
     if (rc < 0) {
@@ -823,7 +853,10 @@ static int vscsi_queue_cmd(VSCSIState *s, vscsi_req *req)
         req->writing = (n < 1);
 
         /* Preprocess RDMA descriptors */
-        vscsi_preprocess_desc(req);
+        if (vscsi_preprocess_desc(req) < 0) {
+            scsi_req_cancel(req->sreq);
+            return 1;
+        }
 
         /* Get transfer direction and initiate transfer */
         if (n > 0) {
Signature · 1 line
2.52.0
#9 lore raw
In reply to Harsh Prateek Bora
Quoted 10 lines · Harsh Prateek Bora

The following changes since commit 08c9bbb825148dec9669f5184ecf18823bb6d631:

   Update version for v11.2.0-rc1 release (2026-11-18 12:57:24 -0800)

are available in the Git repository at:

   https://gitlab.com/harshpb/qemu.git tags/pull-ppc-for-11.2-rc2-20261119

for you to fetch changes up to 8f2e232b9c6a0610564a1aed9ee92214ab76d5c1:

Quoted 8 lines

MAINTAINERS: Change XIVE status to Maintained, adding self as co-maintainer (2026-11-19 16:34:47 +0530)

----------------------------------------------------------------
ppc queue for 11.2 -rc2
* Fix for CVE-2026-132127
* MAINTAINERS updates:
- Odd Fixes -> Maintained (PPC TCG, PPC KVM, sPAPR, PowerNV, XIVE)
- R: -> M: (Amit for PPC KVM, Gautam for XIVE)

Applied, thanks.

r~