From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8E27EDF59; Mon, 6 Apr 2026 08:01:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775462469; cv=none; b=SzTGCGgX2LKOx3ChSPEVe6VvVqViWVt77EyfBzmkJKE6YTNKV7YAhiRzXTK86ZGJPh1fjJ/6BCk4LAE8rWyWAWIDdTUe9S+u3XvHtm7Pef71fRNpMEL7EgOreWwkWSFKhKONj0vfG0Aa3jt3LDksBIbuncmYvS30yY0k9oM8oC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775462469; c=relaxed/simple; bh=qiguDnkwogOTfoYFwsnl8E5XUsa3zTNWFthIu8iJO1Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=H50jLTUMDpVageQDCD35uERIKVQktu7jerdJaz9UlokbCo7tcEVdlVA40Ck0fI4NaJUv0c7VFGQX5l4shw558U7Sy4JsTKkDaV+T3n+A5rbf41RMXtjaKhYrpeVN03Sb95joGQwCDAY9rAQiFkTslqhGWABrTahhtwGJ3gZiW4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X4s+FIZF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="X4s+FIZF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD038C4CEF7; Mon, 6 Apr 2026 08:01:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775462469; bh=qiguDnkwogOTfoYFwsnl8E5XUsa3zTNWFthIu8iJO1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X4s+FIZF2f2J+56pDlLgMsIDiM23EcoaQarSvcSAfEgJ7kRaWXU9UJNbc+vQcxlbK 8RcyEDxR/yMjakXK7E6tAy11cLC7JPc/tANH00W6YVJRSAVVeDrKqen3qIVUOER6VB Jwi5DoapXRwQ+BQ06BzRK93oGmUoKMyj6tx4HI3A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org, stable@vger.kernel.org Cc: lwn@lwn.net, jslaby@suse.cz, Greg Kroah-Hartman Subject: Re: Linux 6.6.133 Date: Mon, 6 Apr 2026 10:00:56 +0200 Message-ID: <2026040656-study-reacquire-8975@gregkh> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026040656-earring-timothy-3640@gregkh> References: <2026040656-earring-timothy-3640@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/Makefile b/Makefile index 56ff90e4d603..753e98740a5e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 6 -SUBLEVEL = 132 +SUBLEVEL = 133 EXTRAVERSION = NAME = Pinguïn Aangedreven diff --git a/fs/xattr.c b/fs/xattr.c index 5f2d74332ea6..20a038b06d12 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -699,6 +699,8 @@ SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name, CLASS(fd, f)(fd); + if (!f.file) + return -EBADF; audit_file(f.file); error = setxattr_copy(name, &ctx); if (error) @@ -810,6 +812,8 @@ SYSCALL_DEFINE4(fgetxattr, int, fd, const char __user *, name, { CLASS(fd, f)(fd); + if (!f.file) + return -EBADF; audit_file(f.file); return getxattr(file_mnt_idmap(f.file), f.file->f_path.dentry, name, value, size); @@ -881,8 +885,10 @@ SYSCALL_DEFINE3(flistxattr, int, fd, char __user *, list, size_t, size) { CLASS(fd, f)(fd); + if (!f.file) + return -EBADF; audit_file(f.file); - return listxattr(f.file->f_path.dentry, list, size); + return listxattr(f.file->f_path.dentry, list, size); } /* @@ -943,6 +949,8 @@ SYSCALL_DEFINE2(fremovexattr, int, fd, const char __user *, name) char kname[XATTR_NAME_MAX + 1]; int error; + if (!f.file) + return -EBADF; audit_file(f.file); error = strncpy_from_user(kname, name, sizeof(kname));