Received: by 10.192.165.148 with SMTP id m20csp2427776imm; Sun, 22 Apr 2018 06:58:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/npxmW61GW+zuuPv3tIwVIxviPrfw3RSzcb5lkPFRY36Wo3iWv56tHYUcN7sKrt8DZzuN2 X-Received: by 10.98.12.202 with SMTP id 71mr16613608pfm.61.1524405485496; Sun, 22 Apr 2018 06:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524405485; cv=none; d=google.com; s=arc-20160816; b=sKRi9SUMYmgQnu4z2s8sZGQM/+BCFfM7LsA7Juct/rT1SWVkaWPp9Kvpgx+hTAPEOD 4QrTJR5G1gat1ikw/E7JV27sZdLd5CkwTscpx9ciQdVkOARDgzmK+QVRknrblfcstXgn RO+XSMvo1AWsTJRzPnR4WgLqFbSoLnDrtj8Be7Zk958cL2MKXZ+QbIWYU7OOB0khTdwp QrQF4/uxja2uE4KeB7GrRWSV96Qy8ro71PxqjiiI1T719eQx40Cq/Tu3putj1DkI6+tz nYkq/T7D8DglWurJ5jgv+mDf4Im+U+NQgfaCei7ty/mhhHkfEI5eejYV5LwmCMvKTFhF JxgA== 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=dS9dRL7gVXyGge9BcvnKf0Dfg/+/qxbtvD2OQou6NX0=; b=D1y0ZdnPf/kx/otsCYJcmdoOgqhF/vQXkkymBFtBJsy+xLnNImYIUtvq5GLhcsoPec 4Z42PzohX6arlxFb3PT3f2nGuBCtL0ZZ43G5C0lmNkPKX1bqa+5Qlj4eF9/LUKIp7pSP kYnJf/1x43j7qkr92GJ0Xt9WLVQoBA+IqIYzcfoFp4FfE9XyKiIGTmgXn5Df7ELajHur N8rFPdm7GijqD1wrxAB4kEorMBPNa4RPbEt7m/nvM8OUOywhiv9tv/am1YmEJd2n/7tz xwiSRIXZ/Ig2OT71+N+en7j0cRgNuj4d5P9vPjQ1qVjsXRnH8fabCYvfHG1xrAcEsx2O B8Dg== 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 g127si8045283pgc.428.2018.04.22.06.57.50; Sun, 22 Apr 2018 06:58:05 -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 S1753787AbeDVN4a (ORCPT + 99 others); Sun, 22 Apr 2018 09:56:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45152 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753390AbeDVN40 (ORCPT ); Sun, 22 Apr 2018 09:56:26 -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 081469CE; Sun, 22 Apr 2018 13:56:25 +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.16 013/196] fs/reiserfs/journal.c: add missing resierfs_warning() arg Date: Sun, 22 Apr 2018 15:50:33 +0200 Message-Id: <20180422135104.846884906@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135104.278511750@linuxfoundation.org> References: <20180422135104.278511750@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.16-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 @@ -2643,7 +2643,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;