Received: by 10.192.165.148 with SMTP id m20csp2490095imm; Sun, 22 Apr 2018 08:06:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx49RcixqwJpNzomKp7Rzw7VCWc4sQyuY2exKyzIrsOLSyNiRbpwpE1Pn+t2Xq/dqXdwtXmgd X-Received: by 2002:a17:902:8505:: with SMTP id bj5-v6mr3996190plb.211.1524409583611; Sun, 22 Apr 2018 08:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524409583; cv=none; d=google.com; s=arc-20160816; b=ori02p/jf/4q2qdilwLgE0kygv9WuTWemkHW5riwhKQfxMfe3/DumJ170Ze7hddrnu 5CvRHkaQ4w1TGgmhXLNy9hLRWRSZCXjpmmKugWb80Z4+XjLoh8vOYpW7aKzDnPknyq4d 09CcALL8sBxVAZdpQhZOK18ju2X+xYLEqTR18DIrjaCzM3AFHoemvbhTddDz5Y+aWuZ7 TSmAaBVd4GOdT6wEosap/RHHMbRaY0aRF1sA1PXgYnBNyDh3wdfbq3UQfje9aQmTyvXo 9I5rqYSGUvA7MsmYe3cA0H5FL4oUgJ9pzjq71Kn4aP5mH1uVBo2DVGN0kVbcuNXryXmC 4WyA== 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=/6JvijqJ6hqlhieSfer6+0WzOQCAJcVTMdGX7crE7so=; b=jchaJjqV6aAKq3+P0PgXU4lNsi4Yx1T0BVgv7C+9P6oV3wsROyMWBshK/usBvdvYAa aVq20lFH8hkIifpBn8+wriOdMll1O1UxBpWCJoxuPuqjyUaWO/lEdjl2OJHcC7zXI9Fj lxsUmUwdu4TmogIDrcq59Xod8sPFab2jHByNwSXzIVWGPoNZ9ko56iKuNGrAynwi2BbV ympXwJYuzSw9E6n31irIPscGNS6WHuiQ3sHpgqsA4q1R+wathV+roBOnVRiDKetVKQd0 Es/qLTBgH6VsF2KrpYRjzniuVCbv33CBlAeI4Odsoh6rvigLEA7j8TPL3X/v6B1qvwMY /qLg== 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 u36si2611775pgn.213.2018.04.22.08.06.09; Sun, 22 Apr 2018 08:06:23 -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 S1754767AbeDVPFG (ORCPT + 99 others); Sun, 22 Apr 2018 11:05:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54634 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756331AbeDVOLv (ORCPT ); Sun, 22 Apr 2018 10:11:51 -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 79D13CB7; Sun, 22 Apr 2018 14:11:50 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , syzbot+6bd77b88c1977c03f584@syzkaller.appspotmail.com, Jeff Mahoney , Alexander Viro , Jan Kara , Andrew Morton , Linus Torvalds Subject: [PATCH 4.9 06/95] fs/reiserfs/journal.c: add missing resierfs_warning() arg Date: Sun, 22 Apr 2018 15:52:35 +0200 Message-Id: <20180422135210.692204982@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: Andrew Morton commit 9ad553abe66f8be3f4755e9fa0a6ba137ce76341 upstream. One use of the reiserfs_warning() macro in journal_init_dev() is missing a parameter, causing the following warning: REISERFS warning (device loop0): journal_init_dev: Cannot open '%s': %i journal_init_dev: This also causes a WARN_ONCE() warning in the vsprintf code, and then a panic if panic_on_warn is set. Please remove unsupported %/ in format string WARNING: CPU: 1 PID: 4480 at lib/vsprintf.c:2138 format_decode+0x77f/0x830 lib/vsprintf.c:2138 Kernel panic - not syncing: panic_on_warn set ... Just add another string argument to the macro invocation. Addresses https://syzkaller.appspot.com/bug?id=0627d4551fdc39bf1ef5d82cd9eef587047f7718 Link: http://lkml.kernel.org/r/d678ebe1-6f54-8090-df4c-b9affad62293@infradead.org Signed-off-by: Randy Dunlap Reported-by: Tested-by: Randy Dunlap Acked-by: Jeff Mahoney Cc: Alexander Viro Cc: Jan Kara Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/reiserfs/journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c @@ -2640,7 +2640,7 @@ static int journal_init_dev(struct super if (IS_ERR(journal->j_dev_bd)) { result = PTR_ERR(journal->j_dev_bd); journal->j_dev_bd = NULL; - reiserfs_warning(super, + reiserfs_warning(super, "sh-457", "journal_init_dev: Cannot open '%s': %i", jdev_name, result); return result;