Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6137872iob; Tue, 10 May 2022 11:10:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRgumjbq2k3+m2ySZ5OBnB2qLUbKPolra8W7mVY0AzWhI8JoOtLkXNL5y2CEfRvgI+gtay X-Received: by 2002:a63:1904:0:b0:3c6:3fd3:4c28 with SMTP id z4-20020a631904000000b003c63fd34c28mr17770851pgl.308.1652206230779; Tue, 10 May 2022 11:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652206230; cv=none; d=google.com; s=arc-20160816; b=P4GOivXdSFjpEVhceSG9j+28wmG8gYj+8z/BY9hP2DTUi0RcI4YVCknpY1A52wa7sm rMXL005C/FqhgGMYm0TL0tnH2GsnPv1CVzsUxkJPHBgFmWonqIVj3DMn5aVlYdHdcOgh 2nVW4gP5mS1EAnvEKI/WpADTBgyZshRCodtG8jqca8W3V0hf472nKhWCMq69c4NgEbkq qiSdXfEvQNrDhY87cUM2cBY0DZ0zFMjMoCWUi89DhsE9rrYomJEVaP19An8yQsR6KiS3 dtO4+0tTVooriSjKoX4E5hqUjVilAygg6HzMXG+uvF9W6/32SjenOL8Z5XaYLZiQIaXH TvTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0wFpaR1s0lF3nDSSqCLJRda5alVHrJVrOyFoBnxUUnY=; b=MPEQwIjIngTAT0cCGs1ZB3/jaGuqZWgCR1dYCJE/JSVGNP+rqvfcFLEgrWePqJP0Cb 3WCRFnpFlg+lmMAvFhgmEvpGeqrSXig3AO6WuxpngTpnyghPsd7V8ibQvSp7cHVLFBhl QN8l1hRwq21y74NBPpg2lHeFiyMrhmeipIK5S2+afpW2LZZq25jeJTRd617PSUFVvhSG THxGVq5+xS6zu8biKIZj8Mhm7dOR5Tmrn0kOcBQlUjfWf5FmHTpVFj3sMfMYE/7HGt3l zAk6dlqzv3L/BPF04AEAhIXnGEl9ycC0VsMIP2fbhEeRiAXhXV9uwoIRhK8u2Zf/a1/a 2kUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=arxno62h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h184-20020a6383c1000000b00399149a5d14si67557pge.205.2022.05.10.11.10.14; Tue, 10 May 2022 11:10:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=arxno62h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343624AbiEJN7Q (ORCPT + 99 others); Tue, 10 May 2022 09:59:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245169AbiEJNig (ORCPT ); Tue, 10 May 2022 09:38:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62299263DA5; Tue, 10 May 2022 06:27:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F3298615C8; Tue, 10 May 2022 13:27:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AE23C385C2; Tue, 10 May 2022 13:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189273; bh=7YK7im3ERblhZ5O91Xt2vvBiiKK/aV4yCGuCiom7j9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=arxno62haOyilszwua/H/3Kb6J8jkBdzPmvNY/GIfwHMzP6DGyx0Ym5I6fENxIMCP 7KVX3DOZsNzSMTZ0YgqJGQtLG5LBmdrWNuuwuRpwgNWD3y9xDzM8TGbJzidTrNKLO1 cI7aM/BJwVIBZFNnCQTIpBqUnqElxZ11OhZd4S0s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Haimin Zhang , Chaitanya Kulkarni , Christoph Hellwig , Jens Axboe , Nobel Barakat Subject: [PATCH 5.10 66/70] block-map: add __GFP_ZERO flag for alloc_page in function bio_copy_kern Date: Tue, 10 May 2022 15:08:25 +0200 Message-Id: <20220510130734.798923810@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130732.861729621@linuxfoundation.org> References: <20220510130732.861729621@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haimin Zhang commit cc8f7fe1f5eab010191aa4570f27641876fa1267 upstream. Add __GFP_ZERO flag for alloc_page in function bio_copy_kern to initialize the buffer of a bio. Signed-off-by: Haimin Zhang Reviewed-by: Chaitanya Kulkarni Reviewed-by: Christoph Hellwig Link: https://lore.kernel.org/r/20220216084038.15635-1-tcs.kernel@gmail.com Signed-off-by: Jens Axboe [nobelbarakat: Backported to 5.10: Manually added flag] Signed-off-by: Nobel Barakat Signed-off-by: Greg Kroah-Hartman --- block/blk-map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/block/blk-map.c +++ b/block/blk-map.c @@ -488,7 +488,7 @@ static struct bio *bio_copy_kern(struct if (bytes > len) bytes = len; - page = alloc_page(q->bounce_gfp | gfp_mask); + page = alloc_page(q->bounce_gfp | __GFP_ZERO | gfp_mask); if (!page) goto cleanup;