Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3096758rdb; Tue, 26 Dec 2023 16:24:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNoSb3tnM7cCUIG2adMvrKB8H5Iv26Kh9AiqMdM4oak8QilJ3BQ2SmkRhCBASnWGmpM+u8 X-Received: by 2002:a05:6214:d43:b0:67f:3be3:d314 with SMTP id 3-20020a0562140d4300b0067f3be3d314mr11861031qvr.21.1703636650901; Tue, 26 Dec 2023 16:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703636650; cv=none; d=google.com; s=arc-20160816; b=qtpf51P8pmiu+qF3c13AaVr6Tikgw2dMdu8ofA28O71iytyvRMNK6Ys9iaHhjHDmPP lSkDqy82S+EK+cmUUZ7NYrVhjNkfC9nTGVAy6OHxoVR6ulnJytXaybaRWOSwcwEf7vRx ga/wV2Br7+CX0JNKXo6rffMR5JWYTwJx9t3FYRuj6rIA7VZpwF9pg4vbhv6V0qg6eocx 5DviJKxfw3/VP2Y7WMIJxXM7CIaDz4koi+r7mwk0yPHyJFwPz1FfWRZHNyadgVUH9CsU pcVoc8CaVfdBHc0ZVPQUL0MNx1D2rYjM+wH2ZgR0zMioZHC72ywxYlqOYKXdNOYQ9ew9 Ipdw== 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=p1/nYX+7PfnxFP1GbQRd5jf/AiTY0zlq2oe42XbsGqk=; fh=QIh+S3iSp5sCrMTFF3sSw5vLfBYsnzRKHcQrFFpYwRM=; b=nVfjBVdT74wU/sAJ8YdJTIghs/CKq55foGWLRVo17myeO8t5GOvxd5h8X4ZuEGR69w STnvblqVYDsiy1Uvqh8pF3wKLOpPEKYTrV+KFhtmvXaFyVcH9hp6+t+H603lZ6ixLUDc Qx9Bqq8S3RRu6a7k9JbKrTFq+aF1OTAk06QnIvoC97ztB2R8TpchLau5i3oX/cJf0N6X hMzDRdtZf+NoFD3e+bndubtNeoOBcNpuHh1jCf+Q/QKx1uiIPe919U0/01DnzQ6IAevQ t7Xq5AjAsXyezLCZG1ZEmYvA8w1Ix3/FjUaD6UIFW5n/watLWhj2wubfUYjKZGC0Ahxp QkaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="hSSmyvb/"; spf=pass (google.com: domain of linux-crypto+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j11-20020a0cf9cb000000b0067f849925b7si12466630qvo.223.2023.12.26.16.24.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 16:24:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="hSSmyvb/"; spf=pass (google.com: domain of linux-crypto+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1050-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A3A971C21F54 for ; Wed, 27 Dec 2023 00:24:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F9771FB2; Wed, 27 Dec 2023 00:24:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hSSmyvb/" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (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 0AE961C10; Wed, 27 Dec 2023 00:24:04 +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-il1-f174.google.com with SMTP id e9e14a558f8ab-35fc6eb9075so11894405ab.1; Tue, 26 Dec 2023 16:24:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703636644; x=1704241444; 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=p1/nYX+7PfnxFP1GbQRd5jf/AiTY0zlq2oe42XbsGqk=; b=hSSmyvb/GVdnIIo6q376d914zmNqUMindSEzWeJnZv9GmoAIOT5I9+y46xA0MZiFof x+m38sDpUfaikdPPyd9MY4dFKXBqtMhRrKKvY5ytRmIoJgw3kDmpfAvggCgnQvpZpabb L3i6NOJWiu48rpEpaT9VYWjm+WVT991B8hZbAWB68a0m0V7BLbXp86UsUYOfggzteMJf A8jVLJWhlHKV28ShDPnlox2UeOjFMSF62IMOvScxh4YP4oCIIMH9zVBJYehsPhXhy1A8 G/r83Hj5k9zKlhy+GSFiVteA0AYiHYhRV5Y+J8ZBCBnqg5gAbcqOghBZHCOYwUPEM/S9 o5HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703636644; x=1704241444; 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=p1/nYX+7PfnxFP1GbQRd5jf/AiTY0zlq2oe42XbsGqk=; b=vY7ucJsNBQUmzFcz21k2XPJQHjEs4X47+W+tW7J3vmIHxgzarUwGOd4kPjiSqtmNQT uSFf6ubzaWEOaFzHWqltKQybQ1T92hBtHXI7squl09AIYpsVYfMgFcEFd16BzcazGh8q +PNrzCKOqwwrCq+cevimJ2WgQVnZBTCWYjV5ors1pLHykOhV5kL2wFmEuWy7VH/4qYer Uc8ikcV8ITuRKG0CTmmRJiPInIC5aO315t/8cKDtUsSleWRC0Xf85Bk5yS/efmOuGLfY Xxt2wK8xag/WYybnbBe4wd1StUL0IsUpA8gHpaVi6Y40zBj8eFACGh8JGvkSN+UivhxV S2aQ== X-Gm-Message-State: AOJu0YzWgiDqcH4YO1gj0IzaK5bzDrY7YSV1ovasxeGLMsiH4ErwDBGn e5oq8tV3ip/ErcRp0kDS+Da+asoe9ypVsjrgQP8= X-Received: by 2002:a05:6e02:214d:b0:35d:6241:194b with SMTP id d13-20020a056e02214d00b0035d6241194bmr5005557ilv.2.1703636644003; Tue, 26 Dec 2023 16:24:04 -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> In-Reply-To: From: Nhat Pham Date: Tue, 26 Dec 2023 16:23:53 -0800 Message-ID: Subject: Re: [syzbot] [crypto?] general protection fault in scatterwalk_copychunks (5) To: Chris Li Cc: 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, zhouchengming@bytedance.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 26, 2023 at 3:30=E2=80=AFPM Chris Li wrote: > > Again, sorry I was looking at the decompression side rather than the > compression side. The compression side does not even offer a safe > version of the compression function. > That seems to be dangerous. It seems for now we should make the zswap > roll back to 2 page buffer until we have a safe way to do compression > without overwriting the output buffers. Unfortunately, I think this is the way - at least until we rework the crypto/compression API (if that's even possible?). I still think the 2 page buffer is dumb, but it is what it is :(