From patchwork Wed Apr 22 09:53:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 1274888 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 496bNT2mmsz9sSJ; Wed, 22 Apr 2020 19:53:28 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jRC4J-0004dj-Pu; Wed, 22 Apr 2020 09:53:23 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jRC4I-0004db-UO for kernel-team@lists.ubuntu.com; Wed, 22 Apr 2020 09:53:22 +0000 Received: from 61-220-137-37.hinet-ip.hinet.net ([61.220.137.37] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jRC4I-0005Zv-6D for kernel-team@lists.ubuntu.com; Wed, 22 Apr 2020 09:53:22 +0000 From: Kai-Heng Feng To: kernel-team@lists.ubuntu.com Subject: [SRU] [E] [PATCH 0/1] Fix potential null pointer dereference on kernfs Date: Wed, 22 Apr 2020 17:53:18 +0800 Message-Id: <20200422095319.6181-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1874221 [Impact] We are seeing a null kernel dereference on kernfs during system sleep stress. [Fix] Make sure kernfs node is not null before reaching to root. [Test] Run sleep stress. Not seeing the issue after the fix is applied. [Regression Potential] Low. Fix limits to kernfs, also the it has been in upstream kernel for quite a while. Peng Wang (1): kernfs: fix potential null pointer dereference fs/kernfs/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)