From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-f193.google.com ([209.85.217.193]:36177 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751201AbdAMQ4r (ORCPT ); Fri, 13 Jan 2017 11:56:47 -0500 Received: by mail-ua0-f193.google.com with SMTP id f2so4606355uaf.3 for ; Fri, 13 Jan 2017 08:56:47 -0800 (PST) Date: Fri, 13 Jan 2017 14:56:39 -0200 From: Gustavo Padovan To: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org, Gustavo Padovan , Daniel Vetter , Rafael Antognolli , stable@vger.kernel.org Subject: Re: [PATCH] drm/fence: fix memory overwrite when setting out_fence fd Message-ID: <20170113165639.GE16017@joana> References: <1484317329-9293-1-git-send-email-gustavo@padovan.org> <2003560.ZPyAhlVHHW@avalon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2003560.ZPyAhlVHHW@avalon> Sender: stable-owner@vger.kernel.org List-ID: 2017-01-13 Laurent Pinchart : > Hi Gustavo, > > Thank you for the patch. > > On Friday 13 Jan 2017 12:22:09 Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Currently if the userspace declares a int variable to store the out_fence > > fd and pass it to OUT_FENCE_PTR the kernel will overwrite the 32 bits > > above the int variable on 64 bits systems. > > > > Fix this by making the internal storage of out_fence in the kernel a s32 > > pointer. > > > > Reported-by: Chad Versace > > Signed-off-by: Gustavo Padovan > > Cc: Daniel Vetter > > Cc: Rafael Antognolli > > Cc: Laurent Pinchart > > Acked-by: Laurent Pinchart > > > Cc: stable@vger.kernel.org > > I don't think this is needed, given that the code was merged in v4.10-rc1, and > this patch should be merged as a v4.10-rc fix. Hmm, yeah. I got confused. Gustavo