Message ID | 20200803121850.183204182@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=5b7Y=BN=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 083D6C433DF for <stable@archiver.kernel.org>; Mon, 3 Aug 2020 12:38:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D771E2054F for <stable@archiver.kernel.org>; Mon, 3 Aug 2020 12:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596458334; bh=+EYqTni3FNqfBHaiNdgQ2JMG4j+xAECMvzO5jCAXxMg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=sFSUuAP367kGAVbOYrYB9g/zmg0dvBBqwEv4fdJuzsABTvEpANFMWLrtIwF6nGvUc leeFztygqvU3dutCkHKu/wYpoB2fhXvj6UzjRtssnCvwQZhPfob09H17Dj+RbLtlvI gZM0DEYI+1AndHdNgnb5Dmo9nAKtvp5Oi9mOsk8w= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729161AbgHCMiy (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 3 Aug 2020 08:38:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:34320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729527AbgHCMeQ (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 3 Aug 2020 08:34:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FAE1204EC; Mon, 3 Aug 2020 12:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596458055; bh=+EYqTni3FNqfBHaiNdgQ2JMG4j+xAECMvzO5jCAXxMg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1mEFwq/xpzAmsL1YA8ffPhMCuCmDlfLNOBn1g0oMPYebhvvfvLKRfgeDBR3wMEVKn 6H6bDmaaAqh4zcIlUq/2AldtNwFpzYZfPr86u0MAfL+EfXJ0pQzuuavBk4mxYlctaV i9iXlwhD8fmN7a+IRYNgjzfDzujf4QFd/y9gYRpA= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Dan Carpenter <dan.carpenter@oracle.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, Peilin Ye <yepeilin.cs@gmail.com>, Alex Deucher <alexander.deucher@amd.com> Subject: [PATCH 4.14 14/51] drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl() Date: Mon, 3 Aug 2020 14:19:59 +0200 Message-Id: <20200803121850.183204182@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803121849.488233135@linuxfoundation.org> References: <20200803121849.488233135@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c @@ -527,8 +527,9 @@ static int amdgpu_info_ioctl(struct drm_ return n ? -EFAULT : 0; } case AMDGPU_INFO_DEV_INFO: { - struct drm_amdgpu_info_device dev_info = {}; + struct drm_amdgpu_info_device dev_info; + memset(&dev_info, 0, sizeof(dev_info)); dev_info.device_id = dev->pdev->device; dev_info.chip_rev = adev->rev_id; dev_info.external_rev = adev->external_rev_id;