Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp364719pxk; Thu, 24 Sep 2020 07:29:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZqDl77RKAzIowRuC0m+1+Cr9KLxeJ5HvmT7ejuDVCQVHnguwTNVxIXSrZckJHdv+bJSei X-Received: by 2002:a50:cc9a:: with SMTP id q26mr211234edi.64.1600957742085; Thu, 24 Sep 2020 07:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600957742; cv=none; d=google.com; s=arc-20160816; b=wjGaD780jeDcq4JfWiYCXb4njqZD77dTUauM9rMd09d/iFxWmqX7CstL1+y4DVvi+S koAH8p9Rm3yNJ6l+ED4Oj2bzlK/lDUJQGHwg7iUpRORpGaajMQN008J0s7Csj/4HYTCT w/f8mk4x2hwWBK6ki9sy8SjkyiC3Zw+WxTm3HBIaIYXr0p3apEiHo/XZTg56gT+ORYvb V5EhEAcQzzvUrOWOK6hz0dUXoEU03CZOj49nKZ9z2ACcGQ8RS3xoIp/zkiafPzAUT5at UiTRDWWJNiK6l3qnJKGWnnveNmUPiWd55zd0uwIlujY4ETZaN0EbYpBbc/E93Yw7LWf+ xuiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BhjXs0X1T6fyEGbqATV3iAKCYDUTserBVGQfsds99Q8=; b=tffxvexglheAFfvJjQXipnuMVS4RSxmVPJp9UmGJKn1ODDiRlyAITeU0/HQLXpFK2n c2ClVN3H1ovZ+JICmnGyB+zCL/+eoN9u0bJyxAwY1k73DmAYzYDCTh2KKbc0lX2uRv7q SE48Ip2cKWF1gt4u48PZRWCuiWbI+kR54J639ona0kX24IlaFhyo2nVy+DOcAzXgnh8W SmWhGuPzUoK1g/sD2v3Moidok2jKlmvgOtn8dDZPhtSYVmIAemEiD15/frKX/k6o5NR6 f9HPN//w9UTY1ic9wy22FY9pgqoYmM7J+5B1TGjh3QTfyR6ovqnXXy0dkMEY5JvqKhMr KNcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lZ2IHLOv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv15si2212353ejb.364.2020.09.24.07.28.38; Thu, 24 Sep 2020 07:29:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lZ2IHLOv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728171AbgIXOZf (ORCPT + 99 others); Thu, 24 Sep 2020 10:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727974AbgIXOZf (ORCPT ); Thu, 24 Sep 2020 10:25:35 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23F7DC0613CE; Thu, 24 Sep 2020 07:25:35 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id y6so1749075plt.9; Thu, 24 Sep 2020 07:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BhjXs0X1T6fyEGbqATV3iAKCYDUTserBVGQfsds99Q8=; b=lZ2IHLOvUlSzofjJzppCZLACHPsTpIecrUUi9yAxP/p2GvombkArlU1xTZQhAGnnjK g2GebQ/478ooEg8r5LWavf20tfUHnei0vBc51EApwiUQoShSyH+V6dwxfT2qcl8s0iSS /qXQEn0URynfGfyTDlit78GesAM221oMd2R25Hi9nVYzscs9+9GmmaflqLcEp5ACCvT/ q2mNkYlPDdTJPfqnwcNgEyRQxXy4CapItbbfWtij9i+M1fCht3TSleY5p+Zb5vH+e6cl tghZdra5yDIl1eJHDG5d1wXzyMT90qrJwYHZO22BNM6r+7AMsLHgWTizzxRn/54oshsA YJOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BhjXs0X1T6fyEGbqATV3iAKCYDUTserBVGQfsds99Q8=; b=JTHs9vyUBeqLPtWEJXbeHHE17JTfl18RDVDAj/goD8ifyxqpA+M2WcIiifp32Le+mT rgd1j0XH3aN8xNtWTq+9sT08rf919PZYGJY1dbKFRotClRjReUYwXp/X9yERIicpjk64 thXX6d61CSr6j8PpA7UB/mkF0zESspsjQ1/WqYmfQZHMpC+Yzm+brhnRS9mNdX9sdsNn 5QuJEeR3nt+Ovj3e3FJND7XIyGx/z6UllS29tKNHlNjlXYTCcqrUZuWbJRQoapj0bNTK g9Ts8FrLvwTmJXUbiNiSlBl/XA1a43AW1rc+JilDNmorGjHBduAbhQusK66Pb/mCuUqU +hlg== X-Gm-Message-State: AOAM532ZwrcHSvYjcI8llCSfyWEICZ7r8ccyaQOHWM7ybHbRdAFEzzPM 8Xe0Vj68xz3AkmLIR+CA0w== X-Received: by 2002:a17:90b:796:: with SMTP id l22mr4254744pjz.199.1600957534641; Thu, 24 Sep 2020 07:25:34 -0700 (PDT) Received: from PWN (n11212042027.netvigator.com. [112.120.42.27]) by smtp.gmail.com with ESMTPSA id gb17sm2667794pjb.15.2020.09.24.07.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 07:25:33 -0700 (PDT) Date: Thu, 24 Sep 2020 10:25:25 -0400 From: Peilin Ye To: Greg Kroah-Hartman Cc: Bartlomiej Zolnierkiewicz , Jiri Slaby , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] Prevent out-of-bounds access for built-in font data buffers Message-ID: <20200924142525.GA879276@PWN> References: <0000000000006b9e8d059952095e@google.com> <20200924140937.GA749208@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200924140937.GA749208@kroah.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 04:09:37PM +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 24, 2020 at 09:38:22AM -0400, Peilin Ye wrote: > > Peilin Ye (3): > > fbdev, newport_con: Move FONT_EXTRA_WORDS macros into linux/font.h > > Fonts: Support FONT_EXTRA_WORDS macros for built-in fonts > > fbcon: Fix global-out-of-bounds read in fbcon_get_font() > > > > drivers/video/console/newport_con.c | 7 +------ > > drivers/video/fbdev/core/fbcon.c | 12 ++++++++++++ > > drivers/video/fbdev/core/fbcon.h | 7 ------- > > drivers/video/fbdev/core/fbcon_rotate.c | 1 + > > drivers/video/fbdev/core/tileblit.c | 1 + > > include/linux/font.h | 13 +++++++++++++ > > lib/fonts/font_10x18.c | 9 ++++----- > > lib/fonts/font_6x10.c | 9 +++++---- > > lib/fonts/font_6x11.c | 9 ++++----- > > lib/fonts/font_7x14.c | 9 ++++----- > > lib/fonts/font_8x16.c | 9 ++++----- > > lib/fonts/font_8x8.c | 9 ++++----- > > lib/fonts/font_acorn_8x8.c | 9 ++++++--- > > lib/fonts/font_mini_4x6.c | 8 ++++---- > > lib/fonts/font_pearl_8x8.c | 9 ++++----- > > lib/fonts/font_sun12x22.c | 9 ++++----- > > lib/fonts/font_sun8x16.c | 7 ++++--- > > lib/fonts/font_ter16x32.c | 9 ++++----- > > 18 files changed, 79 insertions(+), 67 deletions(-) > > Gotta love going backwards in arrays :) > > Nice work, whole series is: > > Reviewed-by: Greg Kroah-Hartman Thank you for reviewing it! Peilin Ye