Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3638351pxk; Tue, 29 Sep 2020 02:13:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzso5q2zLobHIYkbJtXo1UKmmy9ZqjcgfVnT+XMpikzSllzXyr6YT6GMsuULKOB7Sl8xT4s X-Received: by 2002:a17:906:474f:: with SMTP id j15mr3059885ejs.468.1601370796121; Tue, 29 Sep 2020 02:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601370796; cv=none; d=google.com; s=arc-20160816; b=sT+WmmkTmoUkopRdbW/LkEAss2gYEWuZknlT/2BX5YPx17hSvDGOEFOMt1KcUcwsCE mBhVcLjk1UtdkwhahspyszAFZuzBmpBQpBevPelC5e3t/7DSw15zm0VgvyTDbAVFbrkE 5rCh0wdYB8Wde14O3tzg6YMu6PL6vizYKog6gZqTZLtlZdS6jLKkw0X2wAFuPDKo34In od4lnSOW2v7KlCen4J1zho7QwzomoxOEfY/VAGE4ffH7jX24YyheH2I+rNLFmEIZnrnk Wk+3fmWIZ6W5OmjSA4a0JU6dyJ40Ji2R4p38yxzFekULMvHG7rgaOAsliLD0gH7J64ST aYaQ== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=k2Jah2mTmKFXktqL5V+63tK4qiHDFQHzYLeyJvDVPh0=; b=HjfnKxO352iL5CY2TmOvm1oFgxoN4o0NAoaOi+OUaXqnMubii7qQoC6o9yyMQeGX2O mVg5pPpGE4+KvdvHSQHS1xj8pr2z2QHK7d+gvd/9G1kJoiC3DDvgCKi/LFJhpIqJanB2 qMkJEd4ueTducfqwCDty6vBeksJXYEJ/cEe+1kByWF4eivKqepXELd7MRKrikrnoS8tw ANdO5kEHKAvkM/VbJciGY8E5LCcbvc7219qidMZ1IsckV4JEGoSuzWnb5fmDvVZRRiF7 ciM23XStD5yTJYWr8/EIdVfjGZM/hZCohkA15vNOYZ5/Ko8lQIUcFIcBV0T5uUK5k67o lEjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=cdJuKv1N; 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 f24si2346810edr.375.2020.09.29.02.12.53; Tue, 29 Sep 2020 02:13:16 -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=cdJuKv1N; 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 S1727908AbgI2JJv (ORCPT + 99 others); Tue, 29 Sep 2020 05:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727902AbgI2JJv (ORCPT ); Tue, 29 Sep 2020 05:09:51 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ABA3C061755 for ; Tue, 29 Sep 2020 02:09:49 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id v12so3973400wmh.3 for ; Tue, 29 Sep 2020 02:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=k2Jah2mTmKFXktqL5V+63tK4qiHDFQHzYLeyJvDVPh0=; b=cdJuKv1N4Ay7T+1odQicxDmvixgp3UfzwGJ44dWwPD3Nhz6tOT4snh0SWEeUh5GOVN siVoWvDApLOjBe05bkHCwJfu+guxnMoh5LeRYx8gVR6PkAUfcuUYnV/f/NETb9NtcYmg IMQXaApU3y+qqAHTNaz75srn6pK2eP3TXXz8A= 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 :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=k2Jah2mTmKFXktqL5V+63tK4qiHDFQHzYLeyJvDVPh0=; b=Coinbrs2sdw/E0uJ0b9JkXNF6R0xrT6h8R/7iva6Y8bxNnVIpw6FhTlhzx3LS8IWi6 n79DGfI+RmbUyxqNkoEEyZcTI++Bo0bSygcX1FOTuYZhDyta5OHiiyUgkfL/Alp6AahB Vo4kXb/MzO5C7KE6F4v0X4QAyoWfVBoHzOlNdt+Ijm3wxrWS1whd/q/C9uj3CR+IB2go aUeyOio4J95Ovkk0XfJMgdoj1IZ6zlFhJMg3weFrIwmQb4B8eQkKsCcmAMMveVmpfZxo E2AnZFfjwL3/0LTDjG3Zr7Jp5+O+fsXf9OWpPY+X5TLzOkMKOt19suK1QaKk6utloZ3c HwMQ== X-Gm-Message-State: AOAM532Qzf3/q8C5heLAWzAduxl5TUpsQGSDXin4uIFP6GTJO0BkzGAe Six88kGFB/kgJT1pYbpPxG+EhA== X-Received: by 2002:a7b:c105:: with SMTP id w5mr2997053wmi.120.1601370588192; Tue, 29 Sep 2020 02:09:48 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id l18sm5164350wrp.84.2020.09.29.02.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 02:09:47 -0700 (PDT) Date: Tue, 29 Sep 2020 11:09:45 +0200 From: Daniel Vetter To: Peilin Ye Cc: Daniel Vetter , Jiri Slaby , Greg Kroah-Hartman , Bartlomiej Zolnierkiewicz , 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: <20200929090945.GH438822@phenom.ffwll.local> Mail-Followup-To: Peilin Ye , Jiri Slaby , Greg Kroah-Hartman , Bartlomiej Zolnierkiewicz , 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 References: <0000000000006b9e8d059952095e@google.com> <3f754d60-1d35-899c-4418-147d922e29af@kernel.org> <20200925101300.GA890211@PWN> <20200925132551.GF438822@phenom.ffwll.local> <20200925153509.GA895804@PWN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200925153509.GA895804@PWN> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 11:35:09AM -0400, Peilin Ye wrote: > On Fri, Sep 25, 2020 at 03:25:51PM +0200, Daniel Vetter wrote: > > I think the only way to make this work is that we have one place which > > takes in the userspace uapi struct, and then converts it once into a > > kernel_console_font. With all the error checking. > > Ah, I didn't think of that! When trying to introduce > `kernel_console_font` I ended up using the uapi version and the kernel > version in parallel... > > > Then all internal code deals in terms of kernel_console_font, with > > properly typed and named struct members and helper functions and > > everything. And we might need a gradual conversion for this, so that first > > we can convert over invidual console drivers, then subsystems, until at > > the end we've pushed the conversion from uapi array to kernel_console_font > > all the way to the ioctl entry points. > > > > But that's indeed a huge pile of work, and fair warning: fbcon is > > semi-orphaned, so by doing this you'll pretty much volunteer for > > maintainership :-) > > > > But I'd be very happy to help get this done and throw some maintainership > > credentials at you in the proces ... > > Sounds exciting, I will be glad to do this! I'm just a beginner, but I > will try to do what I can do. If you want to follow along a bit I think would be good to subscribe to the dri-devel mailing list. At least for all the fbcon/fbdev/gpu stuff. I don't think there's a dedicated list for vt/console stuff, aside from Greg's inbox :-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch