Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3656884rdb; Wed, 27 Dec 2023 15:26:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/IuLp7n3UoI8BLceJOn9ucPQUqW4dWl4w+2g72kic5oKrgPLLubc3BjgPhCw1uboXYESZ X-Received: by 2002:ac2:4188:0:b0:50e:3c6f:9207 with SMTP id z8-20020ac24188000000b0050e3c6f9207mr3571253lfh.60.1703719612835; Wed, 27 Dec 2023 15:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703719612; cv=none; d=google.com; s=arc-20160816; b=C/oTuPi4gMzuUqrC22GoBzCh3AhH09r0Xvso2KvYtGbZn/hw9lFqjBUNmsDV/vjtT6 gs7Y+GEsvG9c7k6wQBjYoWuM5wEXRJTJQXUDN+9Cjb6GAQG7q08gNfwMssVtitpsh3XO 2d9kywOH7YhLXFNjIMCCE+dJIpDOxX4URkazz/h3rfK3LJlA9tUUirPzj2cY1/0ecq8n pXnT845HLh20cC5rfioESbCXOQgT7M/G2fkHDP/+8fCLb7h1sXUfmblkLWzOgPci1AE/ rDuQERu7V6bUJUu2Jl/Q1G+jTfZTFLH82agHMO7HeTQShNe50axqlIXlxVNpT4O5n9D7 +uCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=wEMOjdbY0fY3N2JjHRStjCumCwdTvGjyUSjt06U4UHI=; fh=cAUgtSjHN2/PMElofzFFy84ZyNW9dmUv+0EmLmH8Xrw=; b=pgEx3FQVf2PMC9WQ1ToHNM6hvWzjI9Hwq8BSpIm7gGE3/UspS6M/tvy0LHGoU+7lYL 3599+8h+YePglcyhqrfzwKIfNkKQqCdlsAU+TV8yDB7PUrMzr9J0W+3mzadsdxvFdu0g bbKMVwAwT5zHdObHN6gdaqhUxY2wbtz5oG6xskCAslf22NVa8p9iI6Yr6kWeeT/iU4h6 HNj75MUVLMPxnoCahl6PTsXe/V5mTj7o5+W/jyhFd27fIDbmrjyDHmVyItWqyzGfcI63 dIQj4OBxq1s7QifhacExHeShkITmC7VrtFmONGPd8NCQqb51yCXcUTkjQNmLYPTzbxyV 1khQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Xi2Y0mLL; spf=pass (google.com: domain of linux-crypto+bounces-1067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m14-20020a50930e000000b005545a90ed20si5358675eda.106.2023.12.27.15.26.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 15:26:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Xi2Y0mLL; spf=pass (google.com: domain of linux-crypto+bounces-1067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 7BCC51F21024 for ; Wed, 27 Dec 2023 23:26:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53F05498A2; Wed, 27 Dec 2023 23:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Xi2Y0mLL" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (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 DB73748CF2; Wed, 27 Dec 2023 23:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-7b7fb34265fso259793239f.3; Wed, 27 Dec 2023 15:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703719605; x=1704324405; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wEMOjdbY0fY3N2JjHRStjCumCwdTvGjyUSjt06U4UHI=; b=Xi2Y0mLLjy57YPGfnRRzinUCCm3gnrDEMqr6ChIC+WggsOrYm6loJsMcuhtYOPrRBx QnkYMODAqTMzKFUYgntYfOrWTj7OAprhlbbFw4gRTboMp0TpUq4DFNHTvEGbWZ15zR0N 2MBgyzUNigJwSlbtTs0bbie/zWqG6QltI5IOMDWToxRzHyN1R+/YfXW+ZE8Hz/mUvgNu cX7vSzz10TL2LSl5h6EmPDGONEuFGGVexrP3NclAjdNrBPHiITBRV6lsH77tdMoPD5BS ilfChqN0rTHDrQvr0X8MPH6ArG4n+Kx+DMNZSgN55c8JgnAf2Rcor6CZWc3Zx19FNz8v Zm6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703719605; x=1704324405; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wEMOjdbY0fY3N2JjHRStjCumCwdTvGjyUSjt06U4UHI=; b=luMt+1AzHZ3yh41A/gpbNQwqQnUX9fDi6/zAcVoanGBgLY784pnhN/O0J7Zhq5l8EF zdNMo/UK+4K5qSPmyPo/R743N00WnRiSRfBM7y0W7eNZmS8waOo6irmqJM31LOW8YgEf TbyisDcQtinFiw42Y35aHz2JICVgJ2c/tK5bvQ2yCK1SQU6LSSwtD/EILNkXcgPSVjQA AdE6ue1UJA80IuYNizMTLrhtX9k8nNwI7cjzZzK0HmfDLSvNtWgjJuPtC7yanOpnmjii 9ICa7hpM0rgvPIjCY6IJj86DUmJte2TzpukCVmhN34LjKf6LKKKtqQNwj5pEcPjBRoT8 AFDg== X-Gm-Message-State: AOJu0YzcXc3CHbwJssm50RVSNmBpY0EcxEwoS/vQc++hQ0Blvn/pREAc HvoBznGRdyIXblih9ycgdfI/VfLts7ANBt4js2g= X-Received: by 2002:a05:6602:1512:b0:7b7:fc0c:63cd with SMTP id g18-20020a056602151200b007b7fc0c63cdmr10728294iow.39.1703719604978; Wed, 27 Dec 2023 15:26:44 -0800 (PST) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <0000000000000b05cd060d6b5511@google.com> <5aff3bcf-ef36-45b3-8ac0-a4b19697419c@bytedance.com> In-Reply-To: From: Nhat Pham Date: Wed, 27 Dec 2023 15:26:34 -0800 Message-ID: Subject: Re: [syzbot] [crypto?] general protection fault in scatterwalk_copychunks (5) To: Barry Song <21cnbao@gmail.com> Cc: Chengming Zhou , Chris Li , syzbot , akpm@linux-foundation.org, davem@davemloft.net, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, yosryahmed@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 27, 2023 at 3:10=E2=80=AFAM Barry Song <21cnbao@gmail.com> wrot= e: > > On Wed, Dec 27, 2023 at 5:16=E2=80=AFPM Chengming Zhou > wrote: > > > > Thanks for your explanation! Maybe it's best for us to return to 2 page= s > > if no other people's comments. And this really need more documentation = :-) Fine by me. Hmm we're basically wasting one extra page per CPU (since these buffers are per-CPU), correct? That's not ideal, but not *too* bad for now I suppose... > > I agree. we need some doc. > > besides, i actually think we can skip zswap frontend if > over-compression is really > happening. IIUC, zsmalloc already checked that - and most people are (or should be) using zsmalloc for zswap anyway. I wouldn't be opposed to adding an added layer of protection on the zswap side, but not super high priority I'd say.