Received: by 10.192.165.148 with SMTP id m20csp2479224imm; Sun, 22 Apr 2018 07:55:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Fo4YqCpUSVNP1B77grMY2urwP7KS1QziR9LOwseNHZopl6q4MNYRcZuMHt9lEN8mTYk6z X-Received: by 2002:a17:902:780d:: with SMTP id p13-v6mr17687977pll.281.1524408900577; Sun, 22 Apr 2018 07:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524408900; cv=none; d=google.com; s=arc-20160816; b=stL3zssTeAiLPYNKIHX5IALLYuWFZK2MW9cC+xwBEjV9FHCXAYz241BHQ03DkzbgKJ JuI4WOaOCT+XLKCVVIwTV8sFxBYyG6/Qqrvm2Usjh76vvrqnhPzjLfdwXTqjhA2M/tnB UqJg6daoAO53GgR/DMEClej6Jy2X7ddS1PzOL7Q96sdbOGkiMip4uTnPPPAe7ksAjaqD r3TuYnxitukRi/Mk+eGtVOiqhwYghGb7OU/DVkYaZ4z1bEdniwnTXVnlBVFW7EbI4jHj zoCHTa+xgV9JzXy4zDgZg44Jg3KOuFbC8YQPHwgREtjpm8i5SYge0EUrlPRGwVltfEBy z7JQ== 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=pchBYdmlN/OU/58Vd2kRogWXiNB2roeVaDqh7bCPgw0=; b=Md9AduRbR8ZfhnxtSeU23pg9isgmCBqhyzXvgk1DJV5RJzvzn5bmcybReB7ox1AHEO uqNKVHpWZl9Op0YnEsoj2n9vYe0+yWMNEVO1wOO2paiZJNF6tVXfTnEdDFHHkzLd6r4f dJ1JxJYynOwg59SEz+cmBI439IAeVCFJHBKmEKgwqaCkPZ1Ev3wEso4Yk02Qlpmy3auk c0IKI3HOaVclBbqxgC+v4S2zBPhDvh0B64POrVp31e9DdFRWiEYoRqmoipJdZr5tLnQa iyAewaTgvW+ZeJiSWwRqgDy2TFxN49hzUGwfCuUeVls0M+8osLPa46+rzz1ukgU68V/i ctLw== 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 g62si8119865pgc.693.2018.04.22.07.54.46; Sun, 22 Apr 2018 07:55:00 -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 S932106AbeDVOxp (ORCPT + 99 others); Sun, 22 Apr 2018 10:53:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56526 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757041AbeDVOOl (ORCPT ); Sun, 22 Apr 2018 10:14:41 -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 EFDC14A5; Sun, 22 Apr 2018 14:14:40 +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.9 87/95] hypfs_kill_super(): deal with failed allocations Date: Sun, 22 Apr 2018 15:53:56 +0200 Message-Id: <20180422135213.992770641@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135210.432103639@linuxfoundation.org> References: <20180422135210.432103639@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.9-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;