Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3673289ybc; Thu, 21 Nov 2019 11:54:06 -0800 (PST) X-Google-Smtp-Source: APXvYqw+kmOnR7+3OykSWmG7uoQxoW1ZbhZ9a6D5sToVaGnZqRh5R9tH7jH+ExupoCEntoh9R1B2 X-Received: by 2002:a17:906:3396:: with SMTP id v22mr15642269eja.169.1574366046126; Thu, 21 Nov 2019 11:54:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574366046; cv=none; d=google.com; s=arc-20160816; b=x417TUtWLS8QuTeuWdMep9te5YjQSAPXZhzEC1OvQPBXcOZ5TW3CFvpuKQE3hSkDxm +cSPov2BDNDlC28pBeI+VSK+Rwf0VOBnhQEQ7NS5AOpRxgbJCXlqTRAUR2Itg5AHIclA Rodpik/aU68LxiCNdY82DjZ8XSB6vdoGCOCQR8d6Tj/9xGRi1EvgI5SsgCcLhIBJDlv7 9p4ddpypMx4sKvsrYsnUWMLTMN7qdJVWtd5aN7J6EV2dXojuLz6SfVee7P3g/OQb9Rff xzcoyEbTBadXKL66i4hq8YpQKgpl9EJMq49CFAgWD+2QdIU6VwnZBMmHh2wnAi9XgnZw +rAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Oibr9mo+x0+TGv4WMCPaafgkJSg0wRL2Of/xQxi/DiU=; b=C6n+F3zzVD/XKN2FoZ8O6+OWDZd5oTBZBXd931iGZ6P1VQwolmqOhGkBAhRvUPKMKl JUTshk8VXINSwUcL244TjOfuR24HbqRnhoYdBTzZcK7Lr7RrjNpYRdxDZ7GD3kA8puXl DNn63JFYQCdLPyA396LxtQyb0xLySSquv8wfqqiA4bRuVgqCHV7sRo4HNz7fIgt7ZfQx yyVvMSElb4DrdGvEpJRnPPuu4auwPKL1Al2xBQoN6Ihzgz+7L6/1oqZEwYzPISJWaXkt VereB9PvLoA/FmNVAPYojCMAX1W77Gb+n7e+oBbWQ90AaTJfmRJd8gpUjB9CU+qaAYH9 0pDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WlulTIMK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s10si282322edh.138.2019.11.21.11.53.41; Thu, 21 Nov 2019 11:54:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WlulTIMK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbfKUTwU (ORCPT + 99 others); Thu, 21 Nov 2019 14:52:20 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33455 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfKUTwU (ORCPT ); Thu, 21 Nov 2019 14:52:20 -0500 Received: by mail-pl1-f195.google.com with SMTP id ay6so2074682plb.0 for ; Thu, 21 Nov 2019 11:52:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Oibr9mo+x0+TGv4WMCPaafgkJSg0wRL2Of/xQxi/DiU=; b=WlulTIMKfJ69Qa5u9lpbic68PHzChbTGdAZk0v72q6waDu5xHFcYiU0CJEoT30LNpK lgeF9rHVsLJLUb4OQsaxjm8+A7uam5+e2v6+flnO0Sys9x2CkSqVbomkf2wUiOwA8tsq 3FzKH2z+xgD280Xlld4qTU4USfRI3qY6vMdhY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Oibr9mo+x0+TGv4WMCPaafgkJSg0wRL2Of/xQxi/DiU=; b=Y457pbH5vAdkIgZ+JNLQ7tjwsl7c40PoSFzodbjecTAF5HhHWPfcsRTKGqb6JMSgrn w5Mdc5Qr1c5Up2ceq5d4x54bSbXa5ONB+OtB36M7vLvIgCvKAOcEz3es5aK0XpIzqMrA JbnPK4hXv613e6OBrNIstmnIH2cDelX7XBDI2VQuJAKiTrEOVtQmt/zutFdz0sK+qc7K 5gvFpYptklv9Tc4nfj2AS54RktEL8fFmcieEhGVYPdLOipI4arvgPA9+Wb2LSHnNwGqu eeSTcoTY63+0rapZamFeGZF4N7vU3+cQ/7kY7tQfiaGG3TfGmN4EG928HM/fqkkhMkav 13Kw== X-Gm-Message-State: APjAAAWHlYtdm5N/69lxW3iZFIHwX+UKkt0wteznZaHJwzd6o4E/oLRn CwB+4hl+tGow+h4PEgQHJT1Qmg== X-Received: by 2002:a17:90b:d93:: with SMTP id bg19mr13434722pjb.81.1574365939329; Thu, 21 Nov 2019 11:52:19 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id m6sm3853310pgl.42.2019.11.21.11.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 11:52:18 -0800 (PST) Date: Thu, 21 Nov 2019 11:52:17 -0800 From: Kees Cook To: Rasmus Villemoes Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] docs, parallelism: Rearrange how jobserver reservations are made Message-ID: <201911211151.45A9C4F5F6@keescook> References: <20191121000304.48829-1-keescook@chromium.org> <20191121000304.48829-4-keescook@chromium.org> <656afebc-fc60-7502-40a3-52d2662c1d27@rasmusvillemoes.dk> <201911211122.02F3646@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201911211122.02F3646@keescook> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 11:39:03AM -0800, Kees Cook wrote: > On Thu, Nov 21, 2019 at 09:09:37AM +0100, Rasmus Villemoes wrote: > > Similarly (and the harder problem), what happens when our parent wants > > to send its child a signal to say "stop what you're doing, return the > > tokens, brush your teeth and go to bed". We should forward that signal > > to the real job instead of just dying, losing track of both the tokens > > we've claimed as well as orphaning the child. > > Hm, hm. I guess I could pass INT and TERM to the child. That seems like > the most sensible best-effort here. It seems "make" isn't only looking > at the slots to determine process management. Actually, this doesn't seem to work at all. Interruption already behaves correctly. I'm going to ignore this for now... -- Kees Cook