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 DC9A2410D34 for ; Mon, 20 Jul 2026 12:14:04 +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=1784549649; cv=none; b=kaSCuwDQiwPcFCC8ZaMrKlUIX7I6SzdA+WxJ0hOsaBBaLV6K1OOi4DTVJZ3KBYk87l4ymGxY9x/Q4sgzHmQGEP5TMyG1cjiHDqIA2c231AcQJwflggBu1JUtGR1bCNsA5Gu2PyRV5AM5Z5Vl5lCyF1sf5rAjcwmjHvib8Gc+Gts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784549649; c=relaxed/simple; bh=2K1zIkCBCLziyV2iUfo1hGzYAgctk8lngKXEGZAwmN0=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=PWg4kRK6ukfIB7332u/yYn3X5UTX5JcpCmVkornpP6luWK/nMm+xDxbNjAIb45WegQunCbkjAoE9DcH2qzQqYfREwiclkQCrSjY/o3kIdMEgJfHtKnp44FxccrSrU/CRy7XjihlN9iPCNj1fBA84WgP1yyJLFmGTSIKBVx/lUps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iKUWf4nO; 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="iKUWf4nO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 499CF1F00A3D; Mon, 20 Jul 2026 12:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784549643; bh=ikItuSa09PNHPMKYS3mPoLgNaydHOXgPv6cYXIp+pZ4=; h=Subject:To:Cc:From:Date; b=iKUWf4nOtHVmCR3mbxu/3dawYxI4B+ihZOEivtg8wUm70vq+pYCjjMlGL4WiwqwsN K6WMcurnFWfCO1TicnttAJIsdNIjyWn1VTfi900EmYSwA78Krr8hfR31aZJKQseNb4 jDMkv11rQ5WvoVoC1mMouoGVFPaniDFfmLSSTfr0= Subject: FAILED: patch "[PATCH] VDUSE: avoid leaking information to userspace" failed to apply to 5.15-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-challenge-grimacing-a682@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 5.15-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-5.15.y git checkout FETCH_HEAD git cherry-pick -x 9c1523803445ee0348f62b77793266dd981596e0 # git commit -s git send-email --to '' --in-reply-to '2026072042-challenge-grimacing-a682@gregkh' --subject-prefix 'PATCH 5.15.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;