Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3603499rdb; Wed, 27 Dec 2023 12:59:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwsMm/rKhysekvAT4WRCeplk2h93v3/8SD8uirZsH1XTAP+9y+XQ7CmC7/bEjQxkT1PNO9 X-Received: by 2002:a05:6e02:221c:b0:35f:f683:fa1e with SMTP id j28-20020a056e02221c00b0035ff683fa1emr7184401ilf.10.1703710747336; Wed, 27 Dec 2023 12:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703710747; cv=none; d=google.com; s=arc-20160816; b=XLIfFXTTbzUGR1xBioVlJYNLnaNtHFjtlM2+w+3xvB2y8ZNXbbpLMOWqrGEoN6rtU7 GMx+XEcHLM9sIoOJmNRSJLRo/tPQ3FDSWfGVpb76P3lKiuU8TPq2PN4u2w3spwNQAp+0 c0rTbBFEaATiPLLk86DZZ1Gk+1spcniAtzpVai1RKL4V0FYlTR+jPJGAUio7+T5Bd3B2 WtbMky6aq/HTWCT8Bb0to6HHeHn370yF2O+AS4htlGXDNSfprlwXPZiP/XfpExymlZnN 3EN1KU5YyQ+IPE2g1MJcDfQ2ur6i3ncEnf6+gKMnmUvqD3k4MFzChwQAg2fnqqH/JZlq sfNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=K9Nusm3RGZPzRbIFwiZuv04aPb842t0uSJM49unDfV4=; fh=zMpnKsMEJ0hduI8cRQxIB0AKm6KQjsaiPoGfZt1NqHc=; b=jzDTQk8RgSkqmTch91d9pVbzOf+e8Tw/Xiah0HAOdhqX41vlgD4hFG3sE2HJ9Z+S6j ds+UcTqW9PXjqldXOf4HUkmtdkU6j5u60J9mAroonryoW1Afa34UeMEBtqs8gVFFo/jU Q7Y659QzsQvXjnCRzIIiNbgdXNumU7zKwxhLPd/3y1jtxfIdBCnMZQFTe5FB/3O5vdmr D7htTvtojV+whWVyExCTlHDB1ekFoIXJJHxvKR9n2KZeOLgrtFKUZZb7YwPwY68L6WKh mdrYfvXzsAnioQliMpgP0JsIyjFIAux+GUzRuskmLCxOlMwS+Xv4JF6yMhF9aAgLwt3o hdEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="MjY/HB9f"; spf=pass (google.com: domain of linux-kernel+bounces-12257-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12257-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s20-20020a632c14000000b005cdfc019319si8764808pgs.751.2023.12.27.12.59.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 12:59:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12257-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="MjY/HB9f"; spf=pass (google.com: domain of linux-kernel+bounces-12257-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12257-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 02929282B0F for ; Wed, 27 Dec 2023 20:59:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27784481AD; Wed, 27 Dec 2023 20:58:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="MjY/HB9f" X-Original-To: linux-kernel@vger.kernel.org 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 1FC5E481A4 for ; Wed, 27 Dec 2023 20:58:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 661C2C433C8; Wed, 27 Dec 2023 20:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1703710734; bh=nVIXdXTdlWdkqE/2/J9dc3xAOUa+ZEXhxjCS1ovFzRU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MjY/HB9fglm3RR9yjFHrErDDhjl2mpNchHTuMZPLSRlKBY802XFzhXarLC0b589ez cNjeuOJlejNZ+h2vXKbu1g4+gz0NxqaJxehHi5ln0zPn7PF5Xuqb4KWxcTW3Omf1tu Z6UvQ41VMPxOfmtoM7MwEpeAZr/hEWbWIg/CvOFM= Date: Wed, 27 Dec 2023 12:58:53 -0800 From: Andrew Morton To: Chengming Zhou Cc: Barry Song <21cnbao@gmail.com>, Seth Jennings , Johannes Weiner , Vitaly Wool , Nhat Pham , Chris Li , Yosry Ahmed , Dan Streetman , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Chris Li Subject: Re: [PATCH v4 1/6] mm/zswap: change dstmem size to one page Message-Id: <20231227125853.2dd07cd61f8a8df95042677c@linux-foundation.org> In-Reply-To: References: <20231213-zswap-dstmem-v4-0-f228b059dd89@bytedance.com> <20231213-zswap-dstmem-v4-1-f228b059dd89@bytedance.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Wed, 27 Dec 2023 14:11:06 +0800 Chengming Zhou wrote: > > i remember there was an over-compression case, that means the compressed > > data can be bigger than the source data. the similar thing is also done in zram > > drivers/block/zram/zcomp.c > > Right, there is a buffer overflow report[1] that I just +to you. What does "[1]" refer to? Is there a bug report about this series?