From nobody Sun Feb 8 05:41:50 2026 Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (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 2C5B034C154 for ; Tue, 23 Dec 2025 10:39:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.71 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766486389; cv=none; b=cZJlG4DGQjkf1B5p9DRcNT4r1Cs7VzS+lAXsxzVw2YHWquPaa5zO82a1ilvYVUN7UslNBi57TM0/cBcxrU4z+PH1R3Y9cjBViN8NXrRkhI8IwiNri5VTOLlXx7PLv+/BTGHRXUZ5Ru28kZVn4SrE9pnwGC0X0QG39bKM+VaJ7Y8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766486389; c=relaxed/simple; bh=fAjZWdYkEymDyTjYWJo5jMcODY6dJtbCRrtluNHkf0E=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=RIvD6dVUCmWxi32oW9/YlcyPHSM78Z/yI06vrIM1kwC7/iiGyfAFGchAcFHx/8rLIuuZ7ubMpmXnyiKjb9hDEPO0efsgj3NdABlnHjUYolcACp0AIZE2vfhpVRmuZZO/8+BTDfJksMyNBeosiidXgOszRqNC552ZZiJ1chBQM3U= 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.71 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-f71.google.com with SMTP id 46e09a7af769-7c70546acd9so9286712a34.3 for ; Tue, 23 Dec 2025 02:39:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766486387; x=1767091187; 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=PYJUjlTcMRFALq/542a+RtLXOE2ueeeBaYx88wWzocQ=; b=rBRW1dn6AY9SFsiWQTP8/FgLreMS1ktkrYwotUxK/gsw8No1Aw6hZ1DeQZCQSuB5u3 W7aViJZKPomvRUydhDY3dOoKl+uzItYZcC/m8TAF6Wv6g0IPqSAF/5+V8l1xzzuWu+s9 3v+Hk1hChT+ha1qXqvdAjtTX55db8MbDrvRSAURbYogT79FvQpoTurwkMUmmQcdhA+cz i2emM1YuH5/ga4mCpQVpM7CsYTUZ9Hm7Jvg6bLoBdnljij294TU8U9vqNxvDmJKc5o/T bNwqMhMBfz2KS0wC+KQuYXeWVbX1ZElPql4zEkxqGn9RrZdfu0uiiwC9B536lIIM0odT AV+A== X-Gm-Message-State: AOJu0Yz51xdacQWb6QuX67hviXBRzQinj1wfZgxfUFjxQBMoW9mV/fND t6PnXDJn9AYpEH5dyjMP1OC1JH1nBTP7QTWv/BZ68cYdlwf5brIqNYOd1rRuiF7qKGjRY03+gXy 67oaDgXfndA1t14IoH+tiA0iJeHWlpR6yLNtWdMMOYIu/tXUSR3+TB36JLdE= X-Google-Smtp-Source: AGHT+IGs/CAw0GoNYlutVWVY+wXM/BcF9PlgERzNuUGhEGT4NiTFF36UxVuryPG9feWEEi61r64gwIktTXdKRf6pgvqMjP6Ybczx Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a4a:ddcb:0:b0:65c:fe8b:53b9 with SMTP id 006d021491bc7-65d0eb2f64bmr4627029eaf.44.1766486387032; Tue, 23 Dec 2025 02:39:47 -0800 (PST) Date: Tue, 23 Dec 2025 02:39:47 -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: <694a7173.050a0220.19928e.001e.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