Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1836594imm; Mon, 3 Sep 2018 10:41:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZr15nMPtcRg0ky0TQ1YpTQvvZsmhiCfc8WsrYS37w872Gd7pNBRiLgBnNjPUPl5zlLlUtg X-Received: by 2002:a17:902:be07:: with SMTP id r7-v6mr16751712pls.275.1535996514821; Mon, 03 Sep 2018 10:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535996514; cv=none; d=google.com; s=arc-20160816; b=nP8pTNY39Y6bSNeahNeIn0XYzUI8rojknuQqXOrG7FKjkUS/2NoWT/DKnuWItSYwYF sZGaIqGkxo/NPG2kN/zm2+VrwZlDawqvZbt8CKoVxz6yCEkykOLdEPZkafKAEV6vM3zf Se9P/YUqGTjL7b4jg8xCIn5eFJ/KEESKbyqY6barKzCCz0V8eHUhYOnsemYHiXGgXuR6 ZWqyrOdnaNS3uUemMN8wrbGMV0qUNsgL/HDQ44vF9VVYdguFIO9m2rNmM6vOTYNpx60w tcdMFKJn3fjhb5PA2zS1ySqGHpOxEBmvU08d9FFzjTz6Kn6IyVWu/3qoScNQSBAt9mhJ 7ABA== 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=92ShJfPLFrYZ5tVYpsEK9slCv9yDQAadsMewHhD8Zdo=; b=c81LRdm2Rl/u0z+JiAux4PI8Y83pGHbjQMFqixvaH7z2Yo2NfLHuOjP5OG869M6rMU mbf4HIKVzQJzqmOdPDkufM9PI3yareDkkeg552q73BfnUYJXJYdWvpGYKgz0dxA0SAW2 ESIClNFPbFyz8dzOYHRXxT7urfpKYxHMkLAFUNJu8g8WYusGn8fafL7ipA4Iu3x5OpUQ OEgF0nJsHZXErqR/oBehaPP+RCGD7Sk7vlPcCEcwMrscgwyKBIqwyH8VVckYFfA8cV6S Z+w5zn0CkDOG6wIRvKjuov7fKon4zLhPl4WtkiXglB2wMDCHtvtLNOBGP/gOFlcsdqVr cLpQ== 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 m5-v6si21105219pfb.104.2018.09.03.10.41.40; Mon, 03 Sep 2018 10:41:54 -0700 (PDT) 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 S1731916AbeICWAa (ORCPT + 99 others); Mon, 3 Sep 2018 18:00:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49172 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728885AbeICWA3 (ORCPT ); Mon, 3 Sep 2018 18:00:29 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7BDF2A95; Mon, 3 Sep 2018 17:39:18 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mikulas Patocka , Dave Airlie Subject: [PATCH 4.18 068/123] udl-kms: fix crash due to uninitialized memory Date: Mon, 3 Sep 2018 18:56:52 +0200 Message-Id: <20180903165722.309243772@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165719.499675257@linuxfoundation.org> References: <20180903165719.499675257@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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mikulas Patocka commit 09a00abe3a9941c2715ca83eb88172cd2f54d8fd upstream. We must use kzalloc when allocating the fb_deferred_io structure. Otherwise, the field first_io is undefined and it causes a crash. Signed-off-by: Mikulas Patocka Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/udl/udl_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/udl/udl_fb.c +++ b/drivers/gpu/drm/udl/udl_fb.c @@ -221,7 +221,7 @@ static int udl_fb_open(struct fb_info *i struct fb_deferred_io *fbdefio; - fbdefio = kmalloc(sizeof(struct fb_deferred_io), GFP_KERNEL); + fbdefio = kzalloc(sizeof(struct fb_deferred_io), GFP_KERNEL); if (fbdefio) { fbdefio->delay = DL_DEFIO_WRITE_DELAY;