From patchwork Sat Nov 6 14:41:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kulikov Vasiliy X-Patchwork-Id: 308642 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA8FTeB4019833 for ; Mon, 8 Nov 2010 15:30:00 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A0889E8D3 for ; Mon, 8 Nov 2010 07:29:40 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ew0-f49.google.com (mail-ew0-f49.google.com [209.85.215.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 27C5A9E802 for ; Sat, 6 Nov 2010 07:41:21 -0700 (PDT) Received: by ewy19 with SMTP id 19so2157504ewy.36 for ; Sat, 06 Nov 2010 07:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=INaMoSJAeoLE39PaC/XawNTh8EsESQVyZ1rFfUHOdfk=; b=HoTXqjjAL48Ih+vP+auoEn0uQZSuZkHhoxnYTvPNA45mOcuAKneA6JLRrbs970oQII XL3FAiB1NOH1ipBDhFdvtTnYuCW854Xui1u7GJlvRcgPcANtQieCcJngNkOT4rF3Cc3V swnizv/YPjszEgQfU+bJV5sFlMJgot42dC2WM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=HCYUe4YMKZQb31pi1vO+LuOQob0LTSz2Jk/HD6VCnumhqJXNsbJcoE9LSTFXPZJB1g +gGTwk2IlVfotmYKmCElPM8liKAMH5dsNP5Mai3ktFMIlb0/fMsrbSwL0XDEY41gE2SK qUY9vK/PQFrBD7+B8JdHYZqdb19XuY9QUT82E= Received: by 10.14.45.72 with SMTP id o48mr1769119eeb.22.1289054481062; Sat, 06 Nov 2010 07:41:21 -0700 (PDT) Received: from localhost (ppp91-78-211-12.pppoe.mtu-net.ru [91.78.211.12]) by mx.google.com with ESMTPS id b52sm2194190eei.19.2010.11.06.07.41.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Nov 2010 07:41:20 -0700 (PDT) From: Vasiliy Kulikov To: kernel-janitors@vger.kernel.org Subject: [PATCH] gpu: drm: vmwgfx: fix information leak to userland Date: Sat, 6 Nov 2010 17:41:16 +0300 Message-Id: <1289054477-18100-1-git-send-email-segooon@gmail.com> X-Mailer: git-send-email 1.7.0.4 X-Mailman-Approved-At: Mon, 08 Nov 2010 07:28:55 -0800 Cc: Thomas Hellstrom , Dan Carpenter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jerome Glisse , Dave Airlie X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 08 Nov 2010 15:30:00 +0000 (UTC) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c index 51d9f9f..76954e3 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c @@ -691,6 +691,7 @@ int vmw_execbuf_ioctl(struct drm_device *dev, void *data, fence_rep.error = ret; fence_rep.fence_seq = (uint64_t) sequence; + fence_rep.pad64 = 0; user_fence_rep = (struct drm_vmw_fence_rep __user *) (unsigned long)arg->fence_rep;