Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp114841rwe; Tue, 23 Aug 2022 19:51:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Hcn0s5ESBaHZwrS179CHQNv6VNwXcFYfx8iMXXfheYX7MRuSA+cKrFlhCO2WEgIKaYd8I X-Received: by 2002:a17:906:4fd0:b0:73d:be5b:291b with SMTP id i16-20020a1709064fd000b0073dbe5b291bmr110190ejw.157.1661309492317; Tue, 23 Aug 2022 19:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661309492; cv=none; d=google.com; s=arc-20160816; b=VaKWjYqwwMTdU+rnwqPWDSe94VB5r69hy6rVqj9rhyLEuvsP4dTqtaG6NZXzzCBRtB l8CyLQ2vuf89XgBKbmgV3eEUyXe+FZSEAy6OSbxupQbq50T0UbA5qhzeT4xTvZ5tG6iI SWs3U9xsCguvq9TB2x70B6JPLAHiXvfm+GkFiTlbjpTbCrh1Mqss7gIfqleaMk/aOu5J Qa3q+4U99FEQgUM4b8JEmh+O5i3mhp+eySXqYYtySBj0GwPgJSMmeBgFav4VgO2oaeua yFxmya8UHUGDRi1WiQ1ncpxHbThakYIEPw+w5JqNEIkO7f3DLXqLsxCU0l9yWRG5QU6C sNhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=UsA8gYr4G4upizC0aQ5bLJTaQHHNSG+BUVuTKRdpTaQ=; b=JdmW+mnREXG2E7VyFgBemax3Yu3dy1Dyyin0szK8dkNoUT5GC+cRj3ZRWfLTdBCkOa d0uncU6ZP+HAZSiRRgm1fjyeYyx9GWZomDBMR4ARztYYlOHgH+cBfHbc9xZ5+xXgYR/7 R5wlaziCWr2e7uBHh+WNBSLOfQus+XNL7Gn171rCuuAwQ2N9JyfThy/Nuqjx7TK4+SmF POM1/sviRMVJEwCKQzXz/tPO/HECHuIY+Rjd7PyOpDpl/fARPU5JxkfdMj/f8URxs31U wK6g969emop1FFyInuB0z4dXVkrWQNKksMFnqjkMXUT4g3PQC1gB0z+TEw7+rI69oVO6 T0OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wn1N+zYq; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020a170906939400b0072f09c398b7si983904ejx.118.2022.08.23.19.51.06; Tue, 23 Aug 2022 19:51:32 -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=@kernel.org header.s=k20201202 header.b=Wn1N+zYq; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233637AbiHXCUT (ORCPT + 99 others); Tue, 23 Aug 2022 22:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiHXCUR (ORCPT ); Tue, 23 Aug 2022 22:20:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93112861FB for ; Tue, 23 Aug 2022 19:20:16 -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 20D06617D2 for ; Wed, 24 Aug 2022 02:20:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 8204AC433B5; Wed, 24 Aug 2022 02:20:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661307615; bh=A6IhjA/h9CqERUMVffhQMBceArkI0bSRI9qQCZos+Ww=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Wn1N+zYqgOFtVVK23TPWx2Em4pi+SmKLQdjveeGNRBuGGdyZm6kOvpi2kWt4nt5dM Ju3TN+52FCpPNuR77NivHBBeAUfmsBNWAytaRAmuEzVq6mYigi/p/zhoFhIVG0JKYJ y9bfr8iZzQdVEJ/AdkYYwStLvneKPnRlQ9zAU6srZNc9UJIJhGmRYbnzG5ZbXZjfXV XLkifnbhSMv9i5XpsL27OY2nxIEUPxsvFjUZ/eTOjH6sTv7qHkYYg/gjTcUjrBbodz ZqFVadpwIXlhaDbCZcVfz/O+xHRK/LY0CCLCyvgS9gxj5wEYxow0avbxrrBoLcYcYM /upt8oW1zirNg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 6473BC0C3EC; Wed, 24 Aug 2022 02:20:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] platform/chrome: fix double-free in chromeos_laptop_prepare() From: patchwork-bot+chrome-platform@kernel.org Message-Id: <166130761540.28253.2501419238988992082.git-patchwork-notify@kernel.org> Date: Wed, 24 Aug 2022 02:20:15 +0000 References: <20220813220843.2373004-1-subkhankulov@ispras.ru> In-Reply-To: <20220813220843.2373004-1-subkhankulov@ispras.ru> To: Rustam Subkhankulov Cc: bleung@chromium.org, dmitry.torokhov@gmail.com, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, khoroshilov@ispras.ru, ldv-project@linuxtesting.org X-Spam-Status: No, score=-7.1 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 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 Hello: This patch was applied to chrome-platform/linux.git (for-next) by Tzung-Bi Shih : On Sun, 14 Aug 2022 01:08:43 +0300 you wrote: > If chromeos_laptop_prepare_i2c_peripherals() fails after allocating memory > for 'cros_laptop->i2c_peripherals', this memory is freed at 'err_out' label > and nonzero value is returned. Then chromeos_laptop_destroy() is called, > resulting in double-free error. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > [...] Here is the summary with links: - platform/chrome: fix double-free in chromeos_laptop_prepare() https://git.kernel.org/chrome-platform/c/6ad4194d6a1e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html