Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5473578ybh; Wed, 7 Aug 2019 06:36:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY/rhWJiWd3JH6+gWO8UwIvonRCA3hgY6K3vqBqFKWfqJHTr2jEs2p/ytnkIH1EUiHxIZ1 X-Received: by 2002:a63:2807:: with SMTP id o7mr7898031pgo.131.1565184988572; Wed, 07 Aug 2019 06:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565184988; cv=none; d=google.com; s=arc-20160816; b=pBbZikMXGOLwxoGsYaqMbvqPtzbQ7JjtdCDs0Zp9Lc/a3Y7mjOoGA2J/x6lnKzzJPd pP6PLIFOpWDsX0EkCWzEdsNbOWrETey11Sy57BeV3Aaywi2g32CUcI+qbJR2nsnwMNyQ MCYLC/NvhHOV1kKyYqT1oVNZWuPpLjEQ8Hbc15jA8jrohCXRT9hxC47dO6ZUYgn+Fd6x yu4kRLf3vBeJd1wXJOSBWT8GiR0VNr0jQxJdkFXL7Ks6Ds6ortPvcCjmN88zFZe2W/m+ XjxKeCnjcn85wowk81mfYwtRDlNL15SqBvFSpgQPY1TG1HukUSrVWWJlITMNn4m8LfDv eRzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=A4Sq4ocEVYTK0XD+qtBWIKZxIW66i4fTHcbBJmHYjU4=; b=XkqN82txrTgjr3E4tUGXfUQmYGOeVUPQv/J1f7CuXKiXyElvmbEE4pt+XLhMDd7Qk9 /dtyxWVboxmFXo+EbDnqRNANrWk5FFKTKM1BrSOZfr5gpj06N0qKgNVkRtADiBwbdv2A p5bfxxnOfyLImZfzMI03xaxbxTCvP1dX561vA9gCyAjzeQWPqTalT7bSeDDRwebtE8/d oXViCBwZPkIqKMa4Z1QwK/3fks2Z4Y8lRqI9EeBL/t25Bz2g8IED+cVNASK/bN7xcsfX JPUqIN8Yu2iybkCv4T3sMqXP3WNA1D+OVzolMTzngi7oRrDMKnRICpWLt1zzrNdKCWId L2+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DxQJfMqe; 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 t6si12259154pgk.193.2019.08.07.06.36.12; Wed, 07 Aug 2019 06:36:28 -0700 (PDT) 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=DxQJfMqe; 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 S2388546AbfHGNdm (ORCPT + 99 others); Wed, 7 Aug 2019 09:33:42 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:35546 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388309AbfHGNdk (ORCPT ); Wed, 7 Aug 2019 09:33:40 -0400 Received: by mail-qt1-f194.google.com with SMTP id d23so88336715qto.2; Wed, 07 Aug 2019 06:33:39 -0700 (PDT) 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:content-transfer-encoding; bh=A4Sq4ocEVYTK0XD+qtBWIKZxIW66i4fTHcbBJmHYjU4=; b=DxQJfMqenZVrlyG1M+L7UTpqQY2NMpc4bz5XJnKAqHVzsbHrB9hnT3fk/I9lLddhlU Los92TqXW43XQhNt6Rg3RiWJ6Iu24iM/I39Mphoo5I+M2ZltuJHUvRTZOYJmcVXPyCSk uy6wSB4T5YOP8QoIjqMfioNHn2O1k4UeRjEYUnltdsxogP2CwNC/Pv7v6DBH+w6Tvg8B lpss86hmVmUpGXPysro5tuxtR3EWjlwv2nE1V2tw8I1FknED3hbsTmU9T0RqP36rZYw7 FD+LUuLx18VCrPA58pTrzt2fFjV9IQTD8PiB+zaZvZeuUttIw9ed7I90lsI5XcrOIDDI 9Tiw== 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:content-transfer-encoding; bh=A4Sq4ocEVYTK0XD+qtBWIKZxIW66i4fTHcbBJmHYjU4=; b=liOcY7S6i1g9YnbdtCaQXuzEmxx8rATS90noykBHBMbn72BWHt9g5wvr2oSi+kF2nV VVC8Q7Mt77dFqBZ0NpiQI1Yp2eabHG1FkEkbsgWDZNrMMB0yFr6okyZtTikipC5SkeGe 2ccAQTYEIhwbvBwpIvXIL6E15vl+B35yR3vKmUp+0KyjS2gF/EOYeVhntr1suo/lkeIH jONYvCggW0SVWdCoPbgdEzLTF3DvQw6fSICfzZpHsraFhFSgiPBWJV4UWmlKAq3qFBS1 RA0tb5PJw2YtE6DDdneinccFeleoU6uUtUxKAgEvwGPiFu9sYE8JZAk3sR1h9IBuYRXS FvxA== X-Gm-Message-State: APjAAAW/rlI6EuHUy/7/X8u2VQKZ6I4f0T7t/RKbCOj2l3A1U3IsZfMJ Bz9ap6p4GXiueI418YH/ixd25xGueOQGyWih8pw= X-Received: by 2002:ac8:5048:: with SMTP id h8mr8066056qtm.190.1565184819230; Wed, 07 Aug 2019 06:33:39 -0700 (PDT) MIME-Version: 1.0 References: <20190719135352.GF4240@sasha-vm> <20190807114649.fjfaj4oytcxaua7o@linutronix.de> In-Reply-To: From: Austin Kim Date: Wed, 7 Aug 2019 22:33:31 +0900 Message-ID: Subject: Re: NULL ptr deref in wq_worker_sleeping on 4.19 To: Thomas Gleixner Cc: Sebastian Andrzej Siewior , Sasha Levin , peterz@infradead.org, mingo@kernel.org, tj@kernel.org, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org, =?UTF-8?B?I+yEnO2YleynhA==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Is it possible for you to generate kernel patch only with **kernel log** for 'use-after-free' case? With kernel log, we only have limited information, so it is hard to debug 'use-after-free' case with this signature. For this matter, kernel should be compiled with below config. CONFIG_SLUB_DEBUG=3Dy CONFIG_SLUB_DEBUG_ON=3Dy 2019=EB=85=84 8=EC=9B=94 7=EC=9D=BC (=EC=88=98) =EC=98=A4=ED=9B=84 9:56, Th= omas Gleixner =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Wed, 7 Aug 2019, Austin Kim wrote: > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > A: No. > Q: Should I include quotations after my reply? > > http://daringfireball.net/2007/07/on_top > > > I wonder what kinds of workqueue is used in case of this panic. > > > > If system workqueue(system_wq) is used for this case, it would be a > > help to replace it with high priority workqueue(system_highpri_wq). If > > panic disappers with high priority workqueue(system_highpri_wq), we > > would think about another scenario. > > How would that help? As Sebastian explained, something overwrote memory o= r > it is a Use After Free. How would a high priority workqueue 'fix' that? > > You need to find the root cause, which is either memory corruption or a u= se > after free. > > Thanks, > > tglx