Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1144721ybb; Fri, 3 Apr 2020 19:45:02 -0700 (PDT) X-Google-Smtp-Source: APiQypJTs386Bnc9HmK0QYVnfkekmrgWNvH0BKAdNyxQP5osfjHv4QlkNhfzosduWPonoJKUkxmW X-Received: by 2002:a9d:6950:: with SMTP id p16mr8897838oto.199.1585968302250; Fri, 03 Apr 2020 19:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585968302; cv=none; d=google.com; s=arc-20160816; b=Qoo+FEBQ9G/RyMkq0hWvU96pQG7IdYYw1heLoEWBtBYB8Y3Sx8dkWT8IXIUrNPdXU2 FtaFqjCTEXG0bDZRswlDKcpQHHnUz+NqYueTgwpHrhI1pmMAmZkgZ3gGjO6ff7SqkDaV RQGEU4BKZIYMO0FFqHnC2isi2wVZRX8LwurrzROJmjOvURFMOFvlzls1B688zlpAk13g 1jWiTVHXPlhUXgqio/spcCAE0NFGq9G6uRIQ6XtI0mPSQ2heatbpZw4rS2ASqdvlK1Lb sZ9DZTyioK5qcJPJXHQvu41loaQ+XOVSeU2/+W7GS9kHOiAYwmbMyCShUMYkxZTrcJMm z3Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date; bh=jpCey6nXR24VHkMuvgvYPJ86L/KDUB6wcFgnfdZsomA=; b=TrlEYPa5m+D0PaX6ZRuVorjGGKiElommgR9UT93jgQoO849xIiSLYdo+EeBOpGLjpc nkHRbaPbyhtTKqXewDBCcIUT0f0EKoCB13jcYJDycz0gXXtx4Q2iJsDVEehLwGX2Uzo4 u2++sWF7zT3Z6axTr4inO2jeGlRJmUBNOIjiQTSS4gObL9gK7xBPZ1mT8z1Q2kimVIEl HQTjgz804v8Ry14R811o/Mycf34ragVGv8cEodqs2gkQD2ryCvFemXUjXV2EaRTkrm7K zzav/tuHxcdrgAMgIRuxPUBi2UGGVHrZuBWmiKriYYAsE4uHBCw0DldreRM+eBXFce0L d18w== 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 t125si4586749oie.167.2020.04.03.19.44.34; Fri, 03 Apr 2020 19:45:02 -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 S1726258AbgDDCmD (ORCPT + 99 others); Fri, 3 Apr 2020 22:42:03 -0400 Received: from mail-pj1-f68.google.com ([209.85.216.68]:40740 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbgDDCmC (ORCPT ); Fri, 3 Apr 2020 22:42:02 -0400 Received: by mail-pj1-f68.google.com with SMTP id kx8so3879057pjb.5; Fri, 03 Apr 2020 19:42:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jpCey6nXR24VHkMuvgvYPJ86L/KDUB6wcFgnfdZsomA=; b=ExIvO6VBdl976rPrdEe8k6NaEiGkek2YvlXKT5d5cDq71H2BwsPma7vaeNcOWtQ2xy KnD+Zb2IFzvUXykimNHOXWierFMonErafboTC3MDEnh3+MVHB3fgv8xsSOURH0gu8u4Q ctxDXii6iuzmDhwsSWtd2vGGWjiUSW0TrOlCLLIyAULXMc0t7ys+Koy1qlpNLekNJd7x vdCMLnPN7A5qTooQ6T67F7dUBVQVniranB2i8RBRNcFfE0G1qbcSIOAlI6tHMYdbUB9N 1QD3AADsXQuT4IefdG61VbZCuKibc8/HzqPW6QUQPbeZ+zjM9xHO9/MjEyCJCXi+svtX 4Xrw== X-Gm-Message-State: AGi0PuZDk4k5aGLf8fi42HG6DTGXTGqDM4XZWHcIAcXzZPZni2dHp4PG sly2Jw0RChIlYXtrYT6a9aERyGhB X-Received: by 2002:a17:90a:23ed:: with SMTP id g100mr12860973pje.93.1585968120823; Fri, 03 Apr 2020 19:42:00 -0700 (PDT) Received: from sultan-box.localdomain (static-198-54-129-52.cust.tzulo.com. [198.54.129.52]) by smtp.gmail.com with ESMTPSA id iq14sm6716639pjb.43.2020.04.03.19.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 19:41:59 -0700 (PDT) Date: Fri, 3 Apr 2020 19:41:56 -0700 From: Sultan Alsawaf To: stable@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Chris Wilson , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Matthew Auld , Tvrtko Ursulin , Mika Kuoppala , Lionel Landwerlin , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] drm/i915: Synchronize active and retire callbacks Message-ID: <20200404024156.GA10382@sultan-box.localdomain> References: <20200403042948.2533-1-sultan@kerneltoast.com> <20200403223528.2570-1-sultan@kerneltoast.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200403223528.2570-1-sultan@kerneltoast.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 03, 2020 at 03:35:15PM -0700, Sultan Alsawaf wrote: > + ref->retire(ref); > + mutex_unlock(&ref->callback_lock); Ugh, this patch is still wrong because the mutex unlock after ref->retire() is a use-after-free. Fun times... Sultan