Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3048487pxu; Mon, 19 Oct 2020 02:29:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP6OnxDtJc9k4skh57lh0HVeNuocWqw+/BfP8F7kYfmAzJeBZiYMzPQNgAcgvolVDtvRHY X-Received: by 2002:a17:906:394:: with SMTP id b20mr15984904eja.513.1603099748418; Mon, 19 Oct 2020 02:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603099748; cv=none; d=google.com; s=arc-20160816; b=Z6hJfvuZuNkNeVDAQvhc7I8Q6TvjkQ1T9qz+c7EhqoY0KvyYqSgyRPiMoYOZl+miZG VenDDdDoO/eSAX0Uprs4HwMG4f3LouP8g6y+DV8umyXAHt+mpBW7sNL05TRMICKiCm+Q 7fNlS0SN1AWwrsxhl7x47T8GA2MmPgi4C1JDPdE0Qum0fXfGQxvo2lh5WdrZzuifhckz 4SXeCoH2Z6J2dkh31ZkXnBFadA/0BrFJikEXpZWlaCDIHURP+nMyDzMXJVQfjRoW1qux oqa9oPYwPnMR5ygmXVpWE8m0huCJ6hBqAUjdMWN+lkAXtrYl5JCLfHnvA2me0IivNubd 5apw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2tjt8ngbdIU3h9PETCczfJ9vnTQ40FaapLpDo2xIhaE=; b=pfdggKVNQ6NwBjUT4AvgbiotKHsBaNHXd0p4bDVgpwhUMSRGkvTL2XhMvOjUCyoPIX yCMuPricqLDh1m4eeF0/1lHGNxuQmx/TJKbulKKtkVHYItiKw12VLxPMQuKrvBBOHlEe WlivKyeOrQr8eZXyBBiY7aEea4y3Ob2z2luDJg+K4RFQlRhmrcG645TMm0/KBCCD1725 aPd1Fg803WhmmPeMXEdkKA34KhsEGkG8XjbaWVga5kbsmGLJkWkWPyN2rqLDNXI302Vc VMtdo1UVD4Hz71ArFOQNZJ2WxuE+XFejZ8IF2U72Q09eHdUCfhI0m0bwLluL+rv4LM6U sHJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Sp9iIrfZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si7716533edm.265.2020.10.19.02.28.43; Mon, 19 Oct 2020 02:29:08 -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=@ffwll.ch header.s=google header.b=Sp9iIrfZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727333AbgJRUdZ (ORCPT + 99 others); Sun, 18 Oct 2020 16:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgJRUdY (ORCPT ); Sun, 18 Oct 2020 16:33:24 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47A67C0613CE for ; Sun, 18 Oct 2020 13:33:23 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id 16so10115204oix.9 for ; Sun, 18 Oct 2020 13:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2tjt8ngbdIU3h9PETCczfJ9vnTQ40FaapLpDo2xIhaE=; b=Sp9iIrfZIvjznRS75UO82B6KhHY8UwiZ3t5UFaGmGqwmbjlttQPIxbes+8+VYGfeUc vBjeQ28RaYl66uxePh4ZL0rA8ul4c6tJl5y34Ezn0mtkJ7fpCfvAm+1vc/JkXxoDiX+m XWZgtLUI+RJeQdB9hmX2gJ2FWQlkhnbRrBU7Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2tjt8ngbdIU3h9PETCczfJ9vnTQ40FaapLpDo2xIhaE=; b=LDTSirAgrm0e8Iurn7BL9z8iLl1bbGQqBj1FNtqFX/ehJ44uY0onMYOp0/Ix1xsDfI qciPW3kCYd7QwQKiVzjoZNuHtu69Nds02NuMGDssNYyr9njQ46VwgTq/PkcVLrx21Dft o9gS/D+Y5FDahx3Hx6HH4gXqxRUkjYP7IocHffXPkHzuX5FRRAAFLq0/PhDaWUCshmCQ 7/DaSYDIK1Y7KOsuXfEgnuKvo2wibZVyU/PbKXD9nvNRj7wwKXjKEn4J/EAjMHPr7ALx AksKLA2oy3yYzcy94QxgAxJDwDbTmFcsPXY6iW6No5eLZq0KhGEYQLNPG1Yr898vya1x pOSg== X-Gm-Message-State: AOAM531mVwPqphLFfJc0XvT5uWuh18jvvsQbxUyStwl580d8Envof6cF utpjYgBb9D0UK57stijoZlVyz/deVpz1L/RAqMhpVA== X-Received: by 2002:aca:6083:: with SMTP id u125mr9349336oib.14.1603053202045; Sun, 18 Oct 2020 13:33:22 -0700 (PDT) MIME-Version: 1.0 References: <20200820082137.5907-1-s.hauer@pengutronix.de> <926453876c92caac34cba8545716a491754d04d5.1603037079.git.yepeilin.cs@gmail.com> <20201018201811.GA697615@PWN> In-Reply-To: <20201018201811.GA697615@PWN> From: Daniel Vetter Date: Sun, 18 Oct 2020 22:33:11 +0200 Message-ID: Subject: Re: [PATCH 1/2] Fonts: Support FONT_EXTRA_WORDS macros for font_6x8 To: Peilin Ye Cc: dri-devel , Greg Kroah-Hartman , Bartlomiej Zolnierkiewicz , Sascha Hauer , Sven Schneider , Pengutronix Kernel Team , Linux Fbdev development list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 18, 2020 at 10:18 PM Peilin Ye wrote: > > On Sun, Oct 18, 2020 at 10:09:06PM +0200, Daniel Vetter wrote: > > Adding dri-devel too, not sure anyone is still listening on linux-fbdev. > > I see, thanks! > > > On Sun, Oct 18, 2020 at 8:13 PM Peilin Ye wrote: > > > > > > Recently, in commit 6735b4632def ("Fonts: Support FONT_EXTRA_WORDS macros > > > for built-in fonts"), we wrapped each of our built-in data buffers in a > > > `font_data` structure, in order to use the following macros on them, see > > > include/linux/font.h: > > > > > > #define REFCOUNT(fd) (((int *)(fd))[-1]) > > > #define FNTSIZE(fd) (((int *)(fd))[-2]) > > > #define FNTCHARCNT(fd) (((int *)(fd))[-3]) > > > #define FNTSUM(fd) (((int *)(fd))[-4]) > > > > > > #define FONT_EXTRA_WORDS 4 > > > > > > Do the same thing to our new 6x8 font. For built-in fonts, currently we > > > only use FNTSIZE(). Since this is only a temporary solution for an > > > out-of-bounds issue in the framebuffer layer (see commit 5af08640795b > > > ("fbcon: Fix global-out-of-bounds read in fbcon_get_font()")), all the > > > three other fields are intentionally set to zero in order to discourage > > > using these negative-indexing macros. > > > > > > Signed-off-by: Peilin Ye > > > > Patch looks good to me, but it says 1/2 and I can't find 2/2 anywhere, > > not even on lore. Did that get lost? > > 2/2 is just updating the fb documentation: > > [PATCH 2/2] docs: fb: Add font_6x8 to available built-in fonts > https://lore.kernel.org/lkml/717bb41dda8e2ed615f3faadfbc3e215de726d38.1603037079.git.yepeilin.cs@gmail.com/ > > I did `git format-patch -2 --thread=deep`, did I do something wrong when > sending it? No idea, it just didn't arrive anywhere I could find. And I did get your previous patch series. Maybe just try again with dri-devel included and hope it works then? -Daniel > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch