Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2509506ybp; Thu, 10 Oct 2019 08:23:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdYVPVwUFBlOvwN3bxJ0+KCYQmfOt6cq/jzrZGk/oy2yAyodAxEAohXQWk/HSuiJT2ke9y X-Received: by 2002:a05:6402:32a:: with SMTP id q10mr8932159edw.149.1570721023843; Thu, 10 Oct 2019 08:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570721023; cv=none; d=google.com; s=arc-20160816; b=Shz8d1U1kd7ha+pJ8vNiG/yE4qEwWPjnELhvxUy+8Z6FaRgVcXFiGDvCFRdZbdpmty fcmDrFYHiYYTV8zkvTyId3RshHCVEJY4p+yR5UCj6a+2gaF1L7Fn9oo/vdBrQVnWJ0D1 VVDZJrFuFGEyAvN+knCNJc2VCZFOBWUuBYqZ4OStV1efFyowM7Kh1qlDTQ6gVqsZgKpc mA93BR/dLcvL7r9yje6O3OESCBXdPux/mOlIVJKeamGgExZyHvFx6/R8Gzg8/EvOptTH p7eora3HeUd3CdezUT3hg1zkcTbItYvGo1yma7I8LDH7FV0sr2kdMUumC3ydu7AC206c 9GRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=AQzHR3ki/1cmLYqW+y+E0A9kkO7YMs7hVZ7IEL6mtbk=; b=Hu9tGghwx6jiQjuGjDLpDyLfsEb1bWjtCW96ey2V+8p7emev8gYv17g+KIeQSFbzVL H4+kPFFVIsOtWy9+EDo4W5FLrgJSBhFZuuKrshWSp5sV3zeTkqabb9219PykfWT9cRKv vkukjVJ2aFY1ng0VM6vUNFY1n5ENXuTAh3Z8IasSlmc0Hp2hAnhC/vgIVzYip2dWCC+S PlRQZF7clblW0pHwT+0bnVcxNFJuIDv4D6aAJNAImRmZ8eCJa6JGgjuXTXS7rgs54BkG +eC5FHbTVdGDbTNYgpZi1BIbMhNZuxe+ioDt6F2pN8PXOoRm9fAp7kkB2hjhAV+wxFHU +YSw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si3354509edq.195.2019.10.10.08.23.16; Thu, 10 Oct 2019 08:23:43 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726320AbfJJPWl (ORCPT + 99 others); Thu, 10 Oct 2019 11:22:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60250 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbfJJPWl (ORCPT ); Thu, 10 Oct 2019 11:22:41 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CF41110C0936; Thu, 10 Oct 2019 15:22:40 +0000 (UTC) Received: from oldenburg2.str.redhat.com (dhcp-192-200.str.redhat.com [10.33.192.200]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DBD731001B36; Thu, 10 Oct 2019 15:22:31 +0000 (UTC) From: Florian Weimer To: Christian Brauner Cc: linux-kernel@vger.kernel.org, Oleg Nesterov , libc-alpha@sourceware.org, Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Shuah Khan , Andrew Morton , Michal Hocko , Elena Reshetova , Thomas Gleixner , Roman Gushchin , Andrea Arcangeli , Al Viro , Aleksa Sarai , "Dmitry V. Levin" , linux-kselftest@vger.kernel.org Subject: Re: [PATCH 1/2] clone3: add CLONE3_CLEAR_SIGHAND References: <20191010133518.5420-1-christian.brauner@ubuntu.com> <87d0f4of7j.fsf@oldenburg2.str.redhat.com> <20191010152148.gdea35mi7s6ivev6@wittgenstein> Date: Thu, 10 Oct 2019 17:22:30 +0200 In-Reply-To: <20191010152148.gdea35mi7s6ivev6@wittgenstein> (Christian Brauner's message of "Thu, 10 Oct 2019 17:21:49 +0200") Message-ID: <87tv8gmxqh.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.66]); Thu, 10 Oct 2019 15:22:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Christian Brauner: > On Thu, Oct 10, 2019 at 04:19:44PM +0200, Florian Weimer wrote: >> * Christian Brauner: >> >> > @@ -2567,7 +2572,7 @@ static bool clone3_args_valid(const struct kernel_clone_args *kargs) >> > * All lower bits of the flag word are taken. >> > * Verify that no other unknown flags are passed along. >> > */ >> > - if (kargs->flags & ~CLONE_LEGACY_FLAGS) >> > + if (kargs->flags & ~(CLONE_LEGACY_FLAGS | CLONE3_CLEAR_SIGHAND)) >> > return false; >> >> Does the comment need updating? I feel it's a bit misleading now. > > Yeah, maybe just: > > /* Verify that no unknown flags are passed along. */ > > ? Sure, looks fine to me. Thanks, Florian