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 BD90322FF22 for ; Sat, 4 Apr 2026 14:20:15 +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=1775312418; cv=none; b=hQSAJYGRtrAeUeggcM9IOR4VANIAKwDuAX4TqdzzOmsxJKhU8DDl+H0DxPD+iYn6NkIDl/IuVynM6cBIE6UE/s1y3d9ne4jIMnTMpqxfoYOkA7ID8+tcdgNMjdvDkoLWdpMK8pOIHpi3L5CRWpGlf2PKWYUZnvMKJ+gXo66Ulic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775312418; c=relaxed/simple; bh=yEQDuRUfs5EyLrZ7zKv7FNBoctv6lGcLCBYn5ggxPCg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kN179keC3RKz+lYFMVfk/1dQRbpKGf86MXM3A5gunOgxZ/b3u5rlPKK0oMiyyVaJYqa8C2ZZ5vQlDJD/p/ps+qc4lNSD1rnFVqHGFJcqIoiRHb1zXIdN1aUCLjdxZha9cXgOHiNZ7USZE4SbAgjOfwCFOiHLdc7CAIv2Ix2IwH4= 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=DFgIw/65; 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="DFgIw/65" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775312414; 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=6gSuSK98E/rohFhWGKFH+2MI05lw+frFAC61yNsoPo0=; b=DFgIw/65I9ZUwZS4odntN+IBaQutEjs9iKoSQLgHxBeudDHwGFn9HvDzR03MjnvIToxpXs ortv3JD4FuCMp5HZTx01iXjkHF7eQ3z4hkesGZ6VtXPsOark45JRUtudH+2zHkXgYd5c9I WyI6A5n1j8y6doS/Ux9HU4VCPCybw/o= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-659-5dGWPv1DPSOfiGrMap3eFA-1; Sat, 04 Apr 2026 10:20:11 -0400 X-MC-Unique: 5dGWPv1DPSOfiGrMap3eFA-1 X-Mimecast-MFC-AGG-ID: 5dGWPv1DPSOfiGrMap3eFA_1775312410 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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9E0B21956094; Sat, 4 Apr 2026 14:20:09 +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 901FF19560A6; Sat, 4 Apr 2026 14:20:06 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sat, 4 Apr 2026 16:20:09 +0200 (CEST) Date: Sat, 4 Apr 2026 16:20:05 +0200 From: Oleg Nesterov To: syzbot Cc: io-uring@vger.kernel.org, kees@kernel.org, linux-kernel@vger.kernel.org, luto@amacapital.net, syzkaller-bugs@googlegroups.com, wad@chromium.org, Kusaram Devineni Subject: Re: [syzbot] [io-uring?] WARNING in __secure_computing Message-ID: References: <69953966.a70a0220.2c38d7.0111.GAE@google.com> 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: <69953966.a70a0220.2c38d7.0111.GAE@google.com> X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 On 02/17, syzbot wrote: > > WARNING: kernel/seccomp.c:1407 at __secure_computing+0x2ae/0x2e0 kernel/seccomp.c:1407, CPU#1: syz.0.17/6077 #syz test So signalfd_dequeue() is called by get_signal() -> task_work_run(), the work was queued by io_uring... Thanks Kusaram. Obviously this is not the right fix (and we should not blame io_uring), but lets test to ensure. Oleg. --- diff --git a/fs/signalfd.c b/fs/signalfd.c index dff53745e352..8819dea943f8 100644 --- a/fs/signalfd.c +++ b/fs/signalfd.c @@ -158,6 +158,9 @@ static ssize_t signalfd_dequeue(struct signalfd_ctx *ctx, kernel_siginfo_t *info ssize_t ret; DECLARE_WAITQUEUE(wait, current); + if (current->seccomp.mode == SECCOMP_MODE_FILTER + 1) // SECCOMP_MODE_DEAD + return -EINTR; + spin_lock_irq(¤t->sighand->siglock); ret = dequeue_signal(&ctx->sigmask, info, &type); switch (ret) {