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.129.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 A4968245012 for ; Sun, 5 Apr 2026 15:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775404670; cv=none; b=AvGYC1hJVVkEAwBXwUT1nPCfSF3tc6ZKsxDZdgGFFU5uFZrDOkS7RIv9OPy3I587i9Hp+RWCFPd9QdbMniEfP8daLgrbuK3o0Y7v5+0Fkbv+sl4cNPzYCghEv021a3ehp+iqph91yJaBevK4B1DE1+/t8QjDk0ml2ffg39BH3YE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775404670; c=relaxed/simple; bh=4FJOaT538pngMmdSDnrBGXp+pJLqq28PX0GccQr7t6k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Gk+sCKSksMClahPdih3EJNlpG9YgDXANSpSM9FpblaqLujyBz+47/VGBZcVBnCX9DFGdwIHdMFIgTzEtuiGrY7rlYMC9nIVJ8UbW+QvKaklmBBwsMnIo/IR8zPv+AmjSbQKqnRmWL4WJr1iY4lE0W4fIC8CBOVNrESFMfnUjoYU= 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=W0qIzpru; arc=none smtp.client-ip=170.10.129.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="W0qIzpru" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775404668; 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=4FJOaT538pngMmdSDnrBGXp+pJLqq28PX0GccQr7t6k=; b=W0qIzpruFrtZQE9qsJOwOiPCXL4FnK4fWmQgz+UcR0dJqQZiQ/vNzEPDItVNBLKi32aPmV 2W1MfZ/cbeMf6D76kZfUvDXHEGhEha+0C3lzO/oajqlFHu+hRpyTm6djhPHIGH1k+c5/iA 5kDzXoKLy+ln15drqCzpu5dJiigQvfI= 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-125-E4ZMp9hgPnaoUmNri1Ecyg-1; Sun, 05 Apr 2026 11:57:43 -0400 X-MC-Unique: E4ZMp9hgPnaoUmNri1Ecyg-1 X-Mimecast-MFC-AGG-ID: E4ZMp9hgPnaoUmNri1Ecyg_1775404661 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 681FF180044D; Sun, 5 Apr 2026 15:57:41 +0000 (UTC) Received: from fedora (unknown [10.44.32.11]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id F37C819560B7; Sun, 5 Apr 2026 15:57:36 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sun, 5 Apr 2026 17:57:40 +0200 (CEST) Date: Sun, 5 Apr 2026 17:57:35 +0200 From: Oleg Nesterov To: Kusaram Devineni Cc: Kees Cook , Andrew Morton , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Will Drewry , Max Ver , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] ptrace: don't report syscall-exit if the tracee was killed by seccomp Message-ID: References: <6E69C3F0-0691-4115-AE36-F5E5743C942A@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@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: X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 On 04/04, Oleg Nesterov wrote: > > On 04/03, Kusaram Devineni wrote: > > > OK, this is another (although related) issue, lets discuss it separately. Yes... > > For that specific path, one approach that seems to work is making signalfd > > exclude > > SA_IMMUTABLE signals from the mask it passes to > > Perhaps... But this is nasty. OK, lets do it. I'll send the patch in a minute. It was already tested by syzbot. Sorry, forgot to CC you, see https://lore.kernel.org/all/adJvw9gEC9D1Gxtq@redhat.com/ I don't see a better fix for now. Hopefully we can cleanup this later. I think force_exit_sig / force_sig_seccomp should make fatal_signal_pending() true, but we need a simple fix... Oleg.