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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 4E517C433ED for ; Sun, 4 Apr 2021 21:10:51 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C69356135D for ; Sun, 4 Apr 2021 21:10:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C69356135D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lTA0r-00041W-QG; Sun, 04 Apr 2021 17:10:29 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1lTA0p-00041N-W9 for kernelnewbies@kernelnewbies.org; Sun, 04 Apr 2021 17:10:28 -0400 Received: by mail-qk1-x732.google.com with SMTP id q26so9937747qkm.6 for ; Sun, 04 Apr 2021 14:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:mime-version :content-transfer-encoding:date:message-id; bh=tuMLA0TFMEWuHrlYXV4+8nA9Xl5LiWTBDoArYpovKmo=; b=ENPeXnlAM1PtnK3dSGP7GNNy4nEOtKcQxUaTF77FmNpsERCzf1X3AFnpcziUwZlFTD jMES1aV9EmD2kTeyH+pOamfTconkFilhmFushqdR6ctwYCZZkVGRNjTbWvhV7Bd8ByTB Zph/I6CUHDF8R0TYueuylwsmumvJaQntlTvjZzIV1lWTR7rl4mFJqNkOViTodbcuYa2g otYv/2zTFugjezMQYUiglLPnvmchUwTuASBgVtnOB9KZ9kazvW6/fayWuNhSCv103dLt 1hhYSXczqGpJ3xNMglZOQgy4ZejX0lvQz+x8WR9HE7eoor2KSI+cMYHsG+gRqVRK31SE AK0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=tuMLA0TFMEWuHrlYXV4+8nA9Xl5LiWTBDoArYpovKmo=; b=i296sVUKC8WzyV2ipNmJNU467siI7x3DPYhlmbT49PZ4cnYqOM35iz8zyg1gyXOU6+ uCE5G6V4T3yTJihxxkqciYRqrWDBznCmmlk/uagTEZ3XLmkPXq8OUsQNT9fx1Dvv1u/D Rqz6fncbcQiLc59Z0hrcKQL+hGSkGiflmpFwedG+mOfbJtlM58L8b/45UR+UYrYvYCfn guaaI0PKjtwUErPkulgiYcKKKAe89o2Uq25y0IMVCz/LvLM1AipYSEeXW/2YdkypRqpu rXK8FDSWzANsSW7tt7N9kltSyH9wME2MpnAXgo/9zveJypGh3r3W2iYTOiciq6+AznRt auOQ== X-Gm-Message-State: AOAM532sJ9nwet7zbPGIV1sFQqpxm3zybSDzC3sQVQt978HHVpxu+Wzp HUm8+WDyYzZFLhT8Hl6hHFm8lw== X-Google-Smtp-Source: ABdhPJxknzVA4EJWX6Y+tWWVDJ892Ql8Gw3i28T3la+KqU+G8LT6hQ5DJGxDJ8Q6Ef5DuLqKTUj3PA== X-Received: by 2002:a05:620a:2095:: with SMTP id e21mr21944312qka.135.1617570626761; Sun, 04 Apr 2021 14:10:26 -0700 (PDT) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id k138sm11935713qke.60.2021.04.04.14.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 14:10:25 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: John Wood Subject: Re: Notify special task kill using wait* functions In-Reply-To: <20210404094837.GA3263@ubuntu> References: <20210330173459.GA3163@ubuntu> <79804.1617129638@turing-police> <20210402124932.GA3012@ubuntu> <106842.1617421818@turing-police> <20210403070226.GA3002@ubuntu> <145687.1617485641@turing-police> <20210404094837.GA3263@ubuntu> Mime-Version: 1.0 Date: Sun, 04 Apr 2021 17:10:25 -0400 Message-ID: <193167.1617570625@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8238648009155253006==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============8238648009155253006== Content-Type: multipart/signed; boundary="==_Exmh_1617570624_94693P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1617570624_94693P Content-Type: text/plain; charset=us-ascii On Sun, 04 Apr 2021 11:48:37 +0200, John Wood said: > that exec and the child crashes is mitigated. The only drawback here, as > point Andi, is that a supervisor respawns some process killed. To avoid > this situation he suggest to notify to usersapace via wait* that the > task has been killed by "brute". Then, this supervisor has the chance to > do what they need (respawn or not). And how does the kernel know that it's notifying a "real" supervisor process, and not a process started by the bad guy, who can receive the notification and decide to respawn? --==_Exmh_1617570624_94693P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBYGorQAdmEQWDXROgAQJenA/+Jp4nnvY8OkQ2LGu6lldGszLWdzgo0oES ia2lg9QjtV0I7DnURk4wdUTB6E5U5Y7E58axOMTXezj5jHGsksRPcISD8iuMshdB dFX2P4tB8JaEL49mgTHkFdFSLibdsSVN61aqOZ74jyHWN9UQdVv3RRinU2+LBZ00 I5BkAjB+RfyVdcMLeTHZcWvroreSfQdtaRcvuwNmMPXFH3ncaaiTGNCt5HEOrxeb /ZCWMRzNPd9kp6J16hLVIGL3Fh1iW132ByMrIvOIBRV2hDLTZqXHC6FvyeAMrkC0 T1B3L3RKunSmDGV1F9WdiT8hNbaaLBH+kqF2iJ0nPjWNNSVw1KxkcW1uj1U0ZNih zRRrfIFqxhKPrQCnG3hoFEY1CkFeiiL8vE1osftCfl3m86A04D2UTz72vXYH3iZA GCuFI7KcRLIb/Odvw6HMBss8lyHfsaH74fXggKxru8byLAuyVgcrqpEax96XqCn7 PRfBSeXNgIbHlBl52B9XJiBSJHHBVWmWs96PgBHnbiJpNOWpqYyeKDAugnaloxSo sYvZA6vRizEfYoD7SWcvHH+uFFImliv1uULoG9wjVdItoRobBOMvfRcqRJA9ejis JD8G4T6ZYkwiidxgiKpU+2Znr0fAd4nCbH8t3371gG/c6rjD4wtjPMA8ZDrmTw0Y P3pA+wWKMC8= =GwjF -----END PGP SIGNATURE----- --==_Exmh_1617570624_94693P-- --===============8238648009155253006== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============8238648009155253006==--