From nobody Sun Feb 8 03:58:20 2026 Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) (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 B4D472F744C for ; Thu, 18 Dec 2025 02:24:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.72 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766024688; cv=none; b=DRc433Lq0wQBQlHGlRFetg70Es19zBk5HKaTu0NILL0whvvKCFxD7ajTCFnTwWWMkaOqyl+RZFffgwEieN03h10RXuYgdApFwowTbH6GCRceW9BmHRA16yXySQF8CiQoIntA6Oi+26zlOnN0jEfKpcUlcv8zwVGbqgwgQ47ceaE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766024688; c=relaxed/simple; bh=T8qM6wW8oxjjstWs5jaWXxlakKiv7DbPqf28rGaY7xk=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=cqo1BbybqpZCDWMLmHvMVxrbiZi+jFHZonINEfr8cMm1I4L3qME0HPG53uJDVU2oXr9eADrKZ/1Ywb1FkahCqnD6dIAzer84mX203ypkcHussRCcSlu84tN3OE3KIG9pDgtz0pDimDTBzcFCgTQugAcSMyNh7U8iLpTHEtdzefY= 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.72 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-f72.google.com with SMTP id 46e09a7af769-7caf4cdfa28so96883a34.0 for ; Wed, 17 Dec 2025 18:24:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766024685; x=1766629485; 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=rvCvH8qhYiACHorxUoLknlDCBpOBak5GRZRlAAb7cq8=; b=oM5ENOQU1VqIFXXX9CXGTZcjUFm5zLm9AzQb01jVQ4WdXsztTmU21+AV2cd69+XSHi snfl+f7xywCzJQUY2BUTL+F+VNoNwjm9cCRpSvjp1JMDbJjlrCli6p4i03fHO/SC/1Cj USsIRB+6ue7D9ctcLH9kIGMXvaovse+ZMg7hq/T5N3uGB6spz8ZxvumK7IZC3HZiwKSJ Oa6LBRxJeOGvUG5lbTsstiz3TTfUnWSHoM1TB8vzSdLAn98J0yZwJAPLRAeOT8EYc2GF sm+IitAWSxIACld2AIZC2KbLamjb4Krh4oMwSEgQ7TPw46sYxsbdKEBXSj5hwxe0k9uQ tevQ== X-Gm-Message-State: AOJu0Yz2s2Cm66dJVu/c0oDtw1mM5Y/yw4LqORsxp/ktpTwsMoJwj5gm 5zYpKcMXibngLbpVbalakLHQeFMqSwQ00BynODMy5DnItMrmJSrUjK/O2G+Q+xmCVr107tC1a7k 5icc55cESb6XQRixwcR5C14UTUtClFidKve9CPbltrRKlecNvLbIkyo03qsc= X-Google-Smtp-Source: AGHT+IGCAOH6R5xQ4RfeawSMypQm5wrXjOiq4RCUbREMK+eBT5opGVPzwZv6dtALeQuNMHjHxP6TEBa3Qr/DnCpoJ9xWxUbka8mq 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:1506:b0:65b:81eb:ae61 with SMTP id 006d021491bc7-65b81ebb67bmr2819787eaf.55.1766024685686; Wed, 17 Dec 2025 18:24:45 -0800 (PST) Date: Wed, 17 Dec 2025 18:24:45 -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: <694365ed.a70a0220.207337.00c6.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 Cc: stable@vger.kernel.org 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