Received: by 10.192.165.148 with SMTP id m20csp2475215imm; Sun, 22 Apr 2018 07:49:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/wz4M3siKHS3m9mNn1VWMveGc5RSgBnRCxh+r4ah6KSMIWvJ4UoEaLjF49sQkryStkOPym X-Received: by 2002:a17:902:ba94:: with SMTP id k20-v6mr17658036pls.193.1524408567055; Sun, 22 Apr 2018 07:49:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524408567; cv=none; d=google.com; s=arc-20160816; b=YpsgY99P0O0DcJ9FetDEExVnkJkKDMX6hN1JFFVvuRRX5hTjIeDO0eFauQHq0Wp0EV ZjQ0Oo1u4u+5Qf3e2xY8MQatknXsnxtsW9019rOK0dZIb53JWEmIoSh+9adZ4hjTiBXs Myew5XcUv8q4LZxTgA8gc9Wo239JiEQeLVcx8B5Sl1RSyDThqSh8s0MyzjiX1jrUVuGa 5BVhkUSfog/DXxY9yufAj5dD0KEz038gS0od/ncu5wUH8AXYJB2axjZ/Rz3/+imEiNar DIxJmowevsxyRZNDCZ1astz3fysKSjhwK65kzTWXQGhC3soyTQIoxuMQcblystE4egpy myzQ== 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=UnHAu07qYem37YxfX0+1wCI/TknblgRnXFkmStIA/lc=; b=fnQMWAdLZR1c9DpCkIzvtPn1tbmLVs6I8VoB3n0yi0zzjkMELX5d0TviFduLuD7/pH by+NYSboaz/CNTKIzoYRGxwZGFtiONqOvfEAKiWN3aon3ZmOUDFqxUNqiySKtIyAYv1b JzCZc06yEikHcy76rQ8Ld6SKDEir3DEl8Jn1ndsNgwRZCeuDZmhhSmaTwqXfC/ihyV2J QiOsYHMl0NDvEj4mDGawVsxIIoRRSKVoyfc4V2Z63Js4XZe5IW8QCbWbALVu6QwItFYb k3VmJhU66B6k+TQU5meNpp7Ps5i2IXNBzUDYlx3830GB2u8vE/qX0btfV/xwAJnbHjlO tB9g== 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 z1si8530933pgs.132.2018.04.22.07.49.13; Sun, 22 Apr 2018 07:49: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 S932267AbeDVOQ2 (ORCPT + 99 others); Sun, 22 Apr 2018 10:16:28 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57356 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932241AbeDVOQR (ORCPT ); Sun, 22 Apr 2018 10:16:17 -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 5BEB34A5; Sun, 22 Apr 2018 14:16:16 +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.4 26/97] fs/reiserfs/journal.c: add missing resierfs_warning() arg Date: Sun, 22 Apr 2018 15:53:04 +0200 Message-Id: <20180422135306.500192204@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: 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;