From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (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 ADC0537E; Fri, 26 Jul 2024 07:48:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.89.141.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721980088; cv=none; b=QkWXg1dTku4bg3j/iDJzWCAMhpRbJfATXKrY3cwfGca+EMz8jVFDB9SISH8q1TmNxDw68lO4QGuVYoGOcgX5+d7QgrppTf1l6Z7NImgoZjWC4LHC8vZZ6RJ590eNfRuc2GWg5CLd7vvxNq/sM0vWSyfgpmfnKwZz/d4e+iltHxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721980088; c=relaxed/simple; bh=Io3MLN8ABzJsoyXEYl+t1LrvCKwLqSGhMvFrPZPQFlE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KF/kQ400Wczq17rl3drYdc+eS1sdPOzViGjJn4XtwzrZ/S8/qDQd5wRPmgDGGcNYbcIdA0fxrAcYwnkkqMMAqsgwk5r/1rbeg/ZghaSKb+L6FiUwm4YqfxxsQ1Fm4Qo3k1SkWstFwLnicg8W8rDzwNSWJkn6D7kDeIBDXDqr0l8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk; spf=none smtp.mailfrom=ftp.linux.org.uk; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b=q7MC09p+; arc=none smtp.client-ip=62.89.141.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="q7MC09p+" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KRXV+2D2YqZxeiX9oHriPbK3frTai+MmN2o6Yfvo09c=; b=q7MC09p+VaEj2zsnd5iAXq9+ax kUGlREHkHijCuN+7zRrUjZQOLf2Bd8bfUJc8TmgG1udPYqYlrbmXUftQa929gRis+iijRO86smKXZ QCplKj6pOGzica+BEBZpKhUZ4eVm8kAhAgc4U3555faGCllakJqMp1eLFDnlvXJGm8ZKaQWFbLq8Z BxnOKXF5OlJ1I9SjeRWAR2V3SEm35HkNeHwP74suNhhL/3zbeMqiuNBMEPWIw/JVjowsNUjI8e9jD OKd+ernEgJTflUdVe13Ebo2dKPQkec+tB2qp2mRIq4LgPQTxdz5vB21oWqPuubuW3UtsYS+NESx0e QNTGSxgw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXFgK-00000002AXG-0V3K; Fri, 26 Jul 2024 07:48:04 +0000 Date: Fri, 26 Jul 2024 08:48:04 +0100 From: Al Viro To: Michal Hocko Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] memcg_write_event_control(): fix a user-triggerable oops Message-ID: <20240726074804.GE99483@ZenIV> References: <20240726054357.GD99483@ZenIV> 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: Sender: Al Viro On Fri, Jul 26, 2024 at 09:13:00AM +0200, Michal Hocko wrote: > On Fri 26-07-24 09:06:59, Michal Hocko wrote: > > On Fri 26-07-24 06:43:57, Al Viro wrote: > > > We are *not* guaranteed that anything past the terminating NUL > > > is mapped (let alone initialized with anything sane). > > > > > > > Fixes: 0dea116876ee ("cgroup: implement eventfd-based generic API for notifications") > > > > > Signed-off-by: Al Viro > > > > Acked-by: Michal Hocko > > Btw. this should be > Cc: stable Point, except that for -stable it needs to be applied to mm/memcontrol.c instead...