Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1839542imm; Mon, 3 Sep 2018 10:47:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZKesFziX+lo2tVuaMKP3iUx4eIF6QgfHagivQHlla5pm3/oCUkGcoJpjq5e+webstbjIWp X-Received: by 2002:a63:d09:: with SMTP id c9-v6mr27758694pgl.314.1535996821674; Mon, 03 Sep 2018 10:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535996821; cv=none; d=google.com; s=arc-20160816; b=PQQu59g/+I8vLxjWmqgk95X8OnbBp2tWwBzRi/e3NymiQIlmykqTWgIodSqXMn/hBi RXcr7lpy2w2vOx1AjmMSy52JfQU2xUR2CwkJbjVJb4DqsP7vBVjJpUgrmPoIYIMbr2ge RxFcSN6XahgfEADn9W3xNXuz/z4IBuBtL8pIifb0JEuhhjEwLlX1v/tELzBQY1gCIOmy NBiXA0/MQf0qrYNy0uLR68N6jOt5TSawaYv8nbUOLaU+B7MaX+RcCiM4E5hxcKtcufPm MIQXhsAAsZiZtAMNFdXx1yQjlytgAnV0KODXZnwZ6RrD5LlmOtvbSH/lIYYlikMDPc5A Cjpw== 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=Yv0BNf1fOyFsRFU0tPqFpOQruOinQNDwBn+kTCC7ZiQ=; b=zQIIHQcsNXf/e5ixbJ2j2cT8yOT75t96qtgBtUOgYdz1SSAzZoG9nlCIFJ64adEt9n jtfGmJj4P2YUf4sMEtJs8K5kPr31Xpl+eYzk6y3+HnlWo4WyJ1yWJjVU+ccnBY0yVHs2 mq7ZhwdWqU7f9jVOAiS/EqYIR8eeoWKV3bSDg1UE6/t7fBDIzxtVXPjXIVmt/2bI/DAf ZzHU/2b634AScGzQDPuqPnSqqbKs2vvSwyptZUQhRE69m61SBnEnjR9bufZ2rtUXhnIe BkuIHmbWKHc896vmOnV2g/LpreUdwv2hksuQinhQSZEDKiHYFtfR5j2thUh8iOCm1u84 qXhQ== 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 71-v6si19447814pfv.139.2018.09.03.10.46.46; Mon, 03 Sep 2018 10:47:01 -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 S1730745AbeICVrG (ORCPT + 99 others); Mon, 3 Sep 2018 17:47:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45838 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbeICVrF (ORCPT ); Mon, 3 Sep 2018 17:47:05 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 15EA1D36; Mon, 3 Sep 2018 17:25:57 +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.14 127/165] udl-kms: fix crash due to uninitialized memory Date: Mon, 3 Sep 2018 18:56:53 +0200 Message-Id: <20180903165701.946716924@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@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.14-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;