Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1778750imj; Sun, 10 Feb 2019 10:05:38 -0800 (PST) X-Google-Smtp-Source: AHgI3Iabe+7xHFI+zMrvO/6QknfHTCweK5NAXADWcRqd+EYoPA2hkQcTKhKbk+gp3ReirVgi/RcL X-Received: by 2002:a63:d842:: with SMTP id k2mr24723043pgj.8.1549821938216; Sun, 10 Feb 2019 10:05:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549821938; cv=none; d=google.com; s=arc-20160816; b=R3FdbKsNptYNTWAE+2RtmGGQ4BdqNjYZNKcoxCdLj5MtGI8YMFwA7+K7Eq25aMtIK5 esP4MpHNwBimxYuEVrHRTv3GaLCUHbT99WbnxTg59z2VD/bZt/Uwx3MuHh7M7zXPrQ3Q bsfBPZpZTTktR4tCmaQr+vow5yjZgL0zrxwRxOgJH7cCSYR60uyebg8M5+MuvAVmERSM rBXuGeSyHQXbZylrYiI93AvblqF6EUu7gjI5I7lYCSGJVYtbjNFFtRsGiyR/4GMuc0YE u9XHXwjrYayo40A2feV8lLYu1p1e1EWQtLabEfdQZjQY/Tp/oz6ebhpTz109O/4UxEFa 7I0Q== 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=aSxa0UyDrA9QxYPwTpkiPvl43IP9aW2jI6LsaSxwJ3o=; b=l0ALUE6VO1/za3KvV6iEXQLmf0mfd96t7PUWsHMwWLNkj/Fs/M52ALbfqKF1RPmt4g tvZpT2WoF5cksac+6ehBhPkxTPmAHxfFGGDxWpT3d7/tb5wdSGvbFGKlGw10PTGubrwH 23PAHH0Be1nYyPUYcgEKo5DgYGu22kQOUtGvJYZFj+CfQgBbLAeuG/1JaGjrEYg9c2OR YHdLF/8aQnfeiqkrpZ1pqBoA0Ue6+z4fHWm9pfstF2La3u2PL4kZzN3b7Iju6hdBDvjy FSxv2zHLUsQFvjSkRiqP2CuOReZSsSXj8WRMyiNli/Rv6Z05IUIvBuAANk7aJ/7jEg54 SPdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oU8epz+t; 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 y5si7650582pgv.24.2019.02.10.10.05.19; Sun, 10 Feb 2019 10:05:38 -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=oU8epz+t; 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 S1726035AbfBJSFQ (ORCPT + 99 others); Sun, 10 Feb 2019 13:05:16 -0500 Received: from mail-ot1-f49.google.com ([209.85.210.49]:33474 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfBJSFP (ORCPT ); Sun, 10 Feb 2019 13:05:15 -0500 Received: by mail-ot1-f49.google.com with SMTP id i20so14003915otl.0 for ; Sun, 10 Feb 2019 10:05:15 -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=aSxa0UyDrA9QxYPwTpkiPvl43IP9aW2jI6LsaSxwJ3o=; b=oU8epz+tkKJ9q23WKBgkGxHBVkUNYqmIopLX8psRNMDDfgeqndTFb1mVsGKbCV9+Mh XrBwsuZwBuOeUqsKijvtnA7FwCa8Gl6YT/KtB4N0ltowvo9iKc3k6X3kXupJHYS3bIxO 9raLythQIlk2owf1eoqZFxA7Q3TgfKlHiE9LIBZGJpFOUu6NTEkv3Ey2SuWHHNzncLSt QbC+WJqitb89+OcbgTN+M8Qlca4VuijGMwAkZrT2oWsBTTAUcCVwx2v8iECOcXJ/nMLG KtDx0VGGkNhXdP3+wvGvwn2zjDUW77Dc+ob4czu2Anc8rcU4WQMJRjh8O4uyS0PD4QON CdPw== 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=aSxa0UyDrA9QxYPwTpkiPvl43IP9aW2jI6LsaSxwJ3o=; b=UdnK1JX1TWNWlzou6sMKA08dmAz4eSw3LH+Rh2pB5aM7GtZXV1K8gee6bRCLiq4Rc1 jbBcs+T/3pmUh4teEq6nogv36zmk8OpQktFhXRAg777z6FUEnJlJ+HhQlFiBmUwNgrln 4ava5mzIuEVRiPSo5Plci3SaDyz174xKROiwcmxEdVyfbFlLGChBhvNPEUAKk1soCQw/ UI0xM1SNAADuNAIc5xm463Vtmh1JWaOSJiRUX5ECNTnElA8Hk+Aqwz2tsLblXosMlAd1 CDWzj38tqUnZiVyy4ceaE0BROKg8mThEf1rRfTFgDpb/C1J0fRNDtKHgEuIDSzNYMQiq c7mQ== X-Gm-Message-State: AHQUAuY4axMhZ3zp9Ep7i/lB9laOE4y2Kqj9iiwQGWDqBhlRXaOtq5td cPUm/2bURZSW7IU/5MRxmJpL59bgOy8OHseEG9U= X-Received: by 2002:a9d:61c8:: with SMTP id h8mr22682791otk.279.1549821915033; Sun, 10 Feb 2019 10:05:15 -0800 (PST) MIME-Version: 1.0 References: <20190204220952.30761-1-TheSven73@googlemail.com> In-Reply-To: From: Sven Van Asbroeck Date: Sun, 10 Feb 2019 13:05:04 -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 Thu, Feb 7, 2019 at 11:30 PM Miguel Ojeda wrote: > > Similarly, in drivers/auxdisplay/ht16k33.c, the cancel_delayed_work() > is there, instead of cancel_delayed_work_sync(). Having the script > suggest this change would be useful, too (i.e. instead of the devm_ > change, assuming the cancel_delayed_work() is already there). > For relatively straightforward problems, I'd say yes. However, the problems flagged by this script are not trivial at all. In many cases, the missing _sync is just a symptom of general synchronization issues on disconnect(), and simply adding it will not fix the problem. Sometimes, it's just a false positive.