From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5938426D3F for ; Mon, 21 Sep 2026 14:14:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790000063; cv=none; b=OAzQKOEP+ZAtztSVRa1yn0QzHs65nIYL1wNMIWARSnwhPCjzXM3cK7rkxPdT/I5EUkaHeocGlXaJnkNa+FmnaJBYorqi1PynF9hipyfWR7UwKpWsyRrkcMBeUUAdcTV01jyGP7WrSMe9qZOtLaUIvBnVkGHsah43Z4Sz96CveW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790000063; c=relaxed/simple; bh=bO3eqdk+KhsgCeaaCoHMrCMXw1pX4k1IkldDHTIa6L8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ExwcXGixMKcp1Zgg+/QrH45TY2DHBi8MDspzFVg3uupZgECA5UQPhwAQO577LsQgvgPk1sAxgEokeXafRt8wa/8ahfegE6N8Sq/RFz/F5Y9fJXDCVJHbcExLkIzPHIeK5BK6vcNHPzzdbEq+P+zcr48IVycUEXelYxqPTr0gO5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=LOH6U4Iz; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="LOH6U4Iz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790000060; 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=moO88O+F0fAZ0OS5+T5zgKqHROvYfe+dUtWbWvUTEmQ=; b=LOH6U4IzaGsJ+Z1CifQ6jWGkw31I/iT+ldOZTC+fDpuRPDi7k+joDwMYxwaYXvtvOLBp4i qGlJXHKi3gsC2O0WIgvr2+1XUlYODNNxeZhX67/yxBoAJfG7/Vxz7xy8NyzwU2i3t8ka98 RqP5qDQlrUWFVLgpTScBfRwdT/gn2vg= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-538-PCjHSjL8OHGda3XrwctxBg-1; Mon, 21 Sep 2026 10:14:19 -0400 X-MC-Unique: PCjHSjL8OHGda3XrwctxBg-1 X-Mimecast-MFC-AGG-ID: PCjHSjL8OHGda3XrwctxBg_1790000057 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9953D18011EA; Mon, 21 Sep 2026 14:14:16 +0000 (UTC) Received: from fedora (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 397C219539A7; Mon, 21 Sep 2026 14:14:12 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 21 Sep 2026 16:14:16 +0200 (CEST) Date: Mon, 21 Sep 2026 16:14:10 +0200 From: Oleg Nesterov To: Christian Brauner Cc: Chris Mason , linux-fsdevel@vger.kernel.org, Jens Axboe , Alexander Viro , Jan Kara , NeilBrown , Ingo Molnar , Peter Zijlstra , linux-mm@kvack.org, io-uring@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 09/17] ptrace: refuse to change the signal mask of a user worker Message-ID: References: <20260921-work-coredump-fixes-v3-0-8e4adb1619e6@kernel.org> <20260921-work-coredump-fixes-v3-9-8e4adb1619e6@kernel.org> Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260921-work-coredump-fixes-v3-9-8e4adb1619e6@kernel.org> X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 On 09/21, Christian Brauner wrote: > > --- a/kernel/ptrace.c > +++ b/kernel/ptrace.c > @@ -1227,6 +1227,12 @@ int ptrace_request(struct task_struct *child, long request, > case PTRACE_SETSIGMASK: { > sigset_t new_set; > > + /* A user worker only ever takes SIGKILL and SIGSTOP. */ > + if (child->flags & PF_USER_WORKER) { > + ret = -EPERM; > + break; > + } Acked-by: Oleg Nesterov