From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) (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 19A83270EDF for ; Thu, 8 Jan 2026 05:12:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767849155; cv=none; b=Fp2SB7Ptu4+UuWSYve2xWBIFom+KhNfoK9/0JbqG4yS7GlkvRdY3bQVY77dQdmBK2k+edn/SmWXJsV0ZwnAsU2E5nCmNKKIzFPduwXM/C6AHoaR2xzdAig868WVlynOiB/2JhC8nXruN6SLjCxgqddEUyK6hZ3qU6KArcHDaQ5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767849155; c=relaxed/simple; bh=5uJQAZisaG1Xfj5u1EEEIJsuPrnCZWpH5ve+HTAaRA0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MiaANG4EQyM42q6Lw7KwoKsCtjPBAg16q/ciTP3QJWsK6iuLw/nBr5z7ykl4STwvkxh7UaB/bHUcVWENhEw2LZI27V+7yhw7LSxT1Y+9iHWMWr2E/2QHqN9Hc5Ymy1vJrD2fwVrXqZnDsP4A2Le505yzpfv7gllaaxa4HCZrU1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kOLf4I/K; arc=none smtp.client-ip=209.85.214.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kOLf4I/K" Received: by mail-pl1-f194.google.com with SMTP id d9443c01a7336-2a09757004cso28087325ad.3 for ; Wed, 07 Jan 2026 21:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767849153; x=1768453953; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OSwdeu7tKlsfiSUj4eNrRufNOD7Vq/gThbg2+UQyNgA=; b=kOLf4I/KMxE1m/2ahLR08ybqTjh/dCBOEGrrE+Fe1mohvSFZQD3ou+lSwjXRMegbaN BfTMw+OMpL+b5sFsrVxP1Ryppe2bqPgO1XHn5dhuYlPtazcefWfiT2PlFZOFsDXulbwu 6Jn82TSUx8h4cWMQCRlrazHmQL+tSmcyT0oI08Om66wqtX5k/4GrgwJYxpsOBf0MC4X4 f8cArvRl02VH9kB/grQ2rtWZ1y8dFOg0BlroLvQKjhCvET3NGT72Aw5w5kpj+mCvWaZy Rp7NG90Zm1CxBj7PMHklhvkc6cLL7NuHH8pwvj2ZjOi6LwfJY5llpkG4LVs/UH3WdmQF ffOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767849153; x=1768453953; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OSwdeu7tKlsfiSUj4eNrRufNOD7Vq/gThbg2+UQyNgA=; b=EHdvMlpeRCS7oVlgwhoGVbTx2UsMMLfwMUccO4Gh43yL1KT1UFnqvTpBXyMOtnsC6O s4GaYodnMSJ5MzpE1hxrEqHW2oV1jVkLTqjIsF4GMGwyJeTMhton29u+C0AUlQOlRQTO wBU6i8zJkMXsHs5NihGRWirX2l+o2/mz+wwUCGdDksn5Y0WhMsmHyclRAQs8yG8XfAHt uugQrzeiYcaXA8LNeUSfP2aSBZbS8nSA5+ZRLydxw2heXT2nnEFEY3sLmmFzwe2Aukeq 6Vq9LkHavRe/gzw3BgfAl6ITy0fZrQiOJ739RV0K3fUBQormQmu/5BEv5EOZ14BnLbkE ookg== X-Forwarded-Encrypted: i=1; AJvYcCXxZk+Co7NA5nNNzxHy9ZgxpCXM8ScuaLqXl55dCsN2M8C3lIfc4oP+e+Kf4jgTShF7OTtA49b0JzdMRWQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxgBlN1tyo+51xOujrqPiOMtLzcpJUVWd78GTQ+EBH7qgY3wFq7 R/5P0CCuGKh2nHLd0rVyW9UEbJRw5wbc7444YZ+fBHIpuLj5FWWoaEutRU46GCGiJAE= X-Gm-Gg: AY/fxX7uznxq0sfyVlsTXv21vQ2M8nNscmChD13lCFAwCfwNL+AWfxhGPjLnYfdkFEh jCsiSIFyVBKXSPArQWB1xUgwP2ddzIIxm9QeU1m3n/n00wFIOx6WD3wIp1tSbMu98OnEAGlewEu V5+TSfyoM/MkqQgkN3CVylRJQPw+3BlCzmn+oZ203fA0+OGlEB+Tj7gsrOSFYxQk9USwUlocOEg A97mhwH1lo4Z8V+N6eG6NNJiioyxnVZHnemCy3Y/2IQP7o9C31LKIG5dN4UL4Zf+s5b4WeXjmyv OHsgS8FMNIQol9KfKU3RSm94aBEzfcvNV6AgK+4F+QKACq6wV9RJMSPtUhejPKynJRsAENUs5s1 w7wNelW9FfLnSECVlth6k/J0Sttm8VsINrXToK4Mz8HT1qQYEzUqD2ytSlGXBiLrUiUtvi5RWMt b7U9zEqZcYaE6DWFcUiu0tzcdsD2+EsBtd0WRlhdu1S+eVbgNG X-Google-Smtp-Source: AGHT+IHcvX5WAM5IjNFTL15YS1zTlGO8G8SZde0fFfRsPM36HJ2veTs6Kn8MJvgpalqgHpUvZv4E6A== X-Received: by 2002:a05:6a00:a902:b0:7e8:4433:8fa4 with SMTP id d2e1a72fcca58-81b7f7e59b6mr4302928b3a.44.1767843869380; Wed, 07 Jan 2026 19:44:29 -0800 (PST) Received: from lima-ubuntu.hz.ali.com ([47.246.98.217]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-819c52fd938sm6092082b3a.43.2026.01.07.19.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jan 2026 19:44:28 -0800 (PST) From: Qing Wang To: kees@kernel.org Cc: akpm@linux-foundation.org, david@kernel.org, dietmar.eggemann@arm.com, juri.lelli@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhocko@suse.com, mingo@redhat.com, peterz@infradead.org, rostedt@goodmis.org, syzbot+e0378d4f4fe57aa2bdd0@syzkaller.appspotmail.com, vschneid@redhat.com, wangqing7171@gmail.com Subject: Re: [PATCH] fork/pid: Fix use-after-free in __task_pid_nr_ns Date: Thu, 8 Jan 2026 11:44:22 +0800 Message-Id: <20260108034422.3871875-1-wangqing7171@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <202601071238.F86C2B8@keescook> References: <202601071238.F86C2B8@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Thu, 08 Jan 2026 at 04:39, Kees Cook wrote: > It seems like there is synchronization missing between the task->signal > assignment and its check in task_pid_ptr? Aren't there other ways of > checking if a task is dead? This change doesn't look right to me... > > -Kees Thanks for your reply. Oleg and I discussed this and concluded that this issue no longer exists. Discussion: https://lore.kernel.org/all/aV5zkjzLTwKQOn9D@redhat.com/#R Qing.