Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1284234pxp; Thu, 10 Mar 2022 02:25:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKDS32erENHIKa8kX3Yn42sfqT6KvRin7QSxfCHFLOxhSbJwIdbVDyT3EAaJ+IF8Pf7yoc X-Received: by 2002:a17:906:d205:b0:6d1:4446:d950 with SMTP id w5-20020a170906d20500b006d14446d950mr3489099ejz.702.1646907959528; Thu, 10 Mar 2022 02:25:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646907959; cv=none; d=google.com; s=arc-20160816; b=bvk5RmxwqfUb7b2vtP9rEmwt34cGn6BWQ8OA2qIdpZ8Ca3UCUXEF9N+cqiAIeUGm8h 8nRT6+SVgbg85O3AbwFq49Lh8EuacaRWQsiRT66ZZoWyz2WxABK49IJ1vPjkfFC+lCJb ygSvCnkcmxLEdftetzNVA0/5MjKgKcJMMPAK1BkYu1NStakCNnKMTeMydnRgT4RcsG7i Jb3f4AXbVThk73nNdB/okl1NUubaQ1pP4Aw0G2OugwUmyX18dZlaYAoLkEjg5Mgko4wF I6miz8lVXwrh0HOGKJwUHZW2HrXE0sqcCrhtHI/fhrEcRpxOpOZKcxHy2/J+NCQkSTDm 6tSQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WmlKE0op7yxW9mAhyAWbyDVYEcUhR6clPFPO5GZFbTM=; b=VeJS7qUt9W5VHWgefam/Bg4MkEx+EPcJc0B5cmUqbSqQkiwh4M1VPoPh8XViGDOIEZ Ts8nceNbk/HUHjMJGo0BH9ov6ArjTXiN691N0eua8dsWaXUMlAyec4Fho2kYbsxwjdgJ 1ufwgfWRdeZUnt9kKA5DM5mSuEu9lc5baU0u0mvZwz8xS6KjqQUpUtskO5ISQZRwcUPJ VhuBaHFYLRj2Vh1EL/sLDdv27ZMhyKHr/oAUsrDdNB2uUB9mD2ORwGJEGhnCdeuuz/7H z4DsAkDvP8bnWCUUS/QhCmL0rbUuEh1rAOjrPRumCnPlrKMNajbYOjaQh+HLQjK8sAds h5Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=g6IIGqd4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a170906348200b006d6368d72a9si2757240ejb.254.2022.03.10.02.25.35; Thu, 10 Mar 2022 02:25:59 -0800 (PST) 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-dk.20210112.gappssmtp.com header.s=20210112 header.b=g6IIGqd4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237811AbiCIVGN (ORCPT + 99 others); Wed, 9 Mar 2022 16:06:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237373AbiCIVGL (ORCPT ); Wed, 9 Mar 2022 16:06:11 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF2C8FBA51 for ; Wed, 9 Mar 2022 13:05:10 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id q11so4247479iod.6 for ; Wed, 09 Mar 2022 13:05:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=WmlKE0op7yxW9mAhyAWbyDVYEcUhR6clPFPO5GZFbTM=; b=g6IIGqd4S1Nr27q+j3I58qCrwBg3FGnY1pbuHcSJiiF92/AFMcddAWj+4vmE1X9LkX 0/PQ7y7qFpTJOuk7+QtuUurai9yNb3uLAUP2kkJb/LG64WNGkaG1T52ajVbj+2HqCAPT cLTgeYKB546fUnzXzhRAy1BaH4YDsRDd+4sil+E6DSEsZ2R0SQvVafzCh5PScGfC8wN1 7iaW02qEWh2SmyWrOkgwUJZZTAZ3KakioC8E9Qn4YjhGCIYJ0SQutFdrdSGex06dGjEy 4bnGNC1ArbFcxp7KjrWA/tSEXANotn5FURwGACqGn5vyVgCGvMCsSyx/KE0ZEe/Uag+/ ludw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=WmlKE0op7yxW9mAhyAWbyDVYEcUhR6clPFPO5GZFbTM=; b=T6dtNuOuQyqDGcnuKVYIdKa/+YO/JcbbKudcX8biIyGu8uCkePdKqBTngDTry0cqgn tFrN+X9IC4FJLpm2FWfLF6GIipFH+lQjnOT/+EUOx7bvtqh8IPzjaWtG5Mur8URIZDjW TAMtk/2+GWiXvgY0cNHFNxfu7sIxWtDQ2+lSA4VtLcflgK2F/VD3n02VKWP/I19l+/n2 /QBm/DCTQ0LdAFDQvRfCaxowBjRUqrmqF6ot4XRJ74O4aJFeHCWN6CyH/90z5D4hecDT AZewzsbVCIU/A26aLfFc9sieTZ3dAqBPFqPrsyiimgUwBmdYIv6nXiovQqq2EVdYmfDm /xeg== X-Gm-Message-State: AOAM530LohOc6dfsFnKyH2gBgLXT64rQEFGFLo8jP3uG/rkfNOakOBGo sF8f4BoD0UkDzLeCw3lgtPgteQ== X-Received: by 2002:a05:6638:33a0:b0:319:ae0c:b289 with SMTP id h32-20020a05663833a000b00319ae0cb289mr986493jav.55.1646859910030; Wed, 09 Mar 2022 13:05:10 -0800 (PST) Received: from [192.168.1.172] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id s13-20020a6bdc0d000000b006408888551dsm1536476ioc.8.2022.03.09.13.05.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Mar 2022 13:05:09 -0800 (PST) Message-ID: <63222e71-d2a5-47d6-a5cb-4c822441f448@kernel.dk> Date: Wed, 9 Mar 2022 14:05:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 00/13] Removing tracehook.h Content-Language: en-US To: "Eric W. Biederman" , linux-kernel@vger.kernel.org Cc: Linus Torvalds , Alexey Gladkov , Kyle Huey , Oleg Nesterov , Kees Cook , Al Viro , linux-api@vger.kernel.org References: <87a6ha4zsd.fsf@email.froward.int.ebiederm.org> <87bl1kunjj.fsf@email.froward.int.ebiederm.org> <87r19opkx1.fsf_-_@email.froward.int.ebiederm.org> <87o82gdlu9.fsf_-_@email.froward.int.ebiederm.org> From: Jens Axboe In-Reply-To: <87o82gdlu9.fsf_-_@email.froward.int.ebiederm.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 3/8/22 5:13 PM, Eric W. Biederman wrote: > > While working on cleaning up do_exit I have been having to deal with the > code in tracehook.h. Unfortunately the code in tracehook.h does not > make sense as organized. > > This set of changes reorganizes things so that tracehook.h no longer > exists, and so that it's current contents are organized in a fashion > that is a little easier to understand. > > The biggest change is that I lean into the fact that get_signal > always calls task_work_run and removes the logic that tried to > be smart and decouple task_work_run and get_signal as it has proven > to not be effective. > > This is a conservative change and I am not changing the how things > like signal_pending operate (although it is probably justified). > > A new header resume_user_mode.h is added to hold resume_user_mode_work > which was previously known as tracehook_notify_resume. This is a nice cleanup. I did bother me adding the TIF_NOTIFY_SIGNAL bits and work hooks to something unrelated, but that's where other things resided then. This makes it a lot better. -- Jens Axboe