Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6194964rwb; Tue, 22 Nov 2022 09:57:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ECR2zIRGO/EJ0xG5+8VmX4idgSt+ic4sRknQ6XIU5B3jILH3YdjreF4nCBI5eHSzCmsf+ X-Received: by 2002:a63:cf41:0:b0:476:c65c:3761 with SMTP id b1-20020a63cf41000000b00476c65c3761mr6634802pgj.57.1669139872424; Tue, 22 Nov 2022 09:57:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669139872; cv=none; d=google.com; s=arc-20160816; b=DmU7hz9sRqCtvwkCX/b1jak+9eqoUbypWtwCnKsghifgZpzQL3nkCtDQJrCGBVsN1u ZCqqXARxI8yM3k74PGgwFG1+T0jDD4r188qLlNp/IuqWQp+0lCN+NdrxByRMKT62/ShJ YOBOA6NHYObbYi0LDwNrAy3lEqMg5l4BcOepNixyMyypdLA9wGM33q4tT9vlcijy/xnP 8n/cDSMrQYydE1716VDeYDKYs0KoYMejJZrLz8yTTb5hAPs1D0hzSudjeiG3kPQOWKrK QCXtCyCl6d0SlQgu/rLgsvl0ENlSUubR4pSpETHOab4jxAlT2eopXf35Lh30oe3Bumej 0BrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=I8wkkRX69sIhIBAwNUmzVRDA4iCA+IYX3ihJPlLDEDc=; b=xuCNfuFEB7o573QglvjOsdmzs426brTrj/T0SfpsuvikvvfZyyUWz5VSl49cnkVrNq NT5XgraSI8/1U77lwKyhL5G3AUHiRPEhWbMyr8F+LnSFf2u0HhaSRIGiDlgoI5t4SVDP hT+6cQABrc/NHoFLdKCic6OtgCFqFAi5x8fnP7Q/oL+eMb6kr4G+8xnxs6ntUqGI2WXZ sZ3gIk0U4WGrTmqTml9GWP4BvHRaCRiQRLbLnppys7yV59FmYLS2DXhlVoL3nQYkqqi2 U3wpbev40eQfJSzBUGUZk/EVKtWBKDIhO17Y8Ksj54mHWG5W+IW6ot6oLOCWEzJBoUAD D7Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jX31Z4RI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a635913000000b0046ec381a28bsi14670218pgb.25.2022.11.22.09.57.34; Tue, 22 Nov 2022 09:57:52 -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=@chromium.org header.s=google header.b=jX31Z4RI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232889AbiKVRPs (ORCPT + 90 others); Tue, 22 Nov 2022 12:15:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232852AbiKVRPq (ORCPT ); Tue, 22 Nov 2022 12:15:46 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0316C73BB7 for ; Tue, 22 Nov 2022 09:15:45 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id c203so14945875pfc.11 for ; Tue, 22 Nov 2022 09:15:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I8wkkRX69sIhIBAwNUmzVRDA4iCA+IYX3ihJPlLDEDc=; b=jX31Z4RI+TO1Xz7qsX4BnOuS8u0xKdw2IJRFFGNHToCfHTilU0Iw4KUt74bGooIHwN iRdiwrjXrSJlAVAG+CLOxIZxYpqlZf+hlwjU3azZinH9f6PXMfgy2kHyRqWK/eVac0oy DT+tCmfduxVlrmEdJ6qoHd1VwJFO/Y6D5aFqE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I8wkkRX69sIhIBAwNUmzVRDA4iCA+IYX3ihJPlLDEDc=; b=CC1q3nHJGFwtDFkzFw83XFaptJeXFTuSq7rwVnWUvkVjkLd7xNcqiTy8s9PbKDeSaD N/PRt38QyDYcjSS5I8p3RlMZh4LeTX/sTELCU5L4UuHgJp8VB1zCkxgInuUE9NDMPzAq anQCyuslyTw0ukmpJReenhKHxk1+Aq/Cw4F/8CbW6SNNpmeF1w6rmiLnh1zzyc/NJWwn OLDMzl34c4ujrXLxpUn4pyviC7n9wOc2d+gPjBLImpIUJrzPp+PDMlDmtYukUnPVRhjI P0MKFEZ83u+t1bBVEAEztvvnTEe3QC1BV17e4o4BrfHqeA4FK95S87GC991y6QTB+bLN InVQ== X-Gm-Message-State: ANoB5pkZO2C57Zhys/w637e6aqLqrRgIAexf3WB6hdQHXt6C72M0G1VK dG/oBCM47wvrZya4Bw7PIUHRbvL9KRO8K0xX X-Received: by 2002:a63:f012:0:b0:477:b658:c2ea with SMTP id k18-20020a63f012000000b00477b658c2eamr688956pgh.598.1669137344396; Tue, 22 Nov 2022 09:15:44 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d12-20020a170902654c00b00168dadc7354sm7709131pln.78.2022.11.22.09.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 09:15:43 -0800 (PST) Date: Tue, 22 Nov 2022 09:15:42 -0800 From: Kees Cook To: Petr Skocik Cc: "Eric W. Biederman" , Oleg Nesterov , Thomas Gleixner , Peter Zijlstra , Marco Elver , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/1] *** Fix kill(-1,s) returning 0 on 0 kills *** Message-ID: <202211220913.AF86992@keescook> References: <20221122161240.137570-1-pskocik@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221122161240.137570-1-pskocik@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Tue, Nov 22, 2022 at 05:12:40PM +0100, Petr Skocik wrote: > Hi. I've never sent a kernel patch before but this one seemed trivial, > so I thought I'd give it a shot. > > My issue: kill(-1,s) on Linux doesn't return -ESCHR when it has nothing > to kill. It looks like LTP already tests for this, and gets -ESRCH? https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/containers/pidns/pidns10.c Does it still pass with your change? -- Kees Cook