Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp145736rdb; Mon, 18 Sep 2023 10:30:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHd+SGWpH8ZXN5wd2pho1vZjvyaCL0Sg5d50JSyj/09lQz93VhiXk1Fr1rj1lMO6HoDAzSM X-Received: by 2002:a05:6a20:440d:b0:15a:3285:e834 with SMTP id ce13-20020a056a20440d00b0015a3285e834mr12719571pzb.4.1695058206484; Mon, 18 Sep 2023 10:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695058206; cv=none; d=google.com; s=arc-20160816; b=RNmN291gfAZ7tNVYl9YZWhumkbWF9nmsDkML+APEsNp27Dyn/qLfIOjitIggrQJYXa 4LEvLfST/zMsQWjRn1C5HWNZQa3Z+A7lOgofEO6T93YygzSbvfUTdQtSf3ueO2CQWPAN 0kLrZQCHATq54/8QBxelsyNw6CgZvybJKv8xv6fDWRGxO+TNVzacJxYdrlVz9vApGaAF J2l28nBGAFhBU6pkNSIFa/8WmVYD073dV5BrrzfK+0iRDewZ7LTg2ldbhkexqABohrJ3 L8XoR1HnkK9l4atk2KjgSz/bqIwyS3DcJDo5cqFY73JADRj58g+SZhuJ4kg66DGx8Y4+ eqTw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=N6d5WBdZELmMthCNmK0XR1B4AWxpwVsEXxb4bJmZf9I=; fh=3PxY4l2IPszFpQY4NC9exPOZQhHFVHTqBWzgFYtcpdg=; b=yTIGHwUZc0bQ7gWrqIO5DC1l/96qpJcjx8KUdlZfIqcGydEuGMqyUqENHL/7AnZzxx uk8clA5wBaNOI1X6Q4rDNLC8UDR30ziIy7SEe1QAMkarB4MOIB8VKUKwnqY9ua5e29M8 WNfjY7jhD+2yfbU8NPRVFVUdzcumYM5VLSRF7LLT8KN767oLsI4SDqjo7hkqvVZi97RB /31wBSaJsHLbL3k2bZO+qSPYM/KRxKbg2PXIMOU/PhDJeBvCZE8GGgtdCWFTYYpnldfv NXJQGsw0zW9il+TbRdg8naRVyMBvhXs3oGkRMv0IyRSZeG9yAn42AKVAxF82DIGYTJgV fqOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WDYp+Cu5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b25-20020a6567d9000000b00565d8d51c20si8221566pgs.217.2023.09.18.10.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WDYp+Cu5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 68FAF807E408; Mon, 18 Sep 2023 09:45:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230474AbjIRQpb (ORCPT + 99 others); Mon, 18 Sep 2023 12:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbjIRQpR (ORCPT ); Mon, 18 Sep 2023 12:45:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6594F2723; Mon, 18 Sep 2023 09:37:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9DA2C3277D; Mon, 18 Sep 2023 14:11:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695046299; bh=AaTX2phhCUtPw9lbKF7scrtBDHqfwrjWgr4HRiqVU9E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WDYp+Cu5is1eQJc2E1ihlpN0xCm1i6XxOIKrpDdDUU0vluWEg1NNVqSJK8ilROFzi 47QcUYJHToFdoEWwIYsSXib8EcR04/G+GfSSffF6fvXjEhGwsHeh8KuUPIMvhYuAUx ngj80IvrPh1NScrRbgTQuhWk8Vv6zhjE0quZ1NC/FWX94GkNxmWSfb6zE2uoy1p5pU NKHgxXsiGmvgo8tSTzUeatoRvGFMYxQXn8y3ty50fJtwt2/4JohiICbuIou0XBgefM KLCvNnmYaIOPM3hX8o9l1AKiLkCnQJ5LLI8nt0ceKCpfYVouRmrTd28zFuQXTfZMyU nlsFj886WOczA== Date: Mon, 18 Sep 2023 16:11:33 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pavel Machek Cc: Da Xue , lee@kernel.org, sashal@kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stable Subject: Re: linux-stable 6.1.53 kernel crash on COLOR_ID_MULTI handling change Message-ID: <20230918161133.4c32a0e6@dellmb> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:45:53 -0700 (PDT) On Thu, 14 Sep 2023 12:21:09 +0200 Pavel Machek wrote: > Hi! > > > We have running systems that use COLOR_ID_MULTI. The GPIO toggles > > between two colors and we have used the identifier. RGB is not a good > > fit since it is not a RGB LED. Please provide guidance. > > > > This patch causes the system to not start: f741121a2251 leds: Fix > > BUG_ON check for LED_COLOR_ID_MULTI that is always false > > > > It was also backported to stable causing previously booting systems to > > no longer boot. > > Lets cc patch authors. > > And please drop this from stable, it does not belong there. > > Best regards, > Pavel The BUG_ON was a no-op since it was introduced. It's purpose was to prevent people from using LED_COLOR_ID_MULTI since it was thought that non-RGB LEDs are not yet completely agreed on, or something. But since the BUG_ON was a no-op, someone started using LED_COLOR_ID_MULTI without noticing that they should not. There are now even some in-tree device-tree files using LED_COLOR_ID_MULTI. My patch that fixes the BUG_ON uncovered this and caused a regression for some people. I think we have to drop the BUG_ON altoghether now. I've sent a patch to linux-leds doing just that. Sorry for the incovenience. Marek