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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64B50C4332F for ; Thu, 20 Oct 2022 05:10:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229840AbiJTFKv (ORCPT ); Thu, 20 Oct 2022 01:10:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiJTFKt (ORCPT ); Thu, 20 Oct 2022 01:10:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EA9A15F932 for ; Wed, 19 Oct 2022 22:10:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8E70A619F9 for ; Thu, 20 Oct 2022 05:10:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0E14C433D6; Thu, 20 Oct 2022 05:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666242647; bh=tmUHpXKI/+lWtkthZy4lxPmYiKMB0DKJhhgSk82vlGs=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=s+i2cykB/wt6L62cS0b1x6RU8aGjsvZ3byaSEWoFSB1Ra/SqXe3bpp85mn2AcVO+e PBrRS78zAfBJOJyRJzz3cwxC/UY3hD8rg9+RhNm50FjYPmGfD4Q1tpVFFwSuc+zgTR 3HUzm4co2uCLXCi95cpd0qKl5HfUjiTPptsCvfPkBHNUrGMUbVRmkOvfZFcgq2NKRz 9sUcmBAksiy0wyJAOYwgaZoiCZZQyeYcQW5RsnpAskvBJZ2E/eaeImu2815xrQf+/1 wZwNmMqU+Pc5yVo2dgvRoqrBlcARmNApsumfvaflfRU591AKniKC3zqCn3h6uXHIFF uCZH/p1UdbnmA== Date: Wed, 19 Oct 2022 22:10:44 -0700 From: Kees Cook To: Andrei Vagin , linux-kernel@vger.kernel.org CC: Andy Lutomirski , Christian Brauner , Dietmar Eggemann , Kees Cook , Ingo Molnar , Juri Lelli , Peter Oskolkov , Peter Zijlstra , Tycho Andersen , Will Drewry , Vincent Guittot Subject: Re: [PATCH 1/5] seccomp: don't use semaphore and wait_queue together User-Agent: K-9 Mail for Android In-Reply-To: <20221020011048.156415-2-avagin@gmail.com> References: <20221020011048.156415-1-avagin@gmail.com> <20221020011048.156415-2-avagin@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On October 19, 2022 6:10:44 PM PDT, Andrei Vagin wrote= : >Here is no reason to use two different primitives that do similar things= =2E > >Signed-off-by: Andrei Vagin >--- > kernel/seccomp=2Ec | 41 ++++++++++++++++++++++++++++++++++++----- > 1 file changed, 36 insertions(+), 5 deletions(-) The commit log does not justify adding 29 lines to "do similar things"=2E = :) Can you describe the rationale and benefits here a bit more? I assume th= is to use the the future new wake_up helper? --=20 Kees Cook