Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1250660pxk; Fri, 25 Sep 2020 09:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9KqVTZU0Xn9NgjSZqRszX5VzORaYaCpVhQZxW5r+oku9ChidJvD58chJgKRn6lKKVq7HT X-Received: by 2002:a17:906:e113:: with SMTP id gj19mr3649141ejb.263.1601052574893; Fri, 25 Sep 2020 09:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601052574; cv=none; d=google.com; s=arc-20160816; b=LTXgL2QVbUzVl9521ZAHnsDYDA/rp26KVi1gLdAwGWXKOICT0XCsWDY1oFB1bXX4wX YYASSAdhuPKoKJt6FapqBGdXFwdkFbQ4VBBqsnMTCpBPUdzK67kQUbXnxDPKuGYnojLb 8Vp2SplBBlZSx5CbMt3W0P9SyMs42Q4CbbLOwrxHbEF9Cw+ykg/vmt7Num0vLWUViRqL EJQuLqigSQ45NLVc5/3eWVXVkAGAQXFVSwjwINVMTRcOciMEO5aqsze9eOq9q2e3BwWH g1QUJRzjdr8DA4jfaXflXM8KZhPM54Ze97iu3f45tosWkpS1AFePM7QdnWnLy/5bkIWJ ohLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ruCEryVFyAOn3Txfm384BRQUI0WS36tIHI9atsfBz/4=; b=cvcDwBUztyl9YaP9e0bJKPfPmFkDzjLbnKp5gExQrwcBZDPpuF29TZtWpTDQY6QXcf vUNLx7o6cgXdFqKnObuAIQpIoRYZ916GOLZpAcOssBHSYYyMXX//ufjwTnlVHVEOWP6t 8iJP3sReEsEe0Msym++mx70VlZ5XVDscpHeMEqA+0SRUaK5+AJmHJImgaqcPJow5ptjW npMFRAluJ3BjfSCOS9bFI+yeJg+ycy6efOF/lqwOo9rAlLbR2FalQ+AyeUrTVGKWY+Gy THRaG/zp0S6mkSGnMVaQWDHEP0aBhppi+SG3WysqykBc1i1mA2G0viDINv+Tn3KsaUL7 t6FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NOC83klT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si2014424eja.34.2020.09.25.09.49.11; Fri, 25 Sep 2020 09:49:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NOC83klT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728858AbgIYQpR (ORCPT + 99 others); Fri, 25 Sep 2020 12:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727495AbgIYQpR (ORCPT ); Fri, 25 Sep 2020 12:45:17 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B9FC0613CE; Fri, 25 Sep 2020 09:45:17 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id y14so3052259pgf.12; Fri, 25 Sep 2020 09:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ruCEryVFyAOn3Txfm384BRQUI0WS36tIHI9atsfBz/4=; b=NOC83klTMa/B6Y6Kt6iQ/A5oCUqhE3U6VAb96tggPynZTwJM2eMUu5p4Z7lpPKAoEa HzX4Z0ruwL7YNnauYGynp7rwc1cCrHiDOqjn42iminWT0UhtajgdEfmkP8J+SI0AeSph qaT0GLEuXQCEbNgXXjDTFP9od6z43+v9ZGE4sAnqYH3s4f6oCM2r3MN9Fa7EtKQlt8B1 M998jx/BOxkqJWyOC3L/YpvcDbjvefT8RBs9BOX3k4Q05JGq8q5UuVuJYHOSLrU8KPzk sM24X41y9k7PyGoK7GYsmRN6VW/nq2wmRIK0jH6rAukl+nU1Sb17uLYTWq41pwywp4DE wncw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ruCEryVFyAOn3Txfm384BRQUI0WS36tIHI9atsfBz/4=; b=PYdis7zCOfQ6FmHAkX5od4wz7+FSoMEyIPmr2oxjGu7QB13qJbP+oMYVT7VmCpGx2c vAmc5Bj9m1T+8R/OwX1OaYeoM6DP5RBUZEcztBFQkwROpVi6YahQ62mBIYWbOG+rRhoM 99uvmZNDVOY1dQs/mx0XDAJNq7seF0yhqO0rcSapzdl5Sxii1caduYvGv3agNRcP2ht1 kUmqPtS27T4F6H1aLcoprrh1e1q397+2VJ0V/x9H2PXDiWLrgwpHanutXN+3Uu07L6+C xVEkuz6J/npWq1rEKT+kmgKTSzqkXjaizMFfGkfNtTYMnMqYlz3ZdYVacVeHexkXFW7K Nshg== X-Gm-Message-State: AOAM532aGAXN/VZIs+PM9UjDOsQumYCCGUyjwie5LUdHvqIa8rCrtfN+ iF94jeosqea3SdelSVHtSGTLBhhuS2EHIV3AT/M= X-Received: by 2002:aa7:9491:0:b029:142:2501:396b with SMTP id z17-20020aa794910000b02901422501396bmr151396pfk.48.1601052316926; Fri, 25 Sep 2020 09:45:16 -0700 (PDT) MIME-Version: 1.0 References: <202009241601.FFC0CF68@keescook> In-Reply-To: From: YiFei Zhu Date: Fri, 25 Sep 2020 11:45:05 -0500 Message-ID: Subject: Re: [PATCH v2 seccomp 3/6] seccomp/cache: Add "emulator" to check if filter is arg-dependent To: Kees Cook Cc: Linux Containers , YiFei Zhu , bpf , kernel list , Aleksa Sarai , Andrea Arcangeli , Andy Lutomirski , Dimitrios Skarlatos , Giuseppe Scrivano , Hubertus Franke , Jack Chen , Jann Horn , Josep Torrellas , Tianyin Xu , Tobin Feldman-Fitzthum , Tycho Andersen , Valentin Rothberg , Will Drewry Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 10:04 PM YiFei Zhu wrote: > > Why do the prepare here instead of during attach? (And note that it > > should not be written to fail.) > > Right. During attach a spinlock (current->sighand->siglock) is held. Do we really want to put the emulator in the "atomic section"? YiFei Zhu