From mboxrd@z Thu Jan 1 00:00:00 1970 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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 6CFC4C433DB for ; Mon, 22 Mar 2021 07:55:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3AB0061972 for ; Mon, 22 Mar 2021 07:55:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229574AbhCVHzJ (ORCPT ); Mon, 22 Mar 2021 03:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbhCVHyd (ORCPT ); Mon, 22 Mar 2021 03:54:33 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8911EC061574; Mon, 22 Mar 2021 00:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Xrt2R+R/QcWWdbizw9P2yOnC4GYX4QH6HtSqRJOKuZM=; b=JlT9qfBWh/cDHYRV0U74X7AcQ/ Fojxb2Cia/vWUn71j1RocbeEEJ3oulDvZRs/RVoGdNkXbNt5wN7VYRzV3hyrwj67DsVuT668nJJ3U DFNkCkq3aBU8+z7jxTzdkbrTIZGBa/0HUnBmzEEtn0+r9Uk7rw4fnQR5Zw2IHbq+2s7Ef1L9sYJiC UAKPTViaKDjbNJJqXJNY+eX2yuiu6jISQ+2eR8gQ65JBfwpf1WIbfV06R61bIl+eWQh6K7yumxJ+y wcqP38P68WQYQOl3wNcmJV/iZkpLl4ViVyZN0d3yp6JXtv/XbA+382zuwW+vyiA+M4tnAwyC2HX09 Xk3xB1Ow==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lOFN8-008Ai8-D3; Mon, 22 Mar 2021 07:53:21 +0000 Date: Mon, 22 Mar 2021 07:53:10 +0000 From: Christoph Hellwig To: Andy Lutomirski Cc: Alexey Dobriyan , Andrew Morton , LKML , Linux API Subject: Re: [PATCH] Document that PF_KTHREAD _is_ ABI Message-ID: <20210322075310.GA1946905@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 20, 2021 at 10:23:12AM -0700, Andy Lutomirski wrote: > > https://github.com/systemd/systemd/blob/main/src/basic/process-util.c#L354 > > src/basic/process-util.c:is_kernel_thread() > > Eww. > > Could we fix it differently and more permanently by modifying the proc > code to display the values systemd expects? Yes, do_task_stat needs a mapping from kernel flags to UABI flags. And we should already discard everything we think we can from the UABI now, and only add the ones back that are required to not break userspace.