Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2695526rwb; Fri, 2 Dec 2022 13:39:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5W9DruxWCoF7DWbiB8E8UcOGi0Rvh8Ocs2t0bNXjRM7JhpSkXlRgdoqzhPYe214XRwywg+ X-Received: by 2002:a17:906:5f85:b0:7bc:6bb7:41c1 with SMTP id a5-20020a1709065f8500b007bc6bb741c1mr32180384eju.353.1670017175063; Fri, 02 Dec 2022 13:39:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670017175; cv=none; d=google.com; s=arc-20160816; b=XLftAB/KdPolFJBl3rXDFrrM/estA1Ok93yOc604tiRaVnFPy6Xq4rzYah5/cgbXz+ ZyJh1Q2uWd4mZ0IOjr+4vgj4xRNSgY5gwxcRFsz3/XfbmiruDcw8O03dVnJjQeNr69zu km8QxIj+gvFD9bvHHvDICWHNP2DnG77dRYPx/2Ou/cSq9K9mL4o2NYSCYFtmolj2WIoF A9Hk+gyB51XhxnbRJGkayjyG+jF0inQIz9TB6AJwM1P69eYDFoj53L0TZ3i716HsRKIk NI+ZULmFC9nZZX0iX36lD3E22VdUqVjYQN1++11BwKeMWoO9zHppL8JqTBGKh50kP5+8 y+1g== 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=iQDktQYpzou+1jghyVKL+asxsj6OGDHQNqntu4wgSwY=; b=tjAaDxv89iAaSq35JUyAnXkFvlsdASRMZeImCJBL7Z/rtCZYqR1R4nRvPkWSuCuuIt D5z1u6binh2zawQTiD8DGAGi69RKh+gszEbs4q6tTsVdVzhPzoV4+9aoaGnHE+A331yE F1x8tCTeY2dCkmJ+4cKCsApbql6VTWHR5tWQSCOOSBg7cziFe3HKQdT3Krlgx9wxBWn8 qHrQXHExhmQizHfv1JFa7x9a3RNkxm312pXVasjYWu7t9Z3urt1xY1dqPDd1pwawkmBy 9SBEb5ydqiHnUV7Rn6OO9caHXYpxV5mE0dZwX6sO0dfYX4INLgsil5gFJLXOZAh5h4hi RbCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c2AlHYtX; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-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 wu9-20020a170906eec900b007adfe2889efsi7077356ejb.607.2022.12.02.13.39.10; Fri, 02 Dec 2022 13:39:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-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=c2AlHYtX; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S234237AbiLBVZm (ORCPT + 99 others); Fri, 2 Dec 2022 16:25:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiLBVZm (ORCPT ); Fri, 2 Dec 2022 16:25:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8897CEDD4D; Fri, 2 Dec 2022 13:25:41 -0800 (PST) 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 266AE623FE; Fri, 2 Dec 2022 21:25:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 77496C4347C; Fri, 2 Dec 2022 21:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670016340; bh=1/dCZws0qFEBoVjD6XV0DlnnzbPeN3KFddA2k2jt5oQ=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=c2AlHYtXW3yFA05dD+eyWoScuhna5G2JHrbRo9bQ849nLOJf+YtnX6mB80jP2zsdu U5IlN1kTTFX2+3+TAI+MkJavYv6+yZW0JPWlaQZ1hRXIXibwzY9McMCSurH1RtwkAl llFh6XPjWmlR06jnTj8nZoY3xx8ifFBHgrDlQapGHK7qkFwuCzSMM6pid20gjv44+S 02Uo91Dr/4yPrKKeVGNILioazSkS6SHni43S6s2Xzn/SIgcTU+zLdF8dMFoGEScgpr crKPseXZHC37TI9FmJAR8W+ZHBLog2UB2oi7YzzUSCpAWKxgNV/iN46q1ibuvXW5Ow JxKagAITyLqoA== 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 58DA1E29F3F; Fri, 2 Dec 2022 21:25:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: Fix not cleanup led when bt_init fails From: patchwork-bot+bluetooth@kernel.org Message-Id: <167001634035.19139.3332943937893587311.git-patchwork-notify@kernel.org> Date: Fri, 02 Dec 2022 21:25:40 +0000 References: <20221129092556.116222-1-chenzhongjin@huawei.com> In-Reply-To: <20221129092556.116222-1-chenzhongjin@huawei.com> To: Chen Zhongjin Cc: linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com 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 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-bluetooth@vger.kernel.org Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Tue, 29 Nov 2022 17:25:56 +0800 you wrote: > bt_init() calls bt_leds_init() to register led, but if it fails later, > bt_leds_cleanup() is not called to unregister it. > > This can cause panic if the argument "bluetooth-power" in text is freed > and then another led_trigger_register() tries to access it: > > BUG: unable to handle page fault for address: ffffffffc06d3bc0 > RIP: 0010:strcmp+0xc/0x30 > Call Trace: > > led_trigger_register+0x10d/0x4f0 > led_trigger_register_simple+0x7d/0x100 > bt_init+0x39/0xf7 [bluetooth] > do_one_initcall+0xd0/0x4e0 > > [...] Here is the summary with links: - Bluetooth: Fix not cleanup led when bt_init fails https://git.kernel.org/bluetooth/bluetooth-next/c/63d70ae785a9 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html