From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796321604; b=ZcRGeIizuCGgjgxSZfxmN+jk8NMHX5ge7J7Nc0qe9GRvHOVb3+nx3z+RO9mrUFa/bNV0 BG7OPnnMBo/M9xvVqCIx2fEHkTFhfK8fPDS5lLJitcbo5s7wbT0SYVGdPzh66dMLHW4NY ylZhVt7x7tweB8ohEU9EggC76Ypqo8IC58l3RAXw+JpwremMURZmDrPR+LvlkRSLkekh1 62hrDsHRAYhylgvjmwDwGVDnJOihZ3rpEj09Mt4TkWnhftjuenRzIgjm1bvBW2ZeOt0q9 BSy6sMXfjk4HroBWS0BnfMeoKXXFPcyr3sZlEl56tuzViez4af5p+uC716lrvo42Wyg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796321604; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: MIME-Version:Content-Type:Content-Disposition; bh=bV1iYkZlO70Zprlrqu7ohv67lxs8t8c4Tmp8oEDEBA8=; b=5HpNdjFj3eYCp/f/VIgjHgp0JFa7nC2foag27lonzBLlrLorOspEgsfO/5akvMLtcC75 m7gcUc3J6huiCiOUCpbr+hGDS2MJe0tC1eia99SVs4ZnvXm3OLiR/zyzw8zNgRyi72zSU oG+mMkid/2Kt4ArFW0d1BJCnEn6hmM5MDs8tqDCCNTLxopp4lpNggMJRxh2o8N8LGTY1r JI+wu/0FEpRsycfuGj2m55aK8uCaah3wvVHSZv+Qinb7weeuqv9CofmiShe8S/WM+xyKg 1sUDatlUqlGe/zDGFKNAsPu90VbKzLj38YI513IDqy87s4k2Iy1rgWRwleROttLK3qw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lryqzEBE; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DF1B606A322; Thu, 3 Dec 2026 18:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lryqzEBE Received: by smtp.kernel.org (Postfix) with ESMTPSA id 031391F000C1; Thu, 3 Dec 2026 18:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796321604; bh=bV1iYkZlO70Zprlrqu7ohv67lxs8t8c4Tmp8oEDEBA8=; h=Date:From:To:Cc:Subject; b=lryqzEBE7pi9Gc9XyGfLIAiDxuthAPZqMkq9m5Xutj+jCtkAokqNzw6uNxvUNx1jU 0F20HU9ipa5QFiDjyhvFTOjS60H7uI4D141jk3SgwB0Ex1DlsLEVBcHKD4i2wFhIne 1EllSFcZ1Tcxg1VkBaXGgLzWrFEtXWKgwGc7h2e88Ufe0ZnOZ92mwZhVK4v9GWOrO9 wVxnF4FxHuGn/fTrZqB+eqX2STz0RRQMKFQO/Cd/r2QO/FjOoZlAg74fWrtbqT3xs0 iWXTa+fx3wpJit8zCG9UsRV+TR0KS2AZYDcVdC8sIPcCglNY7zqo9s/HAbBbUYl0kc HDol49B2z1D4A== Date: Thu, 3 Dec 2026 18:13:20 +0000 From: Mark Brown To: "Michael S. Tsirkin" Cc: Kees Cook , Kees Cook , Linux Kernel Mailing List , Linux Next Mailing List , Tao Cui Subject: linux-next: manual merge of the vhost tree with the origin tree Message-ID: X-Mailing-List: linux-next@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="p4QtljjBXL0c85Pp" Content-Disposition: inline --p4QtljjBXL0c85Pp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the vhost tree got a conflict in: drivers/vhost/vhost.c between commit: 0af298e62e5cf ("treewide: refresh kmalloc_obj() conversions") =66rom the origin tree and commit: d0795719d43ea ("vhost: account the per-device kernel allocations to memcg= ") =66rom the vhost tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. diff --combined drivers/vhost/vhost.c index 241a2e2a6e248,662db163d4a95..0000000000000 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@@ -526,10 -526,14 +526,14 @@@ static long vhost_dev_alloc_iovecs(stru =20 for (i =3D 0; i < dev->nvqs; ++i) { vq =3D dev->vqs[i]; - vq->indirect =3D kmalloc_objs(*vq->indirect, UIO_MAXIOV); - vq->log =3D kmalloc_objs(*vq->log, dev->iov_limit); - vq->heads =3D kmalloc_objs(*vq->heads, dev->iov_limit); - vq->nheads =3D kmalloc_objs(*vq->nheads, dev->iov_limit); + vq->indirect =3D kmalloc_objs(*vq->indirect, UIO_MAXIOV, + GFP_KERNEL_ACCOUNT); + vq->log =3D kmalloc_objs(*vq->log, dev->iov_limit, + GFP_KERNEL_ACCOUNT); + vq->heads =3D kmalloc_objs(*vq->heads, dev->iov_limit, + GFP_KERNEL_ACCOUNT); + vq->nheads =3D kmalloc_array(dev->iov_limit, sizeof(*vq->nheads), + GFP_KERNEL_ACCOUNT); if (!vq->indirect || !vq->log || !vq->heads || !vq->nheads) goto err_nomem; } @@@ -2052,7 -2056,8 +2056,8 @@@ static long vhost_set_memory(struct vho return -E2BIG; if (max_iotlb_entries <=3D 0) return -EINVAL; - newmem =3D kvzalloc_flex(*newmem, regions, mem.nregions); + newmem =3D kvzalloc_flex(*newmem, regions, mem.nregions, + GFP_KERNEL_ACCOUNT); if (!newmem) return -ENOMEM; =20 @@@ -3423,7 -3428,7 +3428,7 @@@ EXPORT_SYMBOL_GPL(vhost_disable_notify) struct vhost_msg_node *vhost_new_msg(struct vhost_virtqueue *vq, int type) { /* Make sure all padding within the structure is initialized. */ - struct vhost_msg_node *node =3D kzalloc_obj(*node); + struct vhost_msg_node *node =3D kzalloc_obj(*node, GFP_KERNEL_ACCOUNT); if (!node) return NULL; =20 --p4QtljjBXL0c85Pp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmsRsT8ACgkQJNaLcl1U h9DwSgf+N3gOJEYM7NULtu4IZsbrcrv25QvlxwXeLszZtW5M2Thx7LTXxxdgKlkZ FdUkqdqYad3U9vZrOtbs+caOtQfgli4vygNnd6o4hVns3sIykZDnK96Ui5CdT5Er y0HsuZEndeu2eQxIL080S68D5dh4QyAwDFea7GCJRpf2w8iljjpsvYPI2twK2eHf d3qQvsH8PVhbjzlCt+I6eAVdDSdzQ6l/631+673rVstT3O8RITY+egJ4ShLZYz5+ BYCmM+ZEZahZCOOe7fGRAL7ED+BBoS55r9UYirFiDZzWBe3bG795M133hqlOaW2x SPZoLQtYv0oXW5k0dgbKbIswrAm3uA== =jiTZ -----END PGP SIGNATURE----- --p4QtljjBXL0c85Pp--