From nobody Sun Feb 8 15:58:51 2026 Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A375C267AF6 for ; Thu, 18 Dec 2025 01:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.70 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766022632; cv=none; b=W5lda4KHC9p8niIs1E4Rfo4Um/4wVLXKzqett79vRSlOjqZCPD8cB7s5eb4RVx+FfssnzBp0eUKUxaJLdKNSMCuzaeFFwiRcotfwJ65AhJdl2YqE8F4XuNJQ2mO4dBt9xvGrdhHVRD8VbPe3yR2jxsRRyPGOzPRzAPTY0nKhVsI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766022632; c=relaxed/simple; bh=XJqX5vz4bsZFbMZjY7zSNyL+szLXYHEgI1hO8dV5180=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=K656aqlABmFAPGWPKQXVxwM95Tjo7BT8iLfq3Ua4jHqvcktGiYwgb20MtF2fbppC1+GUmcSsCoqJCSPxZAPjWrMVy9WEILsu4prMrhKBM6y4CQf1t73RTkTPb98ag+6JcQj6a/DeKuSqZb5TtEIB9s1PdDuVgA4p3QUDwdksJX4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.210.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-ot1-f70.google.com with SMTP id 46e09a7af769-7cacaa675feso148144a34.3 for ; Wed, 17 Dec 2025 17:50:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766022629; x=1766627429; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yMBtbv0HOVpQdADcr+g8CtfY131KNrlY/VBYD+Gtqi8=; b=fqoI05maYvZe5nl7C+OnXjdLUXFBLiR27KMEOg8Py+Hk7TF20GeId7cUe6zP9d3Uql 9QNitbDm6mHKWOf+Xzckmd0Tt2EKDCZ5XNAOsJGchdBFOW5xv+IBdcMOHaBdc6noMCvy 4HUqz2PjIUEPbrcimuEqSw68iN6lIED689ntL1iyQqQN9Yzhv4lKOeByLIuTrnnglEUG BxlCDKXJT3pefQTFEW1PCN01KpA4TrNJShzuGpmb7hfi4Q3TLp8GcPYYUek806jatZk7 A0k/ozRWBpLHIbfqnQkL5VbtB2NIADH30kgx9+aVtlCZYdjeE0rRPwUJzDbLRxBw/M9p 2xSA== X-Gm-Message-State: AOJu0YwcJAXtP9IfmnQLxcTWZ+yRzLJQPzwQAdyC7HvmupWeWgOxcMki hiSYbT6GCSK1jSOIotqF6o3kpBrZbCgQoEUpq7+1orA55PxZTNxtppuBSISCIizDYGViX/Km2Br yVDu8qU6sVRYBgrHOyhmAcfC7TkgHzcH2APWdVRdufFPEr0Utji+UE9rukdw= X-Google-Smtp-Source: AGHT+IEsxzrUT8e63Ep2w1BCRsrzSgvhYhmztVDfOF85v/WIRGNLzKSKc9iXk9sEevQlfaUfLDBNTq5HHV3sMda2Trny6cp9e3XD Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:4088:b0:65c:ff42:c861 with SMTP id 006d021491bc7-65cff42ca7amr480042eaf.4.1766022629677; Wed, 17 Dec 2025 17:50:29 -0800 (PST) Date: Wed, 17 Dec 2025 17:50:29 -0800 In-Reply-To: <692fc776.a70a0220.2ea503.00cb.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69435de5.a70a0220.25eec0.0024.GAE@google.com> Subject: Forwarded: [PATCH] exec: do not call sched_mm_cid_after_execve() on exec fail From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [PATCH] exec: do not call sched_mm_cid_after_execve() on exec fail Author: wangjinchao600@gmail.com sched_mm_cid_after_execve() is called from the failure path of bprm_execve(). At that point exec has not completed successfully, so updating the mm CID state is incorrect and can trigger a panic, as reported by syzbot. Remove the call from the exec failure path. #syz test Reported-by: syzbot+9ca2c6e6b098bf5ae60a@syzkaller.appspotmail.com Signed-off-by: Jinchao Wang --- fs/exec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/exec.c b/fs/exec.c index 9d5ebc9d15b0..9044a75d26ab 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1773,7 +1773,6 @@ static int bprm_execve(struct linux_binprm *bprm) if (bprm->point_of_no_return && !fatal_signal_pending(current)) force_fatal_sig(SIGSEGV); =20 - sched_mm_cid_after_execve(current); rseq_force_update(); current->in_execve =3D 0; =20 --=20 2.43.0