From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796205444; b=DArDx6lklW5L/XhtseP6yfaP8aC9PgW1WtF7uKwy5vQgcnSwsfQGvR2wqhCCq6j0+1xi v7UAVKiFhIY8e8Y0+1tr1VyBq0/t53QfZM+NkfAf0xK+bZnLO+BxxalwfJHieVMeoBrvQ d27B5f/fRExWkC948XFoVhUoM8GTH1xDJcp2apBxDUCV1Y5P9IrHSXa8ralIlUuLhp63n 6crr46NT/q2X882mIlY0YCFedvl0zAvPgzGx4tz8jRCR30Dsz1XHSzD4s/HCV0IuJFQuD nD9FzeI7YVVvlZmbFKncQAJyi62z09Xt85AeVoFT4NOw0jemTjaENwD77gEjte7MzpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796205444; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=W96N+QS0QKHiGyJJ1zQ2j2wdCVOR+6JH3r5LUN9145E=; b=LPI7GN93NdJgZr4AL/7Qg/lWTDd2pPEtX1aKS/hwNZqhdGsT33rc/u1muJdoe7NNfgg8 memqB5k032trNHXbH2KimE6BOInFG87bIrbmHf7VDMMDYzBZyDazlNFaWhff4Q8VmZKQ8 DzFR4wble4Eov/RW6pbyaFHmN8qo8+cFKkyYlOcouhFmGwn7NBx9UIGmCIu/W3m46aK0h GzwyAzHVwhahFH+0ACeYAECDWD2sX7JVZMEdTxIxfzkVlV+V+ddX8KWUXX97ZNzSePNNF cQUj/V8UfaP0ruylq1YXo7zB7nTbi/f8QnXUK3nr9cTE/9dHC471CIYPJEt/UcS1Oyg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=yTAn4STo; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23E4F606A322; Wed, 2 Dec 2026 09:57:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=yTAn4STo Received: by smtp.kernel.org (Postfix) with ESMTPSA id F22F11F0092B; Wed, 2 Dec 2026 09:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796205443; bh=W96N+QS0QKHiGyJJ1zQ2j2wdCVOR+6JH3r5LUN9145E=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=yTAn4SToisjaph/1YXf2qPYU+O6b5QwsyW85N3G6D47WYZbOgq6gkbKUk/tqp+WIJ u8mVYtDp18YRx6MLBm8nfbEce9sXBIuGVvvSVGaRc59VJ436HN3/wzxkW/rjN5ouOa vXhCaJ0DzkSBSZvwLHzU9H9e00YJI4ydhn7/eBzI= Date: Wed, 2 Dec 2026 10:57:20 +0100 From: Greg Kroah-Hartman To: Rahul Priolkar Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org Subject: Re: [PATCH] tty: sysrq: serialize sysrq_toggle_support() Message-ID: <2026120206-carefully-yearbook-5d5d@gregkh> References: <2026120242-corridor-chase-3d79@gregkh> <6b0fe37a.fa539071.2f0826.409f@mx.google.com> X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b0fe37a.fa539071.2f0826.409f@mx.google.com> On Wed, Dec 02, 2026 at 01:23:06AM -0800, Rahul Priolkar wrote: > Hi, > > Thanks for the response. Here's the patch. > > -- >8 -- > > Concurrent enable-mask updates in sysrq_toggle_support() can both > register the static SysRq input handler, corrupting input_handler_list. Wait, this is a root-only thing, right? So just "don't do that"? :)