Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2148611rdb; Mon, 20 Nov 2023 03:33:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4PRslCitjbJxRLs63vK/8c99zBgLmgk687XnD2xSUEqdQpTJQM6vNgdRNftgyVKjAOjBV X-Received: by 2002:a05:6830:1e5a:b0:6ce:2789:7195 with SMTP id e26-20020a0568301e5a00b006ce27897195mr7208422otj.31.1700479989628; Mon, 20 Nov 2023 03:33:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700479989; cv=none; d=google.com; s=arc-20160816; b=pKFdgwk+OYk4vsFHc3peC51Lx/FCKwxyjmNvW6TgoiKEj0j4f9WNYVw9zsuIQk8D77 7BSwVajhqo75k9nyasCYixUw0ZeoWra2aUBbYqqORUl9gEyz57Rnecsuaeipl+4j/ZGE 5GTUTRU1YWpiwMObHdUMNZt+6Vk2eXZvC27S3sbW/Lr9e3b/TssiYJAWa7ldTc1ZtMmH anbXkP6oQUZRUaArLbA5+GApmpDB5j5Jf9fP+u9ghXC8NiwHviJGzQPYfhn4BSvy4Lop KMQuagqYbJYwGRD/IcYUSz8OWVdxuNoqXdBvH2DvIB9m5T7A2PwpCeqdTidh1OU83o8K W9oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=vuwKK9zbBGA1j3WJbpa0jMyRPFba9Ryze3r5vf0g4Cs=; fh=cMxvAA54vo1UIp57LlUFBpiOLSu9WHexdK+2dehgsVc=; b=cNIVbl2pOcazm4vItnLipMt2WWjroQWj0VyEydHWz4BUQZY2irCBgnegK74Ntrny+h bGiXALn3tnq1r5+4PF22q9PvVlXYHJU3wWMhGu1F+y4oV3U57e1BBdPsPrazp2xHXZFn XJ+N39WB49ODugQSmbG7UvyXILQs8f+2Q2yU+fnSzbYwspKgC02JYcSeSJd7mQFEjQ9b 7A0q6XK09jXdLWGA9vS2r4EwpM4F3FDpypQ0XyBCJ5eyiQDMfMdMaOUb0mSXpKnTqeMg mz9/LVB2gQxm23xfBnfr+9AXBI+YHn6xayUcQsVaECOwQ2rtaD/QEOCo1dxKXfroconl urcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l23-20020a635b57000000b005aa0e024d63si8003741pgm.791.2023.11.20.03.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 03:33:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 3F4658065EF1; Mon, 20 Nov 2023 03:33:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233204AbjKTLcs (ORCPT + 99 others); Mon, 20 Nov 2023 06:32:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232649AbjKTLcq (ORCPT ); Mon, 20 Nov 2023 06:32:46 -0500 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF4E7A0; Mon, 20 Nov 2023 03:32:41 -0800 (PST) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-40859c466efso15020045e9.3; Mon, 20 Nov 2023 03:32:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700479960; x=1701084760; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vuwKK9zbBGA1j3WJbpa0jMyRPFba9Ryze3r5vf0g4Cs=; b=BPJn4DYFql8OLZ56jlnSiFkCB5U51W4EuHly4FXZWlNhhKP05R4GOaTYs8R5kkYu4U G2NLMalZHAChA1hUSsCABBzOEefGp/1yLb5g7uu5ZY94qevOIFoAMW5G+EJV0aI4XrcD +CIaSNbvgoJqSRxMh2/VTUSQ3zyGM2Dr8PfUNqYhjQLi5teMzxQPLewtJpBwpv4MYMSE 0ZCXmK+ZnAcx+/Tmgvub4uifANfi7i9yTRzvyjSbFvUIvrD1/vaZP6JY/UWB8FVEcwdb EbIeaoWa+Iu3rDXa6oIv2GDcX3Ve6Zs3p7a/lWmkGUctoSmrjB8SwNokAM+X8xNmoQUr O0NQ== X-Gm-Message-State: AOJu0Yw8YGuCVk0hYsbVAWBpfGBPfMWLtqJZC1+e/FjK3rltVu3FRaQ1 YLxdsfdEwSKCh+QFwiqa2pE= X-Received: by 2002:a05:600c:4f01:b0:40a:5b3c:403 with SMTP id l1-20020a05600c4f0100b0040a5b3c0403mr5720572wmq.14.1700479959991; Mon, 20 Nov 2023 03:32:39 -0800 (PST) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:59? ([2a0b:e7c0:0:107::aaaa:59]) by smtp.gmail.com with ESMTPSA id fc16-20020a05600c525000b004054dcbf92asm13067803wmb.20.2023.11.20.03.32.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Nov 2023 03:32:39 -0800 (PST) Message-ID: <1974a5bb-cd08-4e8c-b1f5-ea0a4aaf8247@kernel.org> Date: Mon, 20 Nov 2023 12:32:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10] /proc/sysrq-trigger: accept multiple keys at once Content-Language: en-US To: Tomas Mudrunka Cc: corbet@lwn.net, gregkh@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, rdunlap@infradead.org References: <20231120111451.527952-1-tomas.mudrunka@gmail.com> From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSVz6FoqCHrUTx wr+aw6qqQVgvT/McQtsI0S66uIkQjzPUrgAEtWUv76rM4ekqL9stHyvTGw0Fjsualwb0Gwdx ReTZzMgheAyoy/umIOKrSEpWouVoBt5FFSZUyjuDdlPPYyPav+hpI6ggmCTld3u2hyiHji2H cDpcLM2LMhlHBipu80s9anNeZhCANDhbC5E+NZmuwgzHBcan8WC7xsPXPaiZSIm7TKaVoOcL 9tE5aN3jQmIlrT7ZUX52Ff/hSdx/JKDP3YMNtt4B0cH6ejIjtqTd+Ge8sSttsnNM0CQUkXps w98jwz+Lxw/bKMr3NSnnFpUZaxwji3BC9vYyxKMAwNelBCHEgS/OAa3EJoTfuYOK6wT6nadm YqYjwYbZE5V/SwzMbpW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ZkIEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: <20231120111451.527952-1-tomas.mudrunka@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 03:33:07 -0800 (PST) On 20. 11. 23, 12:14, Tomas Mudrunka wrote: > This way we can do: > `echo _reisub > /proc/sysrq-trigger` > Instead of: > `for i in r e i s u b; do echo "$i" > /proc/sysrq-trigger; done;` > > This can be very useful when trying to execute sysrq combo remotely > or from userspace. When sending keys in multiple separate writes, > userspace (eg. bash or ssh) can be killed before whole combo is completed. > Therefore putting all keys in single write is more robust approach. > > Signed-off-by: Tomas Mudrunka Reviewed-by: Jiri Slaby thanks, -- js suse labs