Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp944147imj; Thu, 7 Feb 2019 14:34:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IaS0IFr1hVrpESwQJ3qljeCHErowSfc95+nLyLx6OWS0DNP5Dj5nHjUtsOZ7I2JokJ8D5/i X-Received: by 2002:a63:ab0b:: with SMTP id p11mr17522528pgf.264.1549578872818; Thu, 07 Feb 2019 14:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549578872; cv=none; d=google.com; s=arc-20160816; b=k+dkPkFhBSVoAabrVjf+qZpIh8IIBPjK11GaNoUUImToYBCW6Xl0edl468J1hgnHy/ SGCU/gYK2RYmfUTz6W+K5ZLxVNDbBUrI4FmDCVtyWTfIJfIywGL2jq9Gjz7rEdvQaHhk T0PmUgHU8BAGCrKRPkqgI9RqL2kxsYjFzrG+4HH1swMVBqqLNPPao+CkG2IYt86jwIqu 37w5jlGgMs2/XLHDMfsyIqZjZLtqKWocZPpuHRwI5cZP19NR+aWWUD0PWP0cL0q34+75 uvXvjTEPIIubdFNmvdAN5vMGCNP393EY2H4heQQpSFevBMDSaDoF8O1G+46x3MMjksOE WUCg== 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=xprK3DO2dgIPaLc0GaBQ1orSs+O0lP1cFE8b0GoujoE=; b=x2BvJkqQeWm3jcTZapIHt6tl0CXTKuGmLAmtXigzw1aJBHVK4AVIIvfcihpo6tUHvK nx25p1JvSgQ/ne7lQoTndHr/HkGyW+T45ZocpOaVWAYAWosXvLV5X+dDoCtHdLvJGAHq GO175nPhb50+f+qh7yKXX/xh7k6eORrhyKLY1u/JjLxlF+kwljUxHlsHMELhZ4fv9DqI G/4BCUCdgLxnchNQe9V3vU1DS/YqnAPP6UqXv4Vo4SzGC890UZM/48qwMIyfPQuFOq04 ueyMTNR15BLA18Hm0qwX62XOgjecjvVHNYmldiOLhf6ZL03vbjvY81skT/uC/BelI25R l3FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JJyvUcvq; 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 f124si255757pfa.1.2019.02.07.14.34.16; Thu, 07 Feb 2019 14:34:32 -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=JJyvUcvq; 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 S1726821AbfBGWcR (ORCPT + 99 others); Thu, 7 Feb 2019 17:32:17 -0500 Received: from mail-ot1-f46.google.com ([209.85.210.46]:44680 "EHLO mail-ot1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfBGWcR (ORCPT ); Thu, 7 Feb 2019 17:32:17 -0500 Received: by mail-ot1-f46.google.com with SMTP id e24so2648394otp.11 for ; Thu, 07 Feb 2019 14:32:17 -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=xprK3DO2dgIPaLc0GaBQ1orSs+O0lP1cFE8b0GoujoE=; b=JJyvUcvqjIqq+EHUvbRAP7b8IECA3YDNfpg13OCTPcGoGkOqUcu11ouHiX540x/u6x 1UkI+ARtPKPdwBgfU1GtOv5Un0I9VRfF72Y81WlolHMEbCr7UgKXgb613Qo+S7MRDmRU x9AwfZgxQ4DYJm8hApx78/g9PHgzICD1Yv3BwZUSGm3LJ6C233apHVOXffkcyI00ZXHL 4msvrioLtIcQxnDhp3MeggKq54zhowPtgTbwdP9oRUiDiwpaamtv23/pE4HyuFHcqHyF OJpLuvZYJjkwhwScFQh3rk0wvonHlPTW2X/hS5OnEHJwOGMzQu6cTFW6bJ6uA4yrHVo/ FKmQ== 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=xprK3DO2dgIPaLc0GaBQ1orSs+O0lP1cFE8b0GoujoE=; b=L0KJQDi7cmPyZ5crIVdTMXOIHmxHfnKM22m+q9W2ozhGFe7yYjCQen7Xy3KRwdlX65 WfktHQMRAKUa7RznZ31Pl1G21Ntdi0xVvNw1obng41wisXgYgGvWgV6brMKA2D5mUQgF 3pLXeXuVs4a9GzHifOSmOYv1XIRfVM9OUIjNJPocEFyEPGxmdn5etvEIu0l50ByyNHao 1s841DEbFhKtJLo9EVn45bJCCkFzjlckGD1qZzNrsS/mWLSMFsWn2rtfKnqS4CzqRNgX j/R1TCuU2LqiizxECE+Y4NSHRQflPa/G66WvRnby5293h6S2UfV+8rtADGguQzEi4Pt4 JV0Q== X-Gm-Message-State: AHQUAuYlFnU4QJPWRaUOpQd+TWTQdKYSpu30sSlXA21FSl8BIYhGf+hf YVkqxzrZc5PNt21Zor/VqTLJaciueVXED0BYQOJGd4bt X-Received: by 2002:a9d:61c8:: with SMTP id h8mr9547289otk.279.1549578736731; Thu, 07 Feb 2019 14:32:16 -0800 (PST) MIME-Version: 1.0 References: <20190204220952.30761-1-TheSven73@googlemail.com> In-Reply-To: From: Sven Van Asbroeck Date: Thu, 7 Feb 2019 17:32:05 -0500 Message-ID: Subject: Re: [RFC v1 0/3] Address potential user-after-free on module unload To: Dmitry Torokhov Cc: 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 On Thu, Feb 7, 2019 at 5:21 PM Dmitry Torokhov wrote: > > > ./drivers//input/keyboard/matrix_keypad.c:512:1-18: missing clean-up > > of INIT_WORK/INIT_DELAYED_WORK initialized here > > This is not as simple. > PS If you change flush_work(&keypad->work.work); to flush_delayed_work(&keypad->work); then the Coccinelle script works correctly, and does not flag this driver.