Received: by 10.192.165.148 with SMTP id m20csp2466063imm; Sun, 22 Apr 2018 07:37:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx48AF5YeFEUhI5pnxOm/B40jsVa0SUHTFpi5Lss7SAfLfxe905FdAuqOe4RuUYSjtfVFawOa X-Received: by 2002:a17:902:68c5:: with SMTP id x5-v6mr17831024plm.194.1524407847707; Sun, 22 Apr 2018 07:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524407847; cv=none; d=google.com; s=arc-20160816; b=K+LYjDE+nwp7vE5M9YGBH4AylVTVFhKUSd2MPf/TbK7Jzubikrt2/XiwoVEq9Otk0w WmT8d8JbcGP5KdKtZVSmMslbnRLIr7Vyt7zn8idFCFvb0X2thWy8g3sKFBx+UUvej0ez Abe/YI0PcZ0mNkkCPx+YhPezOHuoHN0uKgQfymahnsphPgj+Ad0AUNXhvZjmxYdimm64 Q3jNzhb0eHosTADB9SAyTHqpf0Dllfn5tSjWw4YFpx0PYHkMmFdllLeosnNxoMmrjMh9 rWDkqhJAn7ZGR34yLbQzq5XExBP/oOR2Fb8wgRzBlfsyrvGxSlCHb8Y7h/Tu8n9TJLOF Zjew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Y0EUWVkC2+vewSGBSNybENDg7fBEQLLSwCsL1c07giI=; b=tVoOVu30kU5WYgLYdkAJtenKs6p9vPyHz0v4uqNEyW0hECozJGM/zMi1YbIOErJD7c RF7UJQyK1hnX74AYcx7zCpKnrJBqC+fZ5oiqhnK+HWE2lWmb9uD00dWf7BJ6SiC/WGQX zd5ns98UDWEfpfbx/No4mhzrx44kTSSNiA5zvfcQ75MDbM0eEEapT952vQ8ESGHrAx5M uQIlJfNfjki92AwM0j0HApqNpcoFJfbINDMdxI0m5g6aYqjh+ztspkg4bhUM48qwQJV1 aEOIhubpaEivTuTK7lzTtvwigtFjmqtHdqv9496ChHOH5B6ZRFdO3y8Rv9gZzVahxA/J 5ABw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24-v6si10219625plo.113.2018.04.22.07.37.13; Sun, 22 Apr 2018 07:37:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756769AbeDVOgI (ORCPT + 99 others); Sun, 22 Apr 2018 10:36:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59316 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932517AbeDVOTG (ORCPT ); Sun, 22 Apr 2018 10:19:06 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A280FD0A; Sun, 22 Apr 2018 14:19:05 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Viro Subject: [PATCH 4.4 89/97] hypfs_kill_super(): deal with failed allocations Date: Sun, 22 Apr 2018 15:54:07 +0200 Message-Id: <20180422135310.057928574@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135304.577223025@linuxfoundation.org> References: <20180422135304.577223025@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Al Viro commit a24cd490739586a7d2da3549a1844e1d7c4f4fc4 upstream. hypfs_fill_super() might fail to allocate sbi; hypfs_kill_super() should not oops on that. Cc: stable@vger.kernel.org Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- arch/s390/hypfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c @@ -318,7 +318,7 @@ static void hypfs_kill_super(struct supe if (sb->s_root) hypfs_delete_tree(sb->s_root); - if (sb_info->update_file) + if (sb_info && sb_info->update_file) hypfs_remove(sb_info->update_file); kfree(sb->s_fs_info); sb->s_fs_info = NULL;