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 16181412261 for ; Mon, 20 Jul 2026 12:14:07 +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=1784549651; cv=none; b=nYNceg1IYAAlJFnkWOIevuErsMWE5KCQH7WN7Aykbs7psHUbCa8D5HmQduj0HiufuiJflw6F+DqnJmDnzRicpLKj9tHWx0yK1FgeukI9aiaEjBS1SuvdVGJX+u2U9u4LPgAAWEOqmtaevqn8+kslZb9Dx5vw2Si/ak/zAMb/aKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784549651; c=relaxed/simple; bh=BDgg81Isz7B613dEb+UKazkwsZK+1QLAcqCrm3sRXhI=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=eXpQ/Z3mIgGtDxRmqDVe8FoLJAkeVPlpoLva8XgYpv0C+AHXFhGpCnTV74fvYdlCEGkQ9Iaham1Pvy28VCLud1xdSx6fjuXy2JOImXYkrEQN17BoEIE0CcyuZjoaVmNS1fWnrejO5Uj2/3KykSuUXQ2/PpG6L0vwFyFEsARhz3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vDWPZURq; 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="vDWPZURq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E97C51F00A3F; Mon, 20 Jul 2026 12:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784549646; bh=fKxzIjVGY9WOsklP0qFbwUt2QX7c8ErjF8Nw/Gzcb6A=; h=Subject:To:Cc:From:Date; b=vDWPZURqduGCDZ9daJz24YavjFeywlOaP+WqkYL//GrgebdmeWJfvbeGNzugii6ge +AzTYa1Mih9OT0o49LCn+e9DMDsYEzuozIyXqkE63kCwnROlZKGO+dBPDItq7/tFzu UbHZwhlAXo8t3xk3A8JAcIQo1RmZ/WAWTz9miYC0= Subject: FAILED: patch "[PATCH] VDUSE: avoid leaking information to userspace" failed to apply to 6.1-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:42 +0200 Message-ID: <2026072042-splendor-serotonin-4456@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.1-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.1.y git checkout FETCH_HEAD git cherry-pick -x 9c1523803445ee0348f62b77793266dd981596e0 # git commit -s git send-email --to '' --in-reply-to '2026072042-splendor-serotonin-4456@gregkh' --subject-prefix 'PATCH 6.1.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;