Received: by 10.192.165.156 with SMTP id m28csp1529358imm; Tue, 17 Apr 2018 00:25:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx49AXPTPe60fw/3X2czhEU0KW+HPBkKgS4sdEIuChdJ9qGlsnyfo0Q3skV2/zGeXomiugMvM X-Received: by 10.99.127.3 with SMTP id a3mr873522pgd.267.1523949931219; Tue, 17 Apr 2018 00:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523949931; cv=none; d=google.com; s=arc-20160816; b=r5O7dBUBEIxR2ZywKb1Rmrtz3Z1B/ar5CiSwzPqz15AI4ZU4nTeRLJ18/WOkXEdG8a mlojH2nkMIjK2Dyd5sW0Hty7Mll62invLbk8ZgK4ovxKm9jkmKuo6h/fboNdlACDCKOS 5rPZhpiC/g2iVBqILw/Ht198vj2r63+ehZf8QR+aLoSBM8UU2KEe6AeQA4TKgZ13QgKE PeqG7Jar9xXCvkceuA5FOZQakAK2CS8lh7nZ+UKKAHy2SEGu+p4VX2cbmry+PqKpxhVi GzlAceSZ0CImXhDdL/j3LRaNhBmajENskUakiLLYakZueGrtC6DIUNZDtaar27kxBoaR nCxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:in-reply-to :date:mime-version:arc-authentication-results; bh=BP0l0vHwbk1VASmKs7lbdT0hbRHewtjxn5x91YW7/TE=; b=OyoVELab2kKp/LOkjKInqYs/DOe0wqiYNmkR7Mp0+QYkXbHAv1bdHaN3XdIc8Ap67k +rsspNLgz/jmdGEE6qgiIJuwl+xczm+NVlnKdI5heZ3oAPNmgi+OJMzJshB3PET+Ne3i Axvb0ypcRar6ggBq1THGRtR66TfgHCi8uBWageVN825uOnekg8Q9n2+KubiR/LHY1P7N k+UMJdwfEUn6yIc9Omj41RGA5DcXVYLbj9ZiUxhCqoERHBe+E/JLQHds5MxiuS7wW2xS JAZidjH8xxA6PrBaPBUsF/CYT8HMwjPopfQfvmliiRzqnTzwm2O54YKIAbfu/dZYll5q blfw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4-v6si13808162pld.371.2018.04.17.00.25.16; Tue, 17 Apr 2018 00:25:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751248AbeDQHYG (ORCPT + 99 others); Tue, 17 Apr 2018 03:24:06 -0400 Received: from mail-io0-f198.google.com ([209.85.223.198]:49646 "EHLO mail-io0-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbeDQHYD (ORCPT ); Tue, 17 Apr 2018 03:24:03 -0400 Received: by mail-io0-f198.google.com with SMTP id d6so3789943ioc.16 for ; Tue, 17 Apr 2018 00:24:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=BP0l0vHwbk1VASmKs7lbdT0hbRHewtjxn5x91YW7/TE=; b=pUBBy6Ha/OQEByyPz7Lmm+tGA1etUZnnHhBJNgO1Ll5/s1PM7vLhVuX1mUfoazabmL YqEo3WQmrmy/0amY/ARtDbDp/1olNoLsFwt34xhO3NF+C63NzNvVSA0Ht/VMC6I6QLrx A/HudJa73qp2KKOe1F81BgRIOnOmMPtX3lYMxIIxRTpptv6igmr8QVqH6pVnBPhvnAQM sRQ6KGiHMpwVVnw4f5MDW9e92MJQY7dJkzKhOPpIqPJWbU1CS0Sz8qBLkp2bGjqm4uQV SV2cEyRycVCiv6FGaldPwGxbrJHyp4HB1ild3cXEp8X3uD0NbCIS7Ags/xWU5uHSJTIN d8AQ== X-Gm-Message-State: ALQs6tBITfIKsnEbUvfqInb2zgQ6zJFyoiVTcu0b4wJ/0tbZoLvPia7m HRSaJyVOgM+1ss07TfUM5nmMKwzjvkpV36CHwWRw8ZVwxpnI MIME-Version: 1.0 X-Received: by 10.107.43.7 with SMTP id r7mr422271ior.118.1523949842642; Tue, 17 Apr 2018 00:24:02 -0700 (PDT) Date: Tue, 17 Apr 2018 00:24:02 -0700 In-Reply-To: <000000000000b696800568f4a6c6@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <001a1139d0ba06bddf056a063986@google.com> Subject: Re: KASAN: global-out-of-bounds Write in string From: syzbot To: dhowells@redhat.com, linux-kernel@vger.kernel.org, penguin-kernel@I-love.SAKURA.ne.jp, reiserfs-devel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found reproducer for the following crash on upstream commit a27fc14219f2e3c4a46ba9177b04d9b52c875532 (Mon Apr 16 21:07:39 2018 +0000) Merge branch 'parisc-4.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=b890b3335a4d8c608963 So far this crash happened 3 times on upstream. C reproducer: https://syzkaller.appspot.com/x/repro.c?id=4639432657338368 syzkaller reproducer: https://syzkaller.appspot.com/x/repro.syz?id=5739177354199040 Raw console output: https://syzkaller.appspot.com/x/log.txt?id=5837965024559104 Kernel config: https://syzkaller.appspot.com/x/.config?id=-5914490758943236750 compiler: gcc (GCC) 8.0.1 20180413 (experimental) IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+b890b3335a4d8c608963@syzkaller.appspotmail.com It will help syzbot understand when the bug is fixed. VFS: Can't find a Minix filesystem V1 | V2 | V3 on device loop5. ================================================================== BUG: KASAN: global-out-of-bounds in string+0x291/0x2c0 lib/vsprintf.c:608 Write of size 1 at addr ffffffff8a5405c0 by task syzkaller915239/4487 CPU: 1 PID: 4487 Comm: syzkaller915239 Not tainted 4.17.0-rc1+ #6 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 __asan_report_store1_noabort+0x17/0x20 mm/kasan/report.c:435 string+0x291/0x2c0 lib/vsprintf.c:608 vsnprintf+0x4b7/0x1b40 lib/vsprintf.c:2292 vsprintf+0x2a/0x40 lib/vsprintf.c:2472 prepare_error_buf+0x23b/0x1aa0 fs/reiserfs/prints.c:240 __reiserfs_warning+0xb0/0xd0 fs/reiserfs/prints.c:267 reiserfs_getopt fs/reiserfs/super.c:1044 [inline] reiserfs_parse_options+0x11f4/0x27f0 fs/reiserfs/super.c:1194 reiserfs_fill_super+0x520/0x3900 fs/reiserfs/super.c:1946 mount_bdev+0x30c/0x3e0 fs/super.c:1165 get_super_block+0x34/0x40 fs/reiserfs/super.c:2605 mount_fs+0xae/0x328 fs/super.c:1268 vfs_kern_mount.part.34+0xd4/0x4d0 fs/namespace.c:1037 vfs_kern_mount fs/namespace.c:1027 [inline] do_new_mount fs/namespace.c:2517 [inline] do_mount+0x564/0x3070 fs/namespace.c:2847 ksys_mount+0x12d/0x140 fs/namespace.c:3063 __do_sys_mount fs/namespace.c:3077 [inline] __se_sys_mount fs/namespace.c:3074 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3074 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x448bca RSP: 002b:00007f33571ccc68 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000040 RCX: 0000000000448bca RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007f33571ccc80 RBP: 0000000000000004 R08: 0000000020000380 R09: 000000000000000a R10: 0000000001000000 R11: 0000000000000202 R12: 0000000000000043 R13: 0000000000000044 R14: 0000000001000000 R15: 0000000000000004 The buggy address belongs to the variable: error_buf+0x400/0x420 Memory state around the buggy address: ffffffff8a540480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff8a540500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > ffffffff8a540580: 00 00 00 00 00 00 00 00 fa fa fa fa 04 fa fa fa ^ ffffffff8a540600: fa fa fa fa 00 fa fa fa fa fa fa fa 00 fa fa fa ffffffff8a540680: fa fa fa fa 00 fa fa fa fa fa fa fa 00 fa fa fa ==================================================================