Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp871061oof; Tue, 25 Sep 2018 05:53:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV63nKNC6p1yRgw+UHpoXaS3r7v/briEmP/WLdGGOgHWmQluxsiUyAJj+o2ajBrBCKLAc8rEn X-Received: by 2002:a62:8d84:: with SMTP id p4-v6mr982864pfk.251.1537880036949; Tue, 25 Sep 2018 05:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537880036; cv=none; d=google.com; s=arc-20160816; b=ROJSC8mkW1RmPdChNGNs6aG/9aVv9rR7+rY3fo/oBRVwrDgJ89Oo+oG+qwnsrgDifL JUd5PWAPnTFIHKtuSYx8Uz4pzlpVmoFBe7tD1eI/vREiNEsD7tSa3NnOiG03uYgLAfZD VmpGG1t0U5JulUsIGTTNFaxIG6eJTypFrovYghW2Enh4mpFvP2n1sErJopBhJYbIUccE nGDrjU1r3kjKskbtfMrVnPQC/AZnPitv5pxEec8S6bh2Qkb5AOqPzPHrlkfddzNKvEBS OOKBqpuyhEWjoe7NXaFcZ2mlbKZOAFOi2XAZLACL3hFDqiP8uyAmrYiT7REhrtKCkVEF 377w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gYLdhBhAaJlXCBbg11jVjqkjwe7x4jjbTOSMIPBI2GQ=; b=GtoP3wrgabIO66WykpkILFNEk5H/AhZhh86ixLojhh+p4k9WoRbXIzBKBvC1p/QgT2 fi+eROXjEpYSFmJb0qtiErZYVU4UtoIzurNn1cj6OvV1w8hWcAiHRuZ2KYxm2QB/p7Cz Plb6WElzBF9JzodOWOijsmcu8+JzH+KSSAFN4E0VQQwOCX2/qENynF49p5SAGYKZm9Rr aD2OORPdCvfqymfF4NlIX7tL1K/8K+d7mVuCn0tFnlY7vL8qO2MjupLqbsVrTRyaszo7 7UhiB2QHt3n5Ub5zYRymXZKeYTsumdbQtcEWvlifR7d+zJAV515Y0eV+z9kfuDkGzUtb oupw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b="FM3/PVnP"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e39-v6si2422484plg.386.2018.09.25.05.53.40; Tue, 25 Sep 2018 05:53:56 -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; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b="FM3/PVnP"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729059AbeIYTA4 (ORCPT + 99 others); Tue, 25 Sep 2018 15:00:56 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:45073 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728906AbeIYTA4 (ORCPT ); Tue, 25 Sep 2018 15:00:56 -0400 Received: by mail-io1-f65.google.com with SMTP id e12-v6so20301940iok.12 for ; Tue, 25 Sep 2018 05:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho-ws.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gYLdhBhAaJlXCBbg11jVjqkjwe7x4jjbTOSMIPBI2GQ=; b=FM3/PVnPBu7/CErvQo0cznkqqqoOb502zjc+NzD4UhNF969wB4jIAVxiYHml69CQqC e+cfqXPuOAmDJV/SmFW5aMz92zm2Y/3KU3RL+D5ltw+sAnFN7jS/ZjwfAUrJRPlY0t8N /gixP3BTnygzPZ5Io77HVdUnb5/zBqVtbZLNl0p2aZzjC1gXWPdbziQ24ihyKThx7Q2h bf86lAW1caxVR3wR7MJBSqZsol5zOgI0jaU8YNUcMZGOFqW7yHCzQDxV9G4HoVYLpljp G2gSGtPTtt47S82ivnfPQk4kg3Zt0gFj0WUT6Zmb/AFJLBSKNDAH03IYKcU8nDcdg+LB Zvog== 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:user-agent; bh=gYLdhBhAaJlXCBbg11jVjqkjwe7x4jjbTOSMIPBI2GQ=; b=syX9dzcsL+Aamo4qMSw+yLbLjdzF9k+MC+NQtcxnAv14J+Psqrj0Gkw22efFKO4uBA FozmVs2QqDcoB9/nzT7+jxkTnQcmGeGLEjyQhn58ZDlMDEGfgq2tQoGSWu9kbI0e1J79 vDhwAcntS/FD1PwRbV/gqpZvEdQSbVZglq9gSyHq/h/ck/xQTWTNoWp7KnzEE+Lkr2cv 5DiVjbkafIPGwTogDxzpbLYuKrexknW4++7uk/RBKbKmpNfwWHtZzOZg2+Kpp9ZFPFv5 +tFUial7jdaedkeImDeIVdtsTn5+TXqykF01aPDJfdAnZCGwlcO1FB5o5TtNI+yoIjK7 kI6w== X-Gm-Message-State: ABuFfojksJgFRSE0cAbe72mAKFNLHULmCo+AHAOkQN/ZYXJ6QXq+gvFW oT7NbZAt9uelgZQDn9kTMnQGodVd8M+YwSxA X-Received: by 2002:a6b:c586:: with SMTP id v128-v6mr710554iof.7.1537880009490; Tue, 25 Sep 2018 05:53:29 -0700 (PDT) Received: from cisco (71-218-141-49.hlrn.qwest.net. [71.218.141.49]) by smtp.gmail.com with ESMTPSA id b195-v6sm930110itc.42.2018.09.25.05.53.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 05:53:28 -0700 (PDT) Date: Tue, 25 Sep 2018 06:53:27 -0600 From: Tycho Andersen To: Andy Lutomirski Cc: Kees Cook , LKML , Linux Containers , Linux API , Oleg Nesterov , "Eric W. Biederman" , "Serge E. Hallyn" , Christian Brauner , Tyler Hicks , Akihiro Suda , Jann Horn Subject: Re: [PATCH v6 4/5] seccomp: add support for passing fds via USER_NOTIF Message-ID: <20180925125327.GB9537@cisco> References: <20180906152859.7810-1-tycho@tycho.ws> <20180906152859.7810-5-tycho@tycho.ws> <20180919095536.GM4672@cisco> <20180919143842.GN4672@cisco> <20180920234240.GR4672@cisco> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 20, 2018 at 07:18:45PM -0700, Andy Lutomirski wrote: > Hmm. This does mean that we need a test case for a user notifier > returning -ERESTARTSYS. It should Just Work (tm), but those are > famous last words. Just to confirm, I've got a test case that works like this: 1. fork and install a SIGUSR1 handler 2. tracee does a syscall that gets trapped 3. send SIGUSR1 4. respond from the listener with -ERESTARTSYS 5. see another of the same syscall, even though the tracee still thinks its in the first one 6. respond with something reasonable, the tracee sees this response I think that's the intended behavior. Note that when the listener responds with -ERESTARTSYS and there is no signal pending, the task just dies. That might be reasonable, I'm not sure. Tycho