Received: by 10.223.185.116 with SMTP id b49csp929432wrg; Wed, 21 Feb 2018 09:11:04 -0800 (PST) X-Google-Smtp-Source: AH8x2276LUJ5TuoGdahg6oAIgsxS43lr/Ii+Q3BkxC+xLNuodn7syLSa8HFOVzY960OM5AVBh+eD X-Received: by 10.98.100.131 with SMTP id y125mr3966789pfb.117.1519233064271; Wed, 21 Feb 2018 09:11:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519233064; cv=none; d=google.com; s=arc-20160816; b=Y6tXwLq82Xdtn5GkDvh6eBXHLPc3j92bzFiLMUprJAC4t4srsCGzRMwyIWbsCgXmb2 A3yT4IH6MtkDsTIUcQLJFDjJr79xtn+Vekf5V0tqIgOMbZT0QBIOHAUAFtBOhEdsqKgd 26ztzTpKx/q1RQb+qU2kCdXWfZQQNVXyt/eSPvmWxU6zRUnnv60j9D8ysFSLJAtXe/Ym Dgl34Y/K2W/0K6aYkiprUGUPRAglWTCPrYj66Ucawmy45Trc5Xs0ldCB/4nQ2ZQZ+p29 B2yyEg6JVuJZXIV0DLvUmu/g98oSEManaJVJjf1yM9buylQzybcbkbcuP+pNWPIyK+zH 8tng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jhAQDFE8ar0SGrs8qiws2l02YCzdpm/lpwcCQDXOlac=; b=Mss0jYJzlvjYoi3HnvThc4RvmeYEAok66zmAhtl7prBpcg2p0czU4hzmyHP3AfGi9x VRjZLBwSK5Xh326xhCMA7v/OVcBjra42BLt5A6uiVwemZCa67XNq3icNSesgJRHzxZfi 73+hyNi4NQvzmv/6DhuDcjGZEm4qnaXQyeJn5EK6j9QgrPNCIAcAYCgCe+TDBbvFE8qb 4PoGESMMPp4GrhiXIyko86ZPtjpUJ5FWL/aAHof84AeYu/agUR7SgtA2OZjF7X5QUEqw Y0ksBl3uY0BPCk7zkQhSFExNd+MBVqGF966p0pvfNJzmf2OCufFXq1W+SeyR88XTflwL Kb+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18-v6si1532455pli.760.2018.02.21.09.10.39; Wed, 21 Feb 2018 09:11:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932382AbeBUMvv (ORCPT + 99 others); Wed, 21 Feb 2018 07:51:51 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:59118 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933776AbeBUMpj (ORCPT ); Wed, 21 Feb 2018 07:45:39 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4DB2C1230; Wed, 21 Feb 2018 12:45:38 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Pitre , Bartlomiej Zolnierkiewicz Subject: [PATCH 4.4 17/33] console/dummy: leave .con_font_get set to NULL Date: Wed, 21 Feb 2018 13:45:00 +0100 Message-Id: <20180221124410.520707607@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124409.564661689@linuxfoundation.org> References: <20180221124409.564661689@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nicolas Pitre commit 724ba8b30b044aa0d94b1cd374fc15806cdd6f18 upstream. When this method is set, the caller expects struct console_font fields to be properly initialized when it returns. Leave it unset otherwise nonsensical (leaked kernel stack) values are returned to user space. Signed-off-by: Nicolas Pitre Cc: stable@vger.kernel.org Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Greg Kroah-Hartman --- drivers/video/console/dummycon.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/video/console/dummycon.c +++ b/drivers/video/console/dummycon.c @@ -68,7 +68,6 @@ const struct consw dummy_con = { .con_switch = DUMMY, .con_blank = DUMMY, .con_font_set = DUMMY, - .con_font_get = DUMMY, .con_font_default = DUMMY, .con_font_copy = DUMMY, .con_set_palette = DUMMY,