Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2859122rwb; Fri, 20 Jan 2023 08:12:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXvuypJkZm7E3O8/xpDvStj50k4HmnmpquxXGBSOVYEX97/z/+OJMGCkA7CJkde+RI8gOtoM X-Received: by 2002:aa7:cc81:0:b0:47e:eaae:9a5b with SMTP id p1-20020aa7cc81000000b0047eeaae9a5bmr15086406edt.42.1674231123503; Fri, 20 Jan 2023 08:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674231123; cv=none; d=google.com; s=arc-20160816; b=nS2buU6naoyK8jUHA8Mb5d3Mf6kyPR7B7iommY2d/Ool20Ndx31zQuzWDr0k3J5stS X/Cfr3AQm+xqqzJNfsHnd8x4b1c8koCQXSx4rdCcQSjLOt4ZDyE10ETCd9g4JnScF65N Ash31VtY4ZpyZ6SXNUXE08TNdg1oH7j5Nq3ixJnkP6+tiIU/xFlxWtfOVKLmLxTzeuMc 7Z2/+chJ4O33Qq0KDT1/WW7XOOTdI2TRSzl88mcH1r4xR1MtO82g/kSrW7AAdfIBb4+R hKB2KnHsHHq7BCaDveHzHNKfevkT+gGIR1ISSWLeGAfOR+cJyTcf6LFku7Vzt+i+ob/n pAfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=xsYESgVCcA1MZ2umV5mhLIskMRGsLrEQukfEQC626BQ=; b=ctgjyhVv4SulOmEGEHcJWM+obSbWP2mYXR48ENm7cTJXEKLOCjO7J2AXkkKbqSHjTf 4go4EiKmwAvCnk5kq3tVVtDiuiCqfK+kCY9ZSgf8Mx3Dhvc8ZbsU34g/+SMf5L6NyJYs yoi9/PO0uQBaT8B1exffb72n42zXfDp2rI4VUuAtukIbyzbYtGM8Ou4x7efnorjx3IXH 8kF0pPDA/kZuf6e38+7+xerJ284kWyL7/+pAOTxeuBVopBuvqg8m2C9kyqEmPUwabFl6 doVzeuE67Xz4bFptlsvC0XvssRIStkQSTav+kim66ax4Fef0JdobjXJtKcZy9FWeZCzy yH8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bb2rwc2M; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a50c908000000b0049e5911d3f6si6855103edh.329.2023.01.20.08.11.51; Fri, 20 Jan 2023 08:12:03 -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=@redhat.com header.s=mimecast20190719 header.b=Bb2rwc2M; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbjATPXo (ORCPT + 49 others); Fri, 20 Jan 2023 10:23:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbjATPXl (ORCPT ); Fri, 20 Jan 2023 10:23:41 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4C4E44BF2 for ; Fri, 20 Jan 2023 07:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674228181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xsYESgVCcA1MZ2umV5mhLIskMRGsLrEQukfEQC626BQ=; b=Bb2rwc2M+pEaE8cYpMTzL1K5NuWGAFjRab2ZnU2fS0MS2R1PlwBaRvGLb39SXfYxDnIhWS rrhTT3ehZ/xWlE8f5dD5zerEP2Xo/DPatv8kYSaDik6PZ9vLrjVX3NO4g17GKellOBJyP1 jwWvQt5B1a5I6lNCI7TEtgSPwcHNu5I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-493-Y2hQe0jBN5yvTpDT1QYZ8g-1; Fri, 20 Jan 2023 10:22:58 -0500 X-MC-Unique: Y2hQe0jBN5yvTpDT1QYZ8g-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A02E985CCE0; Fri, 20 Jan 2023 15:22:57 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (ovpn-193-66.brq.redhat.com [10.40.193.66]) by smtp.corp.redhat.com (Postfix) with SMTP id 26A9340C6EC4; Fri, 20 Jan 2023 15:22:53 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 20 Jan 2023 16:22:55 +0100 (CET) Date: Fri, 20 Jan 2023 16:22:51 +0100 From: Oleg Nesterov To: Gregory Price Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, krisman@collabora.com, tglx@linutronix.de, luto@kernel.org, peterz@infradead.org, ebiederm@xmission.com, akpm@linux-foundation.org, adobriyan@gmail.com, corbet@lwn.net, shuah@kernel.org, Gregory Price Subject: Re: [PATCH v3 1/3] ptrace,syscall_user_dispatch: Implement Syscall User Dispatch Suspension Message-ID: <20230120152250.GA9801@redhat.com> References: <20230120144356.40717-1-gregory.price@memverge.com> <20230120144356.40717-2-gregory.price@memverge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230120144356.40717-2-gregory.price@memverge.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Hi Gregory, I'll try to read this series next Monday, I need to recall what does syscall-user-dispatch actually do ;) just one question for now, On 01/20, Gregory Price wrote: > > --- a/kernel/ptrace.c > +++ b/kernel/ptrace.c > @@ -370,6 +370,10 @@ static int check_ptrace_options(unsigned long data) > if (data & ~(unsigned long)PTRACE_O_MASK) > return -EINVAL; > > + if (unlikely(data & PTRACE_O_SUSPEND_SYSCALL_USER_DISPATCH) && > + (!IS_ENABLED(CONFIG_CHECKPOINT_RESTART))) > + return -EINVAL; Hmm? git grep CHECKPOINT_RESTART shows nothing. Oleg.