Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4655822iob; Sun, 8 May 2022 20:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCKSvl7IZsGOy1USL3nCMTPbRbFxbGdonko+oB3k90DtebJ2jKhbzuBuroMOOrpLOG46cP X-Received: by 2002:a17:90b:1d0c:b0:1dd:220b:bac9 with SMTP id on12-20020a17090b1d0c00b001dd220bbac9mr1486802pjb.36.1652068174718; Sun, 08 May 2022 20:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652068174; cv=none; d=google.com; s=arc-20160816; b=S8S+UYifvY3UFTRh6ac6GtWyRHgIOjFD41pWtoCwdyOMkTPLD8kn5GKHnWD8rat2HD Xsp4KHhal9X5vuO9f/UBBQgEaQrucABACj33nWuquPwdBvtNYc5e1PwhDSBnFfTDi2ln 6s54teI7r3tC4GecxzjkcADaWzn3kBL3OSg9BVBwlcvTQSc9PZgxtvi0CAJPygPIJA7c Hdk+uKtDdyhuGd1tVD7LnVwPGMqaBEiv4l3M4PpoTFPHebKq28RjsA5SSL5bzmGB3UXn FAxk6LAwfttKWtVgvw7qi65yI40H5GHhjpaqSTBxqGNh7uem8M4nCE1yF8vIWnkixyRg ziqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9XEN2p4TS7Y7GMjDyn8BRCFCg3PcyLVWF2V6H1oVGbo=; b=d1O9+NT5jwIt+DfMWXfst+1FVa1Kj2hspQ72mXTaiC7cGfqLn6FK/bEyEtvbREr7kg se+cJDaXgXxhtB9Hcy/g+bU5BFPLy0Ksu1z983uut2OLXaImHgRkb1AVJrWFO4YNKs1j eOeFUSyYi3jwPvg3oV2bm+9w3lmXbIIWuy92mtJZXyd87sYQdQR92+rcdCTgEJxT7G0t cB6htsCVOGQBMZvHlLqmuyc3ewhAAfP7UsfXDfW5c6a5Lt+T5Pr8aXFbUgg9nMrC+xjl yq1DMHKtov49FfUIl6Qt2pFV+ly8pKgAxS04rjQITAPHl4XLTY65BTvoKM7n7DPH9lXm 0HHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dwB5IkhF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k190-20020a6384c7000000b003ab1a15c37bsi10679289pgd.189.2022.05.08.20.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:49:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dwB5IkhF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B436E6CC1; Sun, 8 May 2022 20:47:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230219AbiEHKZt (ORCPT + 99 others); Sun, 8 May 2022 06:25:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231932AbiEHKYu (ORCPT ); Sun, 8 May 2022 06:24:50 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 662126362 for ; Sun, 8 May 2022 03:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652005260; x=1683541260; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wezW3+DT+J5CsHqEInqhEUoA+xaz/n2ysdiXysoRoO8=; b=dwB5IkhFoY0r6Xi8SpsKU7Yi0FfbC9W8LLK279BMEqbCQ4FkCEhvmmft 1dJ7YZYE7u3I1s5XtaLoDKPRpvv9pRKvDR8W29AFtlYtagVXJTT1U+QTd zv04gYw5ewHjJNVB29tPIiy1L4ILgoNXChl8NGG1ykGgtfSCIWksvr1En GgLFzBhcLlR2nAWhZxVAryJwoJ9yBpaAWUrCO/r6i/iSStJ+0XXDy+ynC Q8Rhu6KkP5fouQEZ2ge5AK1ZaBDtMSIyf7Zp/A/Ctcv74GGDZBsZCqSNh hPVZ2/GSq90wyG9ToO9oG4ozV2B7VPurYVKJ6D5OPOP+MVO1VenZd/5nB Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10340"; a="267661867" X-IronPort-AV: E=Sophos;i="5.91,208,1647327600"; d="scan'208";a="267661867" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2022 03:20:59 -0700 X-IronPort-AV: E=Sophos;i="5.91,208,1647327600"; d="scan'208";a="695866793" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2022 03:20:57 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nne22-00DSfJ-2e; Sun, 08 May 2022 13:20:54 +0300 Date: Sun, 8 May 2022 13:20:53 +0300 From: Andy Shevchenko To: Andrew Morton Cc: Puyou Lu , Andy Shevchenko , Kees Cook , Petr Mladek , Linus Walleij , Guenter Roeck , Chris Down , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] lib/string_helpers: fix not adding strarray to device's resource list. Message-ID: References: <20220506073623.2679-1-puyou.lu@gmail.com> <20220507114516.5de49b46cf5349db7121eff8@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220507114516.5de49b46cf5349db7121eff8@linux-foundation.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Sat, May 07, 2022 at 11:45:16AM -0700, Andrew Morton wrote: > On Fri, 6 May 2022 15:36:22 +0800 Puyou Lu wrote: > > > Add allocated strarray to device's resource list. This is a must to > > automatically release strarray when the device disappears. > > So at present we have a memory leak? Yes. > Is this likely to be serious enough to justify backporting the fix into > -stable kernels? I think so, however there are only few drivers are using it, hence it's serious, but rare. -- With Best Regards, Andy Shevchenko