Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp122010imj; Thu, 14 Feb 2019 16:46:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IZvwp6xeNntrTydzew5G3I1LiMdclllbAGPjMD8PZ0kuKKHZLblPSgSto3N5n//w5Ch7Y/D X-Received: by 2002:a62:76d4:: with SMTP id r203mr7089351pfc.15.1550191601427; Thu, 14 Feb 2019 16:46:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550191601; cv=none; d=google.com; s=arc-20160816; b=0FTnzbIqYt+nJfIZPdYdFq+LMkknroVkf0DQCqMTgH+RqnJ25LpXDYN1aVbl9IMUGl w6RX3RIhudKBApRADY/DdOZiMqNHBfx0fzrqbHq4GERH+pfGzbrZf91n2fFJDbYAH6ba o4BrGmTEd+hMD2QQ6jbjHSWLyMc44Rt3HjqjzA2aE1USGAKJNNF+8NWF8YxKjqtKMR9h a3DV2D/rMGvGmCJduwZDdQi1o5wdFRwAQcWXjyb9sgEak6ND+wp07R8Ux03nowQfkTch K2Q/7TBbIXwuN+RyMgQAnK9NKjfbWTCpnttl4dAFdyCQU+Wb/uLfqapvORxUNrLeqC6C xF4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3nqvRe+zrm5fIjF/fWIXWwavfVKCfBlXl7VecBMIHoA=; b=hYHKhhepAFW/1iES6cr2nEJyD/xiMqHZx853MDA7koIMF5YD5NrADZiu+khSko9mno OZDKxfWH0R4yMnyjm2nAl1rhC8jYKYghL000qLs61Q+len7uIYOzuYOxYcI/M0Pyzf7R g31GED+yHx2WjQI4CXSnS8gQLH+0e6cZBTC1zLnrDjW8BRFXjFm4p2a5bg1ojrto295f 0skw8NEWOADYcJ6T9BJmjdZD/fBvxwusBhz2Tw8Wpc7S6f+s+670k1O5EdisG5YBonhU Hd7iLojbwdna1vZfHrhMCTkjVQO6+VTu5NO2lnHT1NlqCuQh7xy2LGoi+Z2oL8AVnrZx b5/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YP8Y0WMB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 98si3937362pla.320.2019.02.14.16.46.25; Thu, 14 Feb 2019 16:46:41 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YP8Y0WMB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502039AbfBNPXY (ORCPT + 99 others); Thu, 14 Feb 2019 10:23:24 -0500 Received: from mail-ot1-f45.google.com ([209.85.210.45]:33692 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404698AbfBNPXY (ORCPT ); Thu, 14 Feb 2019 10:23:24 -0500 Received: by mail-ot1-f45.google.com with SMTP id i20so11134799otl.0 for ; Thu, 14 Feb 2019 07:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3nqvRe+zrm5fIjF/fWIXWwavfVKCfBlXl7VecBMIHoA=; b=YP8Y0WMBbl5Ir8rnHiP08cmDcKigZ+OljEX/hfK3ZeHLj8GZ/jrXlgtSZsarIPJVY2 3POT4hyAyEvOALTyghKWZjubbh+VbOsfXkJewcbECxBvHqHi2FVAZS1htSJJWo0M2QDv gAoQ5gw0lHzxSvjNZX2RlfV5Qk5l0dTU2B1n80dpeRDGWzTTwnDQo3ayJK1sbyvtwYTX kca2wcFm559KUxRN2f4+Ufpzsm/s65pz23rP+Pobljw5RIr7vpQDN3yO6HCr+1QqFoRh kQsuKlzzJyIMS8EV0Wq1v/UtaKfku5GTPRa+SAR8vz3xNuidJWy7/E9pgsSlgjZtYYpU 7fVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3nqvRe+zrm5fIjF/fWIXWwavfVKCfBlXl7VecBMIHoA=; b=SRap/6nwjTm41i8L6XjZn+8XhpcK6+UaM6msDwdIZdNEz61Acylp7QmQmNEEzhm9ds E4ZUKxdgRnTu9ikBg1aU1csIgPoUKuJ3uZWGf4rVpCr6I5h3+9muzo01asa/cGxHYjE/ MvqqZLj/VZWuG7ba8dev2BW/4vRMT4X6QN+sl/jm6Spn4XeSULVP4RESLqleT2hpd5mu /sIB7Ubv9yl6G1MsjHgMx3f/ltFc7XO5hB16f6qXImvObZ5vybqMvC54f3kgl4mxG2wN y42dNYZTD+DARPg6+wP1rYGvkKnVmHWx4Np5C/wvJx4/rlNxLTolK+RuKJr/oB7PtsGp h61A== X-Gm-Message-State: AHQUAuZkutjmm/nedGN7Uz9aBKAvPewQIsKvSNGVO8EUr9ERJVG2ajhR fs9MOgoFCLhJL01v1ujrDXzgzQJ9Mk6wtCHCdjWetA== X-Received: by 2002:aca:55c1:: with SMTP id j184mr2574266oib.169.1550157803437; Thu, 14 Feb 2019 07:23:23 -0800 (PST) MIME-Version: 1.0 References: <20190204220952.30761-1-TheSven73@googlemail.com> In-Reply-To: From: Sven Van Asbroeck Date: Thu, 14 Feb 2019 10:23:12 -0500 Message-ID: Subject: Re: [RFC v1 0/3] Address potential user-after-free on module unload To: Miguel Ojeda Cc: Dmitry Torokhov , Kees Cook , Tejun Heo , Lai Jiangshan , LKML , Sebastian Reichel , Greg KH 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 Hi Miguel, On Wed, Feb 13, 2019 at 8:11 PM Miguel Ojeda wrote: > > Indeed! Note that I didn't mean to say they are trivial issues or that > the solution is simply to replace cancel_delayed_work() with the > _sync() version in all cases -- only that it might be a good idea to > suggest its existence (instead of only suggesting devm_, because in > cases like drivers/auxdisplay/ht16k33.c it may be the simplest fix). > I will try to get your suggestion in, as I move forward with this Coccinelle script. Cheers, Sven