Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2827094rwd; Fri, 26 May 2023 11:51:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7FneAsrRB/Dsu64eRpdhtf3svPzPA9DhQUSch4H7vBUmcJBzANNR5miQxwi0lfhF+GcwgN X-Received: by 2002:a17:90b:a57:b0:255:f01e:5aff with SMTP id gw23-20020a17090b0a5700b00255f01e5affmr3274602pjb.34.1685127089948; Fri, 26 May 2023 11:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685127089; cv=none; d=google.com; s=arc-20160816; b=fIuMsaz3v7+EpexP1NBrxwuF6Kf0D3zz364XTFaXstSXgZVmO+AAte0C6dXKQdF2Aa x/b72w3lYP5X3C5q/7MEiEJ04BgkNzTBU0zSGFSLVT7C8OZWcliLhroc8nARXm143gXM 3az2ZlZN4X7qzqVRbB0UtX1ONcG7z1WaQH3wwNTNiLY0v+cn0VEjmVT0t1eLBigqvKbn 1ijBcBi0LlVm7j7ntJ7yUNIqbyrocfK1gZVZNLaXC9YTx0e+8L0RS5BmA6DXX3YPD4yA jN8meOaFhfTIt5lN9FQzl9cCAs26MNqlwhBdFH9hrliRX9WCY3TQ8FZ6Rz2YYQ52stpN D12w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=kvrbH4NWshxeXtva2B/E+KqGf/SS3bLOdI8hLw9iOo0=; b=EnsEgOQ2uTocXjb+8Nk1FrBkhD80m0oXpUdHH/nPvJQdmajE+eueuIWWRFk7Xj6Nt2 IT0YcjUwbl/lsOd816KFKVo8ETSvI+te2tEkSElEOQl/2eA07gm8dmvlRKO8lAO+peao Pd0Mwnv5e7WkV+KC3M+Ec9EK0v2yUqs6qECL2K7i9Wq1MDHkYQFl44yg7ZpH8Rx9fBuC Q6NaY/AN5Dro9JRSXJPBzFSQX75E9vex2szeYZDAa0qHfNCa2OXPAa09or/SNDrrlGvH 0lCwrAzk3VJAiZ8qdnaR1xd++mC0UvTH2sq2bJVGoTGTuuA0DlFnVob8XZ4Wkh0jY9b6 iTMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IqUr9Rc4; 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 h16-20020a633850000000b0052c87a89084si4366400pgn.374.2023.05.26.11.51.17; Fri, 26 May 2023 11:51:29 -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=IqUr9Rc4; 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 S230181AbjEZSly (ORCPT + 99 others); Fri, 26 May 2023 14:41:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbjEZSlw (ORCPT ); Fri, 26 May 2023 14:41:52 -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 0F130E56; Fri, 26 May 2023 11:41:18 -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 37A8D65225; Fri, 26 May 2023 18:41:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B14DFC433D2; Fri, 26 May 2023 18:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685126476; bh=5b2JyJNLieTChhmtAE4raBp+An+8BDiNRs/oMlONZAw=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=IqUr9Rc44MRQ1oCw8P2bGY9GlQfOpSETdMDtKPYY7spdFzZ5YDatmg6BydqJkor+N 35lWm2zBKjJ6G/Zs/Xe19C7XUm5twAF4yCKifnVbx37Fc4c9KQEE+SQS4kBkFYSD8E c21SzLXr8qIeU+W7KcZsoJOZQ36d7xnsQSkAr17ss35klGsT11APzBSFJ0GZUFZbd3 2EwKGSyL3rvqKBkaWDSge6nA2j4414tAbC7OkUJnfKi2nwJCS/30vBSmgMQZZKz/9/ 4D93Ji6xr+GB6p4QXGqUrK9xHwkp3SjmO5uOzyZN70Wfek2/pJRmrIPsszi2Oqs986 hnPLing7N9Zew== Date: Fri, 26 May 2023 20:41:12 +0200 (CEST) From: Jiri Kosina To: Benjamin Tissoires cc: Linus Torvalds , Linux regressions mailing list , Bagas Sanjaya , =?ISO-8859-15?Q?Filipe_La=EDns?= , Bastien Nocera , "open list:HID CORE LAYER" , LKML , guy.b@bluewin.ch Subject: Re: [regression] Since kernel 6.3.1 logitech unify receiver not working properly In-Reply-To: Message-ID: References: <9b987585-0834-bb8c-3414-283c29f3f2ab@leemhuis.info> <55dda0bb-fe42-6dee-28ea-00121554d092@leemhuis.info> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Thu, 25 May 2023, Jiri Kosina wrote: > > > > That bug is pre-existing (ie the problem was not introduced by that > > > > commit), but who knows if the retry makes things worse (ie if it then > > > > triggers on a retry, the response data will be the *previous* response). > > > > > > > > The whole "goto exit" games should be removed too, because we're in a > > > > for-loop, and instead of "goto exit" it should just do "break". > > > > > > > > IOW, something like this might be worth testing. > > > > > > > > That said, while I think the code is buggy, I doubt this is the actual > > > > cause of the problem people are reporting. But it would be lovely to > > > > hear if the attached patch makes any difference, and I think this is > > > > fixing a real - but unlikely - problem anyway. > > > > FWIW, Linus, your patch is > > Reviewed-by: Benjamin Tissoires > > > > Feel free to submit it to us or to apply it directly if you prefer as > > this is clearly a fix for a code path issue. > > It would be nice to hear from the people who were able to reproduce the > issue whether this makes any observable difference in behavior though. I > don't currently think it would, as it fixes a potential NULL pointer > dereference, which is not what has been reported. > > Has anyone of the affected people tried to bisect the issue? Could anyone who is able to reproduce the issue please check whether reverting 586e8fede7953b16 ("HID: logitech-hidpp: Retry commands when device is busy") has any observable effect? Thanks, -- Jiri Kosina SUSE Labs