From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AACA818E34F for ; Tue, 20 Aug 2024 07:57:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724140654; cv=none; b=LUXm8hjyBA2M9VmMEjo1WYBDj74mW4D5Dug4gQ48Qy7lHo1B98/DjP19Pg9VqzG4RH2Kf/PJhl/P3w0AKzo0wuVDvzaSp5I7w4wU8WwgrwvpSYy0vcmP1W8FuLAw0U9yH2juFx4BfHTXJIpr2h/ctZjDjs2DC4dppYLkQ2JcOnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724140654; c=relaxed/simple; bh=TsNatHVV48YxJLiDsLZ8YlXeIye+Jg5/yuW/NRtoUUU=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=Cn7AGjNKKcBYl7aTh0gtjMb6XpjnrLK5TQ3wQiK5qKbJ6clRCCYtX4CDEABtoU8tzAgUoEi0wJOTpJ7Im5tLhBjiMdUG5yAGsPZtY15gn9PgLih0hmjJgc7Zf6s+rcOrfJmXcCau/vzo0ocfDOTjz+hOfoL5iuQTm4yRsTDqtr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f200.google.com with SMTP id e9e14a558f8ab-37642e69d7eso45735925ab.3 for ; Tue, 20 Aug 2024 00:57:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724140650; x=1724745450; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JbNOAtInOvyXakuPD/OSUZBNPPiMvbC5OxiHM9Khf6I=; b=Z82X118p7clt6N3v3l5kOWikmCSLSEHmG4P+tgwsOFqfrwAEpGkesyHlqax7PLiyJD CDU4xKB7J6ZaoxDaYwrN+knG3JM5Leuf/WkR0eH2/i8XsMpHGnv6ee/Sewu5l8/okodi MN8pR14mXOM/Ff5WJ5NoQ6h2mVwVHJAkU9qDaNv27oh43bUJmaO/9x0vmy7F9tyZ+2KF O5cO7VphVRiePZgbuW8tyfYANe76VtrMxI7Zmx0usp7D+KP20xNgmbYNytFnGNd3FLHW Xz3N8oJWnhSLo++/YtkDoLsVbwVfFzNiIyzrYDSx+iDgBDe69ppVWo8PwVFEtA9ISoUw y3ug== X-Forwarded-Encrypted: i=1; AJvYcCX9mib44RWfu3RPEjynqJDmWsEYAMspBUV7+P529niYFINt+2rkqBEERfaxCwE5nR4WkXVa1mlvmdVSo0E=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8omgmQxPiL6jYdmgT8U/lyJbkm3vGWrnvDLtrctbvIt+1gHN1 NUaqIo/6yl3DTB4khx9Fa7TafweuKfNeekZGqSs77J6ckr2wq/FolHx0AVEFNBU1mQuWqrCikCl m/orBu1Rrd8BoBklP7K5Sx9gNNvMFi94cucorp0fsq6CRhRpuYcp12+I= X-Google-Smtp-Source: AGHT+IH3mbHktfkn4OuNuRTHM9iCVa6hlYjCanXRGzt+Swwv1lrmj024G5+pv6Hkb8MYHrbiFfP4T92F0e9gS5IgJvTf4DaTf1Ea Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1c04:b0:398:3831:4337 with SMTP id e9e14a558f8ab-39d26d89609mr11938475ab.5.1724140649686; Tue, 20 Aug 2024 00:57:29 -0700 (PDT) Date: Tue, 20 Aug 2024 00:57:29 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f7b96e062018c6e3@google.com> Subject: [syzbot] [erofs?] general protection fault in z_erofs_gbuf_growsize From: syzbot To: chao@kernel.org, dhavale@google.com, huyue2@coolpad.com, jefflexu@linux.alibaba.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, xiang@kernel.org Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 1fb918967b56 Merge tag 'for-6.11-rc3-tag' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=110fcf5d980000 kernel config: https://syzkaller.appspot.com/x/.config?x=7229118d88b4a71b dashboard link: https://syzkaller.appspot.com/bug?extid=242ee56aaa9585553766 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7bc7510fe41f/non_bootable_disk-1fb91896.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/cd6e8883313a/vmlinux-1fb91896.xz kernel image: https://storage.googleapis.com/syzbot-assets/87b718d2d1df/bzImage-1fb91896.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+242ee56aaa9585553766@syzkaller.appspotmail.com loop0: detected capacity change from 0 to 16 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5102 Comm: syz.0.0 Not tainted 6.11.0-rc3-syzkaller-00066-g1fb918967b56 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 fail_dump lib/fault-inject.c:52 [inline] should_fail_ex+0x3b0/0x4e0 lib/fault-inject.c:153 should_failslab+0xac/0x100 mm/failslab.c:45 slab_pre_alloc_hook mm/slub.c:3941 [inline] slab_alloc_node mm/slub.c:4017 [inline] kmem_cache_alloc_node_noprof+0x71/0x320 mm/slub.c:4080 alloc_vmap_area+0x24f/0x2400 mm/vmalloc.c:1986 __get_vm_area_node+0x1a9/0x270 mm/vmalloc.c:3119 get_vm_area_caller mm/vmalloc.c:3170 [inline] vmap+0x119/0x2b0 mm/vmalloc.c:3439 z_erofs_gbuf_growsize+0x262/0x520 fs/erofs/zutil.c:96 z_erofs_load_lz4_config fs/erofs/decompressor.c:58 [inline] z_erofs_parse_cfgs+0x1e6/0x680 fs/erofs/decompressor.c:494 erofs_read_superblock fs/erofs/super.c:357 [inline] erofs_fc_fill_super+0x1194/0x1730 fs/erofs/super.c:628 get_tree_bdev+0x3f7/0x570 fs/super.c:1635 vfs_get_tree+0x90/0x2a0 fs/super.c:1800 do_new_mount+0x2be/0xb40 fs/namespace.c:3472 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe726b7b0ba Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe727918e68 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe727918ef0 RCX: 00007fe726b7b0ba RDX: 0000000020000180 RSI: 00000000200001c0 RDI: 00007fe727918eb0 RBP: 0000000020000180 R08: 00007fe727918ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00000000200001c0 R13: 00007fe727918eb0 R14: 0000000000000174 R15: 0000000020000240 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 5102 Comm: syz.0.0 Not tainted 6.11.0-rc3-syzkaller-00066-g1fb918967b56 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:z_erofs_gbuf_growsize+0x45f/0x520 fs/erofs/zutil.c:114 Code: 57 dc 9e fd 48 8b 1b 48 85 db 74 44 43 80 3c 26 00 74 08 4c 89 ef e8 40 dc 9e fd 48 c1 e5 03 49 03 6d 00 48 89 e8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 ef e8 22 dc 9e fd 48 3b 5d 00 74 18 e8 RSP: 0018:ffffc90002e4f918 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffea000117ce40 RCX: ffff888020388000 RDX: ffff888020388000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff845bf21b R09: 1ffffffff26e5f27 R10: dffffc0000000000 R11: fffffbfff26e5f28 R12: dffffc0000000000 R13: ffff88803267dcc8 R14: 1ffff110064cfb99 R15: 0000000000000000 FS: 00007fe7279196c0(0000) GS:ffff888020800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5da995ed8 CR3: 00000000369c6000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: z_erofs_load_lz4_config fs/erofs/decompressor.c:58 [inline] z_erofs_parse_cfgs+0x1e6/0x680 fs/erofs/decompressor.c:494 erofs_read_superblock fs/erofs/super.c:357 [inline] erofs_fc_fill_super+0x1194/0x1730 fs/erofs/super.c:628 get_tree_bdev+0x3f7/0x570 fs/super.c:1635 vfs_get_tree+0x90/0x2a0 fs/super.c:1800 do_new_mount+0x2be/0xb40 fs/namespace.c:3472 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe726b7b0ba Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe727918e68 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe727918ef0 RCX: 00007fe726b7b0ba RDX: 0000000020000180 RSI: 00000000200001c0 RDI: 00007fe727918eb0 RBP: 0000000020000180 R08: 00007fe727918ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00000000200001c0 R13: 00007fe727918eb0 R14: 0000000000000174 R15: 0000000020000240 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:z_erofs_gbuf_growsize+0x45f/0x520 fs/erofs/zutil.c:114 Code: 57 dc 9e fd 48 8b 1b 48 85 db 74 44 43 80 3c 26 00 74 08 4c 89 ef e8 40 dc 9e fd 48 c1 e5 03 49 03 6d 00 48 89 e8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 ef e8 22 dc 9e fd 48 3b 5d 00 74 18 e8 RSP: 0018:ffffc90002e4f918 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffea000117ce40 RCX: ffff888020388000 RDX: ffff888020388000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff845bf21b R09: 1ffffffff26e5f27 R10: dffffc0000000000 R11: fffffbfff26e5f28 R12: dffffc0000000000 R13: ffff88803267dcc8 R14: 1ffff110064cfb99 R15: 0000000000000000 FS: 00007fe7279196c0(0000) GS:ffff888020800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5da995ed8 CR3: 00000000369c6000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 57 push %rdi 1: dc 9e fd 48 8b 1b fcompl 0x1b8b48fd(%rsi) 7: 48 85 db test %rbx,%rbx a: 74 44 je 0x50 c: 43 80 3c 26 00 cmpb $0x0,(%r14,%r12,1) 11: 74 08 je 0x1b 13: 4c 89 ef mov %r13,%rdi 16: e8 40 dc 9e fd call 0xfd9edc5b 1b: 48 c1 e5 03 shl $0x3,%rbp 1f: 49 03 6d 00 add 0x0(%r13),%rbp 23: 48 89 e8 mov %rbp,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 ef mov %rbp,%rdi 34: e8 22 dc 9e fd call 0xfd9edc5b 39: 48 3b 5d 00 cmp 0x0(%rbp),%rbx 3d: 74 18 je 0x57 3f: e8 .byte 0xe8 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup