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 DF3ADC64E7A for ; Tue, 1 Dec 2020 08:00:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2D2362087D for ; Tue, 1 Dec 2020 08:00:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wJyxFNus" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D2362087D 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 406F86B0068; Tue, 1 Dec 2020 03:00:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3B6526B006C; Tue, 1 Dec 2020 03:00:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 27E3A8D0001; Tue, 1 Dec 2020 03:00:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0133.hostedemail.com [216.40.44.133]) by kanga.kvack.org (Postfix) with ESMTP id 1261B6B0068 for ; Tue, 1 Dec 2020 03:00:13 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C98E78249980 for ; Tue, 1 Dec 2020 08:00:12 +0000 (UTC) X-FDA: 77543965464.21.verse17_2301755273a8 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id A7BE7180442F7 for ; Tue, 1 Dec 2020 08:00:12 +0000 (UTC) X-HE-Tag: verse17_2301755273a8 X-Filterd-Recvd-Size: 4492 Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by imf46.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Dec 2020 08:00:12 +0000 (UTC) Received: by mail-qk1-f195.google.com with SMTP id q22so509333qkq.6 for ; Tue, 01 Dec 2020 00:00:11 -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=wB450hvW9e7AfsLXXAZocstx55cLQvcfr6fR43xbcBE=; b=wJyxFNusdsDuwyAi69WN0ezTnUmElXIC+bVx2NKOZEzaA8KH5HMYRqHg18PLQ0eGWk kvWswi+j5rfOaoQwyLdZa3sBAJGk3mh+pORozELpaPkKZJNu+0+PJgLXbgr4dACsOCzx c8mOQmBc8zpik3P2XGadEWG10Syl0Cg6qi/YDuAAw29NYGbY8jpNw/lXH7HEx4yZPYKg cs7ZlM5JEz2qTZel7RGDRxnrGxMtFyLDr50t3lwDZWiLt37dqlJ+AjDc5feTUsL3M9rq IUY9087nM8OUj/xNO4f3S+6cGEhjQIpS67xHKa5BnzjWzGbspo6TfrENqDL18gUmdfmQ LaHQ== 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=wB450hvW9e7AfsLXXAZocstx55cLQvcfr6fR43xbcBE=; b=eweLkNMjg/DGTVkblKdq3UHRzcyOIbEnSdcOuloyl6qD0EWIOlr7yDSFDAUyOXlqRj 9/y4ce/q6FuhkZ1KsMlZDhOAvTXKhrjw+VwSl71VDihbiIHAyoB/V+IlXso4Z4fyka3q AdsCjbL5wWK4VcZzgn3M+sI3aHJZbCE5UyqTZ1ouJEuqxc4xSS4HjEQfGjd24BLUcUSW 6tB3sf26Q5OVssfqxx7qWape9O3XHSYIHYMguJ1nt825f5bgD34T6N0klvUAeCTCqtrK TfDmIZH6LPSUgFWGh4QWQk2QeLjsykr2g+imqjSX2AvL8qods+R2e0mU8nP37PkJlxM7 iDsw== X-Gm-Message-State: AOAM531FQ0b984sb2H6p3BjxBajw3cBbgfziC0kljCdOVpYlmrbRqx3G OxCHn+o+AoFFjDpmRgKIPKkmm4lLLM3/dwaXJfs+sA== X-Google-Smtp-Source: ABdhPJwXCE/d50QhUxDFlhDrKxp4+IR+1osE3SkqrUY+gAQJxO0ZPDV+UCHZE+6eX+bpLCu4GF1xWLqDqUEdyUloNII= X-Received: by 2002:a37:7b44:: with SMTP id w65mr1641518qkc.350.1606809611184; Tue, 01 Dec 2020 00:00:11 -0800 (PST) MIME-Version: 1.0 References: <20200924040152.30851-1-walter-zh.wu@mediatek.com> <87h7rfi8pn.fsf@nanos.tec.linutronix.de> In-Reply-To: <87h7rfi8pn.fsf@nanos.tec.linutronix.de> From: Dmitry Vyukov Date: Tue, 1 Dec 2020 08:59:59 +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 Wed, Sep 30, 2020 at 5:29 PM Thomas Gleixner wrote: > > On Thu, Sep 24 2020 at 12:01, Walter Wu 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 ;)