From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F03F3C64E7B for ; Tue, 1 Dec 2020 14:51:29 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4A67D2076C for ; Tue, 1 Dec 2020 14:51:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Od7Oq8i5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4A67D2076C Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 434498D0006; Tue, 1 Dec 2020 09:51:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3E5A08D0001; Tue, 1 Dec 2020 09:51:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3229B8D0006; Tue, 1 Dec 2020 09:51:28 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0169.hostedemail.com [216.40.44.169]) by kanga.kvack.org (Postfix) with ESMTP id 1E2558D0001 for ; Tue, 1 Dec 2020 09:51:28 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B262B10AE87 for ; Tue, 1 Dec 2020 14:51:27 +0000 (UTC) X-FDA: 77545001814.01.sense79_610dcfd273ab Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id 9F5331004D45B for ; Tue, 1 Dec 2020 14:51:27 +0000 (UTC) X-HE-Tag: sense79_610dcfd273ab X-Filterd-Recvd-Size: 4820 Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by imf33.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Dec 2020 14:51:26 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id i199so1454937qke.5 for ; Tue, 01 Dec 2020 06:51:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=55sCzQdwTnWWY4frFoH/T/BSKgGKnPew/6aq6eljiTo=; b=Od7Oq8i5EKOt7lyAPLohe/T+qZWO41dmeqZhqZpqtDgfvunVjdg9tf32XLjJenj8L+ JGidx639XPF8hqU42hKavQY/o0ww8LWaxLXeStBRoE5igoG8X9kxoORory35BiCYr0E9 HzsGUGiqSTL1ts87Bl3ZH1DxxvuqoMl1tWsJ7EuEzbUtwafzKk0fS+JCI3C9x5JMkgFl LcOoRC5QQT2Vi2QFULdi/0FU32TizK504jXS8wi2Dtd7rZI3SGHSEPXMul3KJgenD9SV q8gQnWlGGaRf4lazzxswYs7WeQYK50tXi0qt5aobSwa6iH5VsOgJtcHrVMLessAf+PNy wf6Q== 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=55sCzQdwTnWWY4frFoH/T/BSKgGKnPew/6aq6eljiTo=; b=Nv34A4NVgQo9LT1s/vFdG2inTr3FzfctJlmNoR59oKB1zby/E2PgAQPcwEKHF7hkUH S+KLsr2Azq+dN27yz3LqqI6uQkM4bLAbN7hapVOiazrz0AyNpDP9ReVmYRUww7lpEp/g q/YP1kZHvT5mGMortCRAk81F8PA/rKxDCPReITRSggwQHyB2xZqAGmnxuqT26dfQDF7S Iw/ek1V3v20chUNNSVyiEP65UMoCUw5cnuyMeCkUf71qfFgY4jcl1QCLMbdqvxrhKuqG 4zxLwyXHfGz/0GvJUklRSK6r33GiHd5B5k8HdxEmi/mvRX2PACPijPEkSh/9/vrkz6TU tQLw== X-Gm-Message-State: AOAM530Kku23S2g11rdA/1pkYzeOtwp0fQBMsLtPba5gK3KpzkgtUdHW N+oinkOhShfS55YFuDtT07K337MWyr73sK+DEDDPnQ== X-Google-Smtp-Source: ABdhPJzpKx5kjzDF60IrrSHfJjD1sCFpkAQsI2Hw2vF4+LKJGRJnyv7Y0PWJYKsCVbdIIj/02E5TWg3mKpDOj/VXPo4= X-Received: by 2002:a37:7b44:: with SMTP id w65mr3270634qkc.350.1606834285972; Tue, 01 Dec 2020 06:51:25 -0800 (PST) MIME-Version: 1.0 References: <20200924040152.30851-1-walter-zh.wu@mediatek.com> <87h7rfi8pn.fsf@nanos.tec.linutronix.de> <871rg9hawf.fsf@nanos.tec.linutronix.de> In-Reply-To: <871rg9hawf.fsf@nanos.tec.linutronix.de> From: Dmitry Vyukov Date: Tue, 1 Dec 2020 15:51:14 +0100 Message-ID: Subject: Re: [PATCH v4 0/6] kasan: add workqueue and timer stack for generic KASAN To: Thomas Gleixner Cc: Walter Wu , Andrew Morton , John Stultz , Stephen Boyd , Tejun Heo , Lai Jiangshan , Marco Elver , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Matthias Brugger , kasan-dev , Linux-MM , LKML , Linux ARM , wsd_upstream , linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Dec 1, 2020 at 3:13 PM Thomas Gleixner wrote: > >> > Syzbot reports many UAF issues for workqueue or timer, see [1] and [2]. > >> > In some of these access/allocation happened in process_one_work(), > >> > we see the free stack is useless in KASAN report, it doesn't help > >> > programmers to solve UAF on workqueue. The same may stand for times. > >> > > >> > This patchset improves KASAN reports by making them to have workqueue > >> > queueing stack and timer stack information. It is useful for programmers > >> > to solve use-after-free or double-free memory issue. > >> > > >> > Generic KASAN also records the last two workqueue and timer stacks and > >> > prints them in KASAN report. It is only suitable for generic KASAN. > > > > Walter, did you mail v5? > > Checking statuses of KASAN issues and this seems to be not in linux-next. > > > >> > [1]https://groups.google.com/g/syzkaller-bugs/search?q=%22use-after-free%22+process_one_work > >> > [2]https://groups.google.com/g/syzkaller-bugs/search?q=%22use-after-free%22%20expire_timers > >> > >> How are these links useful for people who do not have a gurgle account? > > > > This is a public mailing list archive, so effectively the same way as > > lore links ;) > > Just that it asked me to log in last time. That's why I wrote the > above. Today it does not, odd. Some random permissions settings changes were observed before, so I can believe that.