From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f26.google.com (mail-pj2-f26.google.com [74.125.227.154]) (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 9F01D1A680C for ; Mon, 28 Sep 2026 04:17:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.154 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790569026; cv=none; b=A9siL3dkpz0SG0i0ddrMjLrqRaBvvMGCzk5pQH1GJLgA0QGRaDnm1yXSBdIfJ44h7oiPjP9LL6oIKGfQv1I9w31sb3X9DvOcAJlhglhkn7q9O0wMyPqLCuf6AGqTHg9+EqGEghKpU4SmgC/D0FdlARTPKh5SwDZ9CBaYY7P8Nlk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790569026; c=relaxed/simple; bh=YTfotWDlml5UR/GBD1wY4ze1xpdJN2PButuZynaIwOM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i7YfG7Th97X+heI4ZE578GwFHeg7XWB3R8j0Sja4jtBzeSH9GdKaxEJ3R1OO5QNQ0p75t1M5mP2Fkfp9gkHsUlvDhHkjxsHBpEHcnp1hk1XArAhUWmsiT4lqeVtoBD/OwVwx8DRFdzGE5glq8/pJFPTgeNMC8NRzW5hGwf7SuJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=Vl6hKHEa; arc=none smtp.client-ip=74.125.227.154 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Vl6hKHEa" Received: by mail-pj2-f26.google.com with SMTP id d9443c01a7336-2d8fb334e72so9798365ad.1 for ; Sun, 27 Sep 2026 21:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1790569024; x=1791173824; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=j3LIx4OT6RdJGRg4qDatJ4q0rZ8i4sT2AGqSbaU6cDI=; b=Vl6hKHEaXEdcAzoKtczHGRU/G2h/ayHxmm+e+tQu7a8exJeSf0V0VTZUZvFfDEC+qr uaS5ykicmMjcPG2F300+GWSGIgoHFryctlqLrq4RX5UIzgXGZOpwYKUq7PSsIJnoA/cu Qm/6IBIB0JW+vCRkKg39ZOQq4CH+G65dtOCTc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790569024; x=1791173824; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=j3LIx4OT6RdJGRg4qDatJ4q0rZ8i4sT2AGqSbaU6cDI=; b=t2xtawyi71NcZE3/Hai2C6IQjH88q1gnBfa6kRZ2Cp+bHvdtiD/suJ7N3ofk0HcbUF m9gE6+hRmvoBc6Xa5MxI/u3vFkKjrqAwhR58cTyFDuAQjTltqLzLPWU1C+DDu1QP6b2t tGpQ3JnsUWFjUBEQEZoJlCe72kOvp7LaXNyziIvg2Dj2mmBOuKPmgAx3u3D8lluehtd5 iHqlzV8le9LWhIHq7udw8M7M0YRDwzT4YSrbZuqixPqNNWu0TuSw7EVmX8Kq1YB7Nlit 4LIbebXbSHHvZcJwlCXzbc90mXxnhQR9TavF2aIhbqbjueo2V4k/4UktsEM2q1tkFta6 ePrg== X-Forwarded-Encrypted: i=1; AKwUvBxnH88i44Ug81Sv7hZSHKrMaxpZKyHSkdiul4lwYCF3HWkuueKDcpQtYfB/VIyXzTfTranTZboQJky76ic=@vger.kernel.org X-Gm-Message-State: AFq9FYIoKRYenrl1w3pln2fKISVNumRUP4ib23b0T2gfGprXc8p8BL4y 310LCzSCqHCyMTTTKt5wRtwz4jqgSRRacseII7MWOHdcxIdlvV/BRls3JTeWh7D6tw== X-Gm-Gg: AYBFou1mrZ4Eodkdsih9HDRCfbCfA1MT3Yvt24r6mNoAiP1laX368C8pPmcChR8AWPu PcR7NkkuWNdNLPT/YaoPT9PgdmZZVJ9USad8Ia71+YW/ThKiy/x+uOv8KgW4ZCGt+Ha8paT3yIL PTBnQp0p7srGdV39FvmBjGvRf7MMdyBHRBtj2JY++G5YE4QPS4jwikhtbT6x5cC4Kkf4OWQMRTR vCGS6YeLO6g2Cnwe1uxORgywPOEm2EUGuS1tCsv4+XY5k0rBysGEkb0K9slmqz0E0fkrTuHGpAm /X2Vxy2hSgRraoKEplYL7Zx8/3Chpe7IerMEhT40igJaBafaFHHZWPIpFqJiIqk3S8kJM2MfCu5 qdTk++3Dq2usOVKZubs5KrGPbhSaWtjJSzFAPl6OAX/qyH+UVmx+112Y2NAOg1zHrHKyIz5bKux P5h6T8KzXPtPocDEuwHM26VjmFBmNlsVDSlWkXVJI5kVsAJFbH1jZn8c1TyZTk2Fn0QgIzkG8yW vyu0OSH5qutkL06I7lSoW2kSgliaxt4uGxXjf0= X-Received: by 2002:a17:902:d98d:b0:2dd:c100:7cc3 with SMTP id d9443c01a7336-2df7dd72aa3mr103163935ad.63.1790569024011; Sun, 27 Sep 2026 21:17:04 -0700 (PDT) Received: from google.com ([2a00:79e0:2031:6:fdbe:318b:98fe:bd96]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2df913e23ecsm35034075ad.18.2026.09.27.21.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2026 21:17:03 -0700 (PDT) Date: Mon, 28 Sep 2026 13:16:54 +0900 From: Sergey Senozhatsky To: Michal Wilczynski Cc: Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Russell King , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Minchan Kim , Sergey Senozhatsky , Jens Axboe , Andrew Morton , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org, linux-block@vger.kernel.org, Yann Collet , Nick Terrell , Gao Xiang , Chao Yu , Jaegeuk Kim , Herbert Xu , Phillip Lougher , Sungguk , Jaehoon Chung , Marek Szyprowski , linux-erofs@lists.ozlabs.org, linux-f2fs-devel@lists.sourceforge.net, linux-crypto@vger.kernel.org Subject: Re: [PATCH RFC 7/9] lib/lz4: switch the decompressor to the vendored sources Message-ID: References: <20260925-lz4-vendor-upstream-v1-0-1c7ffbe21c4b@samsung.com> <20260925-lz4-vendor-upstream-v1-7-1c7ffbe21c4b@samsung.com> Precedence: bulk X-Mailing-List: linux-crypto@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: <20260925-lz4-vendor-upstream-v1-7-1c7ffbe21c4b@samsung.com> On (26/09/25 13:27), Michal Wilczynski wrote: [..] > -static FORCE_INLINE int LZ4_decompress_generic( [..] > - /* Necessarily EOF when !partialDecoding. > - * When partialDecoding, it is EOF if we've either > - * filled the output buffer or > - * can't proceed with reading an offset for following match. > - */ > - if (!partialDecoding || (cpy == oend) || (ip >= (iend - 2))) > - break; Worth noting, these lines are downstream commit eafc0a02391b (lz4: fix LZ4_decompress_safe_partial read out of bound). Is this intended or are we "loosing" some of the downstream fixes?