Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C35FC433C1 for ; Thu, 25 Mar 2021 16:31:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6109461A2C for ; Thu, 25 Mar 2021 16:31:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbhCYQbF (ORCPT ); Thu, 25 Mar 2021 12:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbhCYQaj (ORCPT ); Thu, 25 Mar 2021 12:30:39 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 621B9C06174A for ; Thu, 25 Mar 2021 09:30:39 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id k25so2506216iob.6 for ; Thu, 25 Mar 2021 09:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zQ/dY657sE4UsZwKDF7GjxYBChWqEwh+LM/zpMvtxaY=; b=bc+Ns3lXBqVMXTlIuEVSboJTpqZcYuxuIei/lusb4fPtdj10mgZVmndW62d8kZo6yM 7sNaf/p2SV3t4uwpHplIyHrIA+nkOdkBkOOXajCf1iKE7ybnluJ2r8x1ikTaCmdkCPqV wTzCY57SwHbZqQtNdNty97wHpr/k4nEvlCDKgw7tm1dMLr8yYNV/NkFxLNxXp0Pzcpbv 3fmklR0FETweq/SlOgi1/s8yTYiEgqGrU8C24liAhjiL90F0riwRX0Y2BSDApZd1Z+hq lPe99VRSApYq+rr0z81RuNTH/vykQHDf1O1x3w8zpls6Exr2XHWX5yqUw1iXfIqszMuC fD1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zQ/dY657sE4UsZwKDF7GjxYBChWqEwh+LM/zpMvtxaY=; b=AR16jpMRo9cDL11PIoeunF6pbOQmJshz3QWkhZ8gY4e0E6WLXQoDJKcpfxWuNmNRC1 +vtBPE+HMJD9tG+enmVieCczzePMfeILHgfLsYSiX5Zx37TV0AHsNlE9OTaJv26dIXXS xWEaA+gXmErtHj6i+rXEl8RsAGlLhCF3Pjay0pl2Uyph+QVn5gn2kbZJeI8pkyH1W2ts Qe2PCQfEsKPB1HUUOh0RkH6o3QYKzuNYPPhArHKDP4Oo7LYLKNqMIdVbArfZeK+PPJPu /tLQ03KPR1B+EIu+ouz4cRj0yfHD4dgXGj+gq7/Qgkc57cYHZU99M5F5f5/SBIlt+m6l 94ag== X-Gm-Message-State: AOAM533XeFH259uTSV9OhlxANSx910CtGHBA8D8XWRIPY8rFB+5S6xTi 9xtWiho6iUaPXjcB1aZmDoCq5A== X-Google-Smtp-Source: ABdhPJwYGvKiS1yIXxvUvXI5VI+Zbl3OF8GnszEgjrkKtFmfJFLqPYi6hDez75PoVx8kY8W9ysiSiw== X-Received: by 2002:a5e:c809:: with SMTP id y9mr7216094iol.192.1616689838798; Thu, 25 Mar 2021 09:30:38 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id c19sm3040920ile.17.2021.03.25.09.30.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Mar 2021 09:30:38 -0700 (PDT) Subject: Re: [PATCH] livepatch: klp_send_signal should treat PF_IO_WORKER like PF_KTHREAD To: Miroslav Benes , Joe Lawrence Cc: Dong Kai , jpoimboe@redhat.com, jikos@kernel.org, pmladek@suse.com, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210325014836.40649-1-dongkai11@huawei.com> From: Jens Axboe Message-ID: Date: Thu, 25 Mar 2021 10:30:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: live-patching@vger.kernel.org On 3/25/21 3:30 AM, Miroslav Benes wrote: >> (PF_KTHREAD | PF_IO_WORKER) is open coded in soo many places maybe this is a >> silly question, but... >> >> If the livepatch code could use fake_signal_wake_up(), we could consolidate >> the pattern in klp_send_signals() with the one in freeze_task(). Then there >> would only one place for wake up / fake signal logic. >> >> I don't fully understand the differences in the freeze_task() version, so I >> only pose this as a question and not v2 request. > > The plan was to remove our live patching fake signal completely and use > the new infrastructure Jens proposed in the past. That would be great, I've actually been waiting for that to show up! I would greatly prefer this approach if you deem it suitable for 5.12, if not we'll still need the temporary work-around for live patching. -- Jens Axboe