Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp861297rdb; Wed, 6 Dec 2023 01:53:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6HtY33SC09KTDAIz5bAEG5vXm+kfEyNYW2qAMHN76gTTG/L4MKAC58lemnvV8fWCNTO1L X-Received: by 2002:a05:6358:5e10:b0:170:4035:4f94 with SMTP id q16-20020a0563585e1000b0017040354f94mr988713rwn.25.1701856413956; Wed, 06 Dec 2023 01:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701856413; cv=none; d=google.com; s=arc-20160816; b=IflOF1xIblawCIig8b1wTCTj3DnuypLtgXs4zeKfB05kiKUAzKuoJ9N7Y9LMdO+9Iu NYRQzzfJHODvaER6ziG1rlCqAGTp1wZx2G/oAwl5/CMWJDK03/3rn5pL5leeRcpVCqsl DJtudkom/YK3C40d1lxhFrzO0KkpprcnyfnPr7XjYn/LUDVvTjt6qyNSlPUP8ll5xFWM 9UKZZQVA2l9hYZlkmGN8+VHDNZJ6Pv9oIaSlmSilRaGOjJkfuAhvETmxfs1vm8MczEQS ID776SEsBeyU2ZshjDcJmWzzNf9xWLoBrLy3OMjyHbhOQuaDOjLAoxtiX0VS0O40xeiu TBzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P3PUdeMTp59iLacU8h6b17A8a616BgKJZLMgjfjDCJ8=; fh=tqqhC8tn/qKuLBN5/mwTHP+f359wXx20U485A2FcvfI=; b=xpkrmM04VEvypH+Gu8T+CmUnWrFy0XHxswUqhNw4CsGN8lFr9drTBGAh0Spwye4y0y Kuei75SDXFyxikn+mzQLMV2/ZHWfOYYndRbvUaClMxUyJLKZrRfw2WS95bONIVyYCPPq +D3zwhh/W8/IB+hAx30Q4tdMLhPeMimjWNWMyjJwti3ZLT772m4L/6u5jG6q1AqcIDmt rlcrYcvcH6vcguUXTx7RqdQV2heo8BcbktirK/sHhD3uI8nyVIbWQ2967bcvAJq7YaVf dCj0d6NZktIUwDqetTf4kjy6qQzM8fnAU8fAf8M3zup5pOMnvZO0ipBnzURAffLSNZD+ 3KWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IEgt7kxq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f5-20020a056a00238500b006ce54dc2d09si4787550pfc.254.2023.12.06.01.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 01:53:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IEgt7kxq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DFF328068C78; Wed, 6 Dec 2023 01:53:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377274AbjLFJxN (ORCPT + 99 others); Wed, 6 Dec 2023 04:53:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377254AbjLFJxM (ORCPT ); Wed, 6 Dec 2023 04:53:12 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619B4FA for ; Wed, 6 Dec 2023 01:53:18 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d048c171d6so47508845ad.1 for ; Wed, 06 Dec 2023 01:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701856398; x=1702461198; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=P3PUdeMTp59iLacU8h6b17A8a616BgKJZLMgjfjDCJ8=; b=IEgt7kxqxbqo/TBZoiA+nRtGnEoiS3Tlkls62oS9wXXh/R6yP/g/WSbLenC4PYrZQZ 6UXMBV83QIHOe4WMikjMiVAnBDUIPFOvJmH5lo6gjUwMCuocGdm4dER7Bfv7gQMTpO53 q6mwpjTcpdUPRfgnyoBvcgYooNFDJ//XDav30= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701856398; x=1702461198; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=P3PUdeMTp59iLacU8h6b17A8a616BgKJZLMgjfjDCJ8=; b=l8iYS0pDN1C6jFheeF5Ggat03tbYqkU5WTCdfx4Pcu6BTOZLH//xL/R8ejEwRn4sdm gE8rNoxMk2Fa67zarfCvbuAYntrG3xIf2Mk3v5v6Xr8g0a+jR1oiTCZSBXSyFi/N75jF XoET7VRb6r6eTbuao2GQwOxD1QCMBVGVqU1T53EU06uEega5RCEYEfUpksqWrVjBLmO2 AEuUejxV0y7OvPhu4wRulM3g1viCC1SBWbDx3M1CiyKafTeHe3oHEuV8QSloXkpUe7eC X/vPz0RH07HRFYl1GwlnGtpwkxAbjO7c06qEIRYTiKwiMieR0qTZoBt3lksgQ+dID6fu 0oog== X-Gm-Message-State: AOJu0YzTQCkUiZ7fo5hnB0GfBsXYdWsForBTq1emFDQspYHFkb0k/FA8 C2kVUfH57kluNSnhW+42/h+ITg== X-Received: by 2002:a17:903:22cf:b0:1d0:4d29:59fe with SMTP id y15-20020a17090322cf00b001d04d2959femr692480plg.11.1701856397742; Wed, 06 Dec 2023 01:53:17 -0800 (PST) Received: from google.com ([2401:fa00:8f:203:95bb:1e40:3d62:d431]) by smtp.gmail.com with ESMTPSA id i4-20020a17090332c400b001d071d58e85sm7869159plr.98.2023.12.06.01.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 01:53:17 -0800 (PST) Date: Wed, 6 Dec 2023 18:53:12 +0900 From: Sergey Senozhatsky To: Julia Lawall Cc: Dongyun Liu , minchan@kernel.org, senozhatsky@chromium.org, axboe@kernel.dk, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, lincheng.yang@transsion.com, jiajun.ling@transsion.com, ldys2014@foxmail.com, Dongyun Liu Subject: Re: [PATCH] zram: Using GFP_ATOMIC instead of GFP_KERNEL to allocate bitmap memory in backing_dev_store (fwd) Message-ID: <20231206095312.GA333238@google.com> References: <8bb6e568-1c79-6410-5893-781621b71331@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8bb6e568-1c79-6410-5893-781621b71331@inria.fr> X-Spam-Status: No, score=0.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FSL_HELO_FAKE,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 01:53:31 -0800 (PST) Hi, On (23/12/06 10:33), Julia Lawall wrote: > Hello, > > The warning is because kvfree is used to free memory that was allocated > using kmalloc; kfree would be fine. But I think that the only way you can > get to out is with bitmap being NULL, so there is no need to free it at > all. > > Furthermore, it could be safer in the long term to use different labels > for the different amounts of things that need to be freed, as done in most > other kernel code, rather than using a single label "out". [..] > Date: Wed, 6 Dec 2023 16:08:49 +0800 > From: kernel test robot > To: oe-kbuild@lists.linux.dev > Cc: lkp@intel.com, Julia Lawall > Subject: Re: [PATCH] zram: Using GFP_ATOMIC instead of GFP_KERNEL to allocate > bitmap memory in backing_dev_store > > BCC: lkp@intel.com > CC: oe-kbuild-all@lists.linux.dev > In-Reply-To: <20231130152047.200169-1-dongyun.liu@transsion.com> > References: <20231130152047.200169-1-dongyun.liu@transsion.com> > TO: Dongyun Liu > TO: minchan@kernel.org > TO: senozhatsky@chromium.org > TO: axboe@kernel.dk > CC: linux-kernel@vger.kernel.org > CC: linux-block@vger.kernel.org > CC: lincheng.yang@transsion.com > CC: jiajun.ling@transsion.com > CC: ldys2014@foxmail.com > CC: Dongyun Liu > > Hi Dongyun, > > kernel test robot noticed the following build warnings: > > [auto build test WARNING on axboe-block/for-next] > [also build test WARNING on linus/master v6.7-rc4 next-20231206] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Dongyun-Liu/zram-Using-GFP_ATOMIC-instead-of-GFP_KERNEL-to-allocate-bitmap-memory-in-backing_dev_store/20231130-233042 > base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next > patch link: https://lore.kernel.org/r/20231130152047.200169-1-dongyun.liu%40transsion.com > patch subject: [PATCH] zram: Using GFP_ATOMIC instead of GFP_KERNEL to allocate bitmap memory in backing_dev_store This patch won't land upstream. It was NAK-ed.