Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp111379lql; Sun, 10 Mar 2024 17:00:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVE6SYlwXKT+nROM5fTLXnR+kPG8bGsI2qfaoaH5G4x7jeNit+z5sNg29yrHU0RffIRxuHKI0p0cHYFZ9IyJnP0G41p715l/DgYFUIPRw== X-Google-Smtp-Source: AGHT+IHCNEkDlSkvYeIg8msOsKBh02nacc3Y0CP03N5JWucO48tTiiv1vBMoNIzYrbb/tZY754mR X-Received: by 2002:a05:6512:3e23:b0:513:1ca7:87b4 with SMTP id i35-20020a0565123e2300b005131ca787b4mr3931850lfv.54.1710115242252; Sun, 10 Mar 2024 17:00:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710115242; cv=pass; d=google.com; s=arc-20160816; b=CbDmBv4ff+RCvWPjbeMSQI7d4JM4ysYuPQvLnGUFmnndBfqdhhP32N3wEi3fzFeHHv 7MKf94zqSAUPFGiLjM/CeSST6s6e57AeNmqKYjSKXQ3DU3MmDmTnsIa6Ox/1CYrY0mFs v7YuYrP8lev0zE61qY3sUzW0r/hqJCOr+kaouVxOOUrLsJ5nTaugAAS5HznXNn/tVJM9 AeTbT+WHoXGCJWmPHq9GRzbu54kSCBSOUFwzivdhA2Aw2z2TArxQ7Jyi+cGtj+oDCdbM ORi6zMQZT7CYdyHSnr6MhomxJKiAZ6Uz2VNfespVtU6VBelXC65d/aicF2UorGiUE/Lh 6mig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:dkim-signature :date; bh=+yDD08WUJWVj90tmydXaHQGrn6hOhO/u5npE/Lp3q2I=; fh=HiCSWxVqrf32/cReuPsuRJjr+T7Oig23f/MH5wBYdag=; b=rCQMaFqGcYg1EbxSqZQaKw6lIt7LMBfLpQ2tt5mIrc0OP9In6O02NdUeiAgGcQOuua F/PkNcWlDRLHNI5Xr8Ni3hBt5OlrYQxE79hkUL9PvGRZw2zRGi1iYO0Ulm1kxjUrnbKb wbAmqqvfMKeJWUJ9p8vKY7SbTQcY2zrT1BPcMakie7iJHkuDLV3yySwzHmsMK5yw5AW0 yyjhu2lc/CKu6cxamCI3Mh62W3nxe5vtLyL9WFYSk4qTL4L3s34VJ8f/Fde+p59eAvjq eOk/VcR5dRwkHM9W/6+f7MP6qb5WI/KOs7T4DQVDfubTKuucoHL3dZ01nBPPP6gRrpuu U+0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=iQmUVaA5; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-98383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u10-20020a170906068a00b00a449fe3d7c5si1919563ejb.847.2024.03.10.17.00.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 17:00:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=iQmUVaA5; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-98383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F292A1F2184B for ; Mon, 11 Mar 2024 00:00:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 840943BBE8; Mon, 11 Mar 2024 00:00:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="iQmUVaA5" Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 61BCA3B2A4 for ; Mon, 11 Mar 2024 00:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710115234; cv=none; b=g+aucAJU5Uu3+iig8o/TJL01QPcNFiPyUDQxACS3p9CJtOgPBjcbyBIOTFkmtxIih4FQYhy3r0sKxz9Pj8/fdE1Qeb3p/soKK1Gp9rgtepv44GeINPwfnnvO3b1Ag4K85bckU/3hByPVP2LXmYGnq6umGg1H5LUm4TuabiVYPEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710115234; c=relaxed/simple; bh=+yDD08WUJWVj90tmydXaHQGrn6hOhO/u5npE/Lp3q2I=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=cvRAbOwHaaLLWW0VXh++q4NL3hHXKPMaSbqc1BU1ZhxUObqbnR56Ta8QGUFe0G2gfk0V0oEgbW2pv7lH7STDDXrduZaiORX9k4bm1wrtBs/HHWRmV5VnQfcgNARlu8ExLKUGdtN9iFuJvYQW6qkH30Rr5NaH+vNZLYf8lDSP1jA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=iQmUVaA5; arc=none smtp.client-ip=95.215.58.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Sun, 10 Mar 2024 20:00:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1710115229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=+yDD08WUJWVj90tmydXaHQGrn6hOhO/u5npE/Lp3q2I=; b=iQmUVaA5ohFz+ZMs8pPQMoOCTX0Qv11lzykZvS5XyUdmk3IQP/bwVaIgBUkxyAD9dk8RQ3 ZBlOKESPaaLntoG40kaJBC0j6hepv5gcqAkFxES7sX/DYaWviDNEoPZ/gimLkhqaL2lfsw TzXkE/FmJ2V1IAN/JkIxo2l0T+PoMIM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Tiezhu Yang , Guo Xuenan , Rajat Asthana , Gao Xiang , Nick Terrell Cc: linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: lz4 hc buffer overflow Message-ID: 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 X-Migadu-Flow: FLOW_OUT reference https://github.com/koverstreet/bcachefs/issues/658 It looks like something is off with the bounds checking in LZ4 HC; I haven't dug too deep yet. Never saw this with regular LZ4. Anyone know anything? Are we missing a fix from the userspace library?