From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACDAF404BC0 for ; Mon, 20 Jul 2026 12:13:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784549632; cv=none; b=pKqDSkk9iEwd6wfSwTexSYdWipHl0vaLUKI00kJC8cjOwEmnBBp8A0MEc+gzrs/mGF2Nc8yTf9YQ/poutoPQ1HfkEZD2gZVwOMjpAy+upK39rF5EjWHxMn/M2sFXFo/jMVG0TeKyMoP6giHyGXrLxmOU1kIktqIYp0Oi/gxbqjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784549632; c=relaxed/simple; bh=27iJNjGushRg4T4kP5MvuZrgRoVqNDEreiBqVDlA7yk=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=MtkOrbiqnH0LEuqVihw6/77Co5XDmNQFFJ+NhXQFxwYn78phaxf0fOwrT9vd2AfTbkb27ccdkfEKPKPJ3bnIRvVfJU6mQ0U4BXqb4Y/YWFrknzyOsoGSTOAZ1AmySr7SFaLRiP9ae94IB7RfN5xsU+r5ArGaTgQ+Jfzwsz/ZKqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xYmyoUJt; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xYmyoUJt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF1651F00A3A; Mon, 20 Jul 2026 12:13:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784549630; bh=8xCeprsk6cnmcIQvh6wH+iQw3csTiTClw7XhqWhccEE=; h=Subject:To:Cc:From:Date; b=xYmyoUJtK/l1U6fYCMEerTtTPi6MfoKcJA+HkOMlhY3UuGnYvIgIOEQy5+bC1y6Ab Smg2lxyhdJAUeXm2UpEblaXfbVyr+/KnSQv5gEIaREQtZrp8vY1h6RYEIoNpOf2BYR TKlIjBQd64w6bwq8znxly2iBRdjuMJEFHLg8imNE= Subject: FAILED: patch "[PATCH] VDUSE: avoid leaking information to userspace" failed to apply to 6.18-stable tree To: jasowangio@gmail.com,eperezma@redhat.com,jasowang@redhat.com,mst@redhat.com,xieyongji@bytedance.com Cc: From: Date: Mon, 20 Jul 2026 14:13:41 +0200 Message-ID: <2026072041-connected-dole-9dc1@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.18-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y git checkout FETCH_HEAD git cherry-pick -x 9c1523803445ee0348f62b77793266dd981596e0 # git commit -s git send-email --to '' --in-reply-to '2026072041-connected-dole-9dc1@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 9c1523803445ee0348f62b77793266dd981596e0 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Fri, 30 Jan 2026 13:07:50 +0800 Subject: [PATCH] VDUSE: avoid leaking information to userspace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bounceing is not necessarily page aligned, so current VDUSE can leak kernel information through mapping bounce pages to userspace. Allocate bounce pages with __GFP_ZERO to avoid leaking information to userspace. Fixes: 8c773d53fb7b ("vduse: Implement an MMU-based software IOTLB") Cc: stable@vger.kernel.org Signed-off-by: Jason Wang Reviewed-by: Xie Yongji Reviewed-by: Eugenio Pérez Signed-off-by: Michael S. Tsirkin Message-ID: <20260130050750.4050-1-jasowang@redhat.com> diff --git a/drivers/vdpa/vdpa_user/iova_domain.c b/drivers/vdpa/vdpa_user/iova_domain.c index 806cec32c4bc..4dc76c0d0d13 100644 --- a/drivers/vdpa/vdpa_user/iova_domain.c +++ b/drivers/vdpa/vdpa_user/iova_domain.c @@ -124,7 +124,7 @@ static int vduse_domain_map_bounce_page(struct vduse_iova_domain *domain, if (!map->bounce_page) { head_map = &domain->bounce_maps[(iova & PAGE_MASK) >> BOUNCE_MAP_SHIFT]; if (!head_map->bounce_page) { - tmp_page = alloc_page(GFP_ATOMIC); + tmp_page = alloc_page(GFP_ATOMIC | __GFP_ZERO); if (!tmp_page) return -ENOMEM; if (cmpxchg(&head_map->bounce_page, NULL, tmp_page)) diff --git a/drivers/vdpa/vdpa_user/vduse_dev.c b/drivers/vdpa/vdpa_user/vduse_dev.c index 81409a5bb09b..9ebbe6541157 100644 --- a/drivers/vdpa/vdpa_user/vduse_dev.c +++ b/drivers/vdpa/vdpa_user/vduse_dev.c @@ -999,7 +999,7 @@ static void *vduse_dev_alloc_coherent(union virtio_map token, size_t size, if (!token.group) return NULL; - addr = alloc_pages_exact(size, flag); + addr = alloc_pages_exact(size, flag | __GFP_ZERO); if (!addr) return NULL;