Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp608919lqo; Fri, 10 May 2024 09:13:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFNniU/VZQnAJWT9xW2tCgRd9m/YSXRTWlxIDWDLU6dZHhDl7lGkPBe+Rvcys7f9QrY5GGXcz3FUz4FTSqQdcAHMjg52U4ZTxKKVX0Zg== X-Google-Smtp-Source: AGHT+IE2kmlS+S2xah8aToclkI/E/EQNc6Rh7q1ZDUZCmLPIiFZTg6hbCMMCOHERjaRE7rygNJhR X-Received: by 2002:a17:90a:d348:b0:2b2:c85f:a835 with SMTP id 98e67ed59e1d1-2b65fe21483mr9308301a91.15.1715357637382; Fri, 10 May 2024 09:13:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715357637; cv=pass; d=google.com; s=arc-20160816; b=h0xNTmOKH+5bGIvme3EDITzoQOziO7tj6MvbmWcxZYxpFcTPqaZyhg/I5JZwa9tLSr doIY04pfpPdzU7sPqPMSWV+ttKs750St6AUVvXniQ8W0q1sI8Txp1AtEoArklDsdbROy G71RLHmqxQthRJd9EAjLpdo58HdYFUna0dCPm34d20PjFommkEGW7vfJO+cPZ6JRxfNt oEs259lj8JO49QRrTxAXhrKKZ8tbIDA8lNp7O4NUASjLkdoV5YAyvN7Eoa+zTfCOjxGL t1sEhUY/9SKpCWRWXV7qHB3CkSswgMJotnakAvSHMCIUc/7dXMYvfYJvjIBkGBrYa9pT 68/g== ARC-Message-Signature: i=2; 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=b2Vtp/c0wZElNrbeWZjvkBtkRs6Hnk/JEEfb33UNJTE=; fh=tkI7NViYy2q34gLkowcdPQkqtMTh8O3t8/sgtB9BeEU=; b=CeoDCRiT8evdvOPiMli7DEB1qZpVn+8QXg8Xs1S/fGMrC/dRhw2iaXQz2RgERETkCG LDXr3creY81ynJ0P6FxJWjwlAs+tx2j8II/p5siycd6gTI3fDwCQSSrI4Z8Flf6yz1C4 jxC5jtWUxoq49T9CwgJi1GmpzRA++BgzsOHGFRZGVSgphEKXyQ6J8wAVgn+J5R7unEjQ rmi8DhP6GyoVNzH67Itu4sEY/0So2Zokjf6iPnWMxd7fN69dQHav6ZhFLl9rIQsvJyUY a4ORlmIH+M8ebcoX+euqJpbVGUld0KrYWj3zYZtxCOInERuH3SvGq8YTYZOw4zJRg3P9 5ovA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=vbVW3k8b; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-175999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63410301217si2838487a12.263.2024.05.10.09.13.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 09:13:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=vbVW3k8b; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-175999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EF7562873B7 for ; Fri, 10 May 2024 16:13:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 075ED17279F; Fri, 10 May 2024 16:13:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="vbVW3k8b" Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (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 DBFE41A2C3A for ; Fri, 10 May 2024 16:13:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715357630; cv=none; b=u6FRQQ0rxa7eYqzKM1UY+1avm8lBWqr9c7H2A4svUZMkFBwMk9pgxqcYcrEhdsKwwnsyKLecW315oAYBaClop5Sa7fJv/JNW2CaIaVPVkOX7tNijbuk0dtIJ9Huhu9xgVieB2r8Lg8mX3+Uo8b8afVz9pFxSBobi9vZIMnTH8rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715357630; c=relaxed/simple; bh=b2Vtp/c0wZElNrbeWZjvkBtkRs6Hnk/JEEfb33UNJTE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mZahnmpGpaUAec17bLmyY9SjuNN+G4oRhomlQyA70uMtS+JrteqeUn3gpsDOchvPAYC4/9yZycA0hVjXMGI5s457aL+ZtZDYw0qay/qfoEk/07MaVc0UBvG2ZnpRIjKDlc5CcFb0JlKNV9sz0bbVZMdNqD5hwlms+OM4qRURatY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=vbVW3k8b; arc=none smtp.client-ip=209.85.222.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-7f919bc2e1cso875418241.1 for ; Fri, 10 May 2024 09:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715357628; x=1715962428; 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=b2Vtp/c0wZElNrbeWZjvkBtkRs6Hnk/JEEfb33UNJTE=; b=vbVW3k8b8CuwO2i4y7DDdC8Zwd2VUBt/1Fkc+zhxmi9mpiZMYHAFMTQD9krnxYe7G+ akkK50WuYKHhx9/u43UnUnHzOMvAyOFKR0KrFqSRUobcdQa6M328zG+E0tkvEb9ZCjI3 95IRkok8ieJxRhYsRu6rEX5tnTRrp2Tc6mvT9M4jFh8/SjRFd5HQ7Fyi9Ho+oBlguplM x/pGU0nwEeXsDsJTyWSI5VMHuM5M1g2Qr60VzLE3l7L4CzgE7MAjwyt2Yb/Dmsq0ifft JLOvhguhIHVRXEnstaEBbJcWtNgLsomGjZCEbU96Ps67w6eIME6CBgHnIpkHt+wbIo9I /+vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715357628; x=1715962428; 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=b2Vtp/c0wZElNrbeWZjvkBtkRs6Hnk/JEEfb33UNJTE=; b=k9b93E8FBsU4alExwC6BRkCGClulHxrS4PdT8Z9eYXqNcGe5xgq0HOcNCpS7iOa7AB EzVtEhKeyx0QQQ44ZNpjOBSfYToUF094BAABJd5HUY4aBB/0SEne4BTyF4jCYYtxATzo QTyCtsigKZk2/RLaagUvDul6dWTP/VzXL2xCLDefd+XyuBT2Vk+Qb7eq4++7RQ1iNnaS gCfKj8nG3ugbsxuv/1MTbcLbwOo29jYgqQDZUUm2zg3dUpXFzcpWHfqAswfzTxnNNTJj gQVOVAaYyybtvGYb5AkSHfY8bcOHxkGjf1spqCQR9EUAKAphjp613PVOpCs9UY3xbD0+ t1cA== X-Forwarded-Encrypted: i=1; AJvYcCX0fpzkUZOdozj8poQ8EdGX9I5jldjLS2OnGUfiYasuCZTGURZM5R5qQCPOVgAbXnKQORYVqfqK+9Cb9X+1dLUmSzslYHPzu2PFHkVw X-Gm-Message-State: AOJu0Yyb4JgsXtweIrAuYAxTtdBIOWWPIUQseZrkI7Jrcyp6HsyN2mKW j05KwZk3lrPULhhW26+qhT/nv1pk+FAfTo3bKK7f559TTaPPST/6Yav/za6onOqZcJmfVFhkuym NF/IAIjlNoy1POOceLmr2ZPCvUMLc4K1+KWog X-Received: by 2002:a67:ec0a:0:b0:47b:ab0d:b3f2 with SMTP id ada2fe7eead31-47fabb4fafcmr5674759137.9.1715357626878; Fri, 10 May 2024 09:13:46 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240506-b4-sio-scrollback-delta-v1-1-4164d162a2b8@google.com> <2024051039-bankable-liking-e836@gregkh> In-Reply-To: <2024051039-bankable-liking-e836@gregkh> From: Justin Stitt Date: Fri, 10 May 2024 09:13:34 -0700 Message-ID: Subject: Re: [PATCH] tty: vt: saturate scrollback_delta to avoid overflow To: Greg Kroah-Hartman Cc: Jiri Slaby , Nathan Chancellor , Bill Wendling , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 10, 2024 at 3:40=E2=80=AFAM Greg Kroah-Hartman wrote: > > On Mon, May 06, 2024 at 06:55:19PM +0000, Justin Stitt wrote: > > Using the signed overflow sanitizer with syzkaller produces this UBSAN > > report: > > > > I think you might want to hold off on these until the discussion on the > hardening list about overflows all settles down to a solid resolution. > Right now these all seem to be a mess and perhaps you will have a better > set of primitives to work with once that thread is finished. Agreed. I came to the same conclusion once I reached fs/*. Let's see how folks want to go forward with handling wraparound :thumbs_up: > > thanks, > > greg k-h Thanks Justin