r listed at https://www.dnswl.org/,
                             medium trust
                             [147.75.80.249 listed in list.dnswl.org]
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager
 -0.0 DKIMWL_WL_HIGH         DKIMwl.org - High trust sender
SpamTally: Final spam score: -34

On Sun, Nov 9, 2025 at 12:57=E2=80=AFAM Qianchang Zhao <pioooooooooip@gmail=
.com> wrote:
>
> When size equals the current i_size (including 0), the code used to call
> check_lock_range(filp, i_size, size - 1, WRITE), which computes `size - 1=
`
> and can underflow for size=3D=3D0. Skip the equal case.
>
> Reported-by: Qianchang Zhao <pioooooooooip@gmail.com>
> Reported-by: Zhitong Liu <liuzhitong1993@gmail.com>
> Cc: stable@vger.kernel.org
> Signed-off-by: Qianchang Zhao <pioooooooooip@gmail.com>
Applied it to #ksmbd-for-next-next.
Thanks!


From - Sun Nov 09 12:41:50 2025
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <stable+bounces-192839-hi=josie.lol@vger.kernel.org>
Delivered-To: hi@josie.lol
Received: from witcher.mxrouting.net
	by witcher.mxrouting.net with LMTP
	id cATcCZCLEGmN2C8AYBR5ng
	(envelope-from <stable+bounces-192839-hi=josie.lol@vger.kernel.org>)
	for <hi@josie.lol>; Sun, 09 Nov 2025 12:39:44 +0000
Return-path: <stable+bounces-192839-hi=josie.lol@vger.kernel.org>
Envelope-to: hi@josie.lol
Delivery-date: Sun, 09 Nov 2025 12:39:44 +0000
Received: from dfw.mirrors.kernel.org ([142.0.200.124])
	by witcher.mxrouting.net with esmtps  (TLS1.3) tls TLS_AES_256_GCM_SHA384
	(Exim 4.98)
	(envelope-from <stable+bounces-192839-hi=josie.lol@vger.kernel.org>)
	id 1vI4hq-0000000Dp5I-3YVD
	for hi@josie.lol;
	Sun, 09 Nov 2025 12:39:44 +0000
Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by dfw.mirrors.kernel.org (Postfix) with ESMTPS id DACE44E055E
	for <hi@josie.lol>; Sun,  9 Nov 2025 12:39:41 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A2D42DEA7E;
	Sun,  9 Nov 2025 12:39:39 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=aliyun.com header.i=@aliyun.com header.b="pBDK//sH"
X-Original-To: stable@vger.kernel.org
Received: from out30-77.freemail.mail.aliyun.com (out30-77.freemail.mail.aliyun.com [115.124.30.77])
	(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 0F7B51FF1B5
	for <stable@vger.kernel.org>; Sun,  9 Nov 2025 12:39:36 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.77
ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1762691979; cv=none; b=LRtI9SVg2ExWHVcNhaNnplMji69iPg9GNCaKXSoGwsEDiIfYzXiINaootyvk7WnSl17LOwXe3C1bbEv1XMcW9HqXdXbg0axGyo0aUH8MIvjD3grufJzvO6+vpUwqJfCHDS7SOE7xSE2fSCT/PHCgquFhKPNmcNC5MeJ514Gav1E=
ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1762691979; c=relaxed/simple;
	bh=tgaJipRxzgSlf8d/QzOrKvDBYhmAcCFCzqYrEdF6GyE=;
	h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HetumnmtxaKXSYa04aHesPhdEvXBKuvocJuUuw7uaEJzplWXh7QyZ+oy/QLepLBOkvJgrZC7mBrWsrWveT3J5dMuIZ5QyO9q2PmURKMMzBmpxk+1TemMW59CF9e9ZFv57PH9p/Wnfja2BW9RTU4erAkedMbD2F9QddOGZrnj0MA=
ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aliyun.com; spf=pass smtp.mailfrom=aliyun.com; dkim=pass (1024-bit key) header.d=aliyun.com header.i=@aliyun.com header.b=pBDK//sH; arc=none smtp.client-ip=115.124.30.77
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aliyun.com
Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aliyun.com
DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=aliyun.com; s=s1024;
	