Message ID | 20230308195329.46673-2-yuxuan.luo@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=OOrzRHAi; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PX30b315Lz1yWp for <incoming@patchwork.ozlabs.org>; Thu, 9 Mar 2023 06:53:50 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1pZzqy-0001tI-6s; Wed, 08 Mar 2023 19:53:36 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <yuxuan.luo@canonical.com>) id 1pZzqw-0001sz-VK for kernel-team@lists.ubuntu.com; Wed, 08 Mar 2023 19:53:34 +0000 Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id A5CCF445A2 for <kernel-team@lists.ubuntu.com>; Wed, 8 Mar 2023 19:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1678305214; bh=dqGnmNb19gSdXcHXRXfp7yni/Uz0OAgrNTqyVNngyyY=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OOrzRHAiefmh7hBI2p8GQwyeZjeNiwf66VdOfb9GBN70pui8QRt4fdsm1lLTqm80W QPAoDRb4tpaoNSMiMadIYhO7m60LYJokMAETS/uzkiwQcG8UzN0cprb1Wt3Dzfo9p7 93h5tNs5lVoWBfm2vm2EHXGogaiswc63itJxnxi1JkITkLKORn+WS3sWltypf1Eskx NbSr2HGKMYZyg4Mez/zeRGhIiGbWPkMFrYN9SfAckjs6Ovxyq2mL6oCDNJNJD3oSbd CUawBtlm/Jgz6vHYWahZpKeFsr+9S3+5OuieUrIFrhEV+W9pyd45KS1wsSzoti5YXH mwBwKqMuoFDhA== Received: by mail-qt1-f198.google.com with SMTP id l2-20020ac87242000000b003bfecc6d046so9727857qtp.17 for <kernel-team@lists.ubuntu.com>; Wed, 08 Mar 2023 11:53:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678305213; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dqGnmNb19gSdXcHXRXfp7yni/Uz0OAgrNTqyVNngyyY=; b=hhbGN6otMWogXQtV5IHbPt1vFLRd2hvoW/pgXZZYUVTbcPjpT4Xl2QrOvCyLJPhlbh 5qUIUbpAcq1DLLTX1RKQaStLfBE2dRznWSg9SBPWTgLabKffSycKjEQDht1uY+tRWdU6 IK4pjDGls7TIunqpl3aZc+s0leX56lU1t+q/dyZg66/3FSP0M0VRg1kBPRXQJuqdHWCa dyQI6FMb4EIAlQzg7qpX115T1q3DnJzF/o2xXbwPsDytQ6jfIzYKK98nkxzlFbEnsvjq ZJ+HFUTgxUZVmiEOGMfQ/1h+9yX2SV6hwNFLY5n98jtP9Qf26RHI7FtsV3nU0C59i+78 Q5jw== X-Gm-Message-State: AO0yUKUjaE2IFocsyA3j7OvqXyB5cdvddxbdewMFNUz8D1cbOcwPo8Rd 4NptJFz+9iZh/SyTOpPQG4s+58+8saOqbBgTZgRHikdcTBuQnyIhGbUvPFf60lvvTf8wLlUkafv ZtLc2JBwBke0LLzu/w8DXaYlFp31xI78c9YQYcZAounJa3L29VQ== X-Received: by 2002:a05:6214:2a4f:b0:56c:25dd:f73a with SMTP id jf15-20020a0562142a4f00b0056c25ddf73amr36188210qvb.21.1678305213424; Wed, 08 Mar 2023 11:53:33 -0800 (PST) X-Google-Smtp-Source: AK7set+QjeI0mKL5HXFbniv/N6ebNGOLkDV1MEvmksIRpn3kPMqmt6302aqmVBFXJmappoVI2qVX4g== X-Received: by 2002:a05:6214:2a4f:b0:56c:25dd:f73a with SMTP id jf15-20020a0562142a4f00b0056c25ddf73amr36188180qvb.21.1678305213089; Wed, 08 Mar 2023 11:53:33 -0800 (PST) Received: from cache-ubuntu.hsd1.nj.comcast.net ([2601:86:200:98b0:f72f:2235:9e0f:b827]) by smtp.gmail.com with ESMTPSA id r136-20020a37a88e000000b0073b99d515e2sm12055004qke.44.2023.03.08.11.53.32 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 11:53:32 -0800 (PST) From: Yuxuan Luo <yuxuan.luo@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU][OEM-5.14, OEM-5.17][PATCH 1/1] video: fbdev: i740fb: Error out if 'pixclock' equals zero Date: Wed, 8 Mar 2023 14:53:29 -0500 Message-Id: <20230308195329.46673-2-yuxuan.luo@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230308195329.46673-1-yuxuan.luo@canonical.com> References: <20230308195329.46673-1-yuxuan.luo@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
CVE-2022-3061
|
expand
|
diff --git a/drivers/video/fbdev/i740fb.c b/drivers/video/fbdev/i740fb.c index 52cce0db8bd34..b595437a57528 100644 --- a/drivers/video/fbdev/i740fb.c +++ b/drivers/video/fbdev/i740fb.c @@ -657,6 +657,9 @@ static int i740fb_decode_var(const struct fb_var_screeninfo *var, static int i740fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) { + if (!var->pixclock) + return -EINVAL; + switch (var->bits_per_pixel) { case 8: var->red.offset = var->green.offset = var->blue.offset = 0;