From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D88BC433F5 for ; Thu, 31 Mar 2022 16:42:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240188AbiCaQoK (ORCPT ); Thu, 31 Mar 2022 12:44:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240170AbiCaQoK (ORCPT ); Thu, 31 Mar 2022 12:44:10 -0400 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB6CB2128ED for ; Thu, 31 Mar 2022 09:42:19 -0700 (PDT) Received: by mail-il1-f198.google.com with SMTP id g2-20020a056e02130200b002c837b25e60so118934ilr.20 for ; Thu, 31 Mar 2022 09:42:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=85LgQrm0KTrehU7vWZ2mnUqIZnm70JfcVFObJFvtvz4=; b=HAuZ7QXpBdoAL09e4zF3mdyare5fUEHDfXk/sm4HKBQOvYJ86Ouct13bfw52ByesuL OfH1RX32j+XqR/yXZTSzSldXPLLJvoazgYUxERCIh0WTa7LEgiUsmXqvT6av4hFZ546v FpMWNjQNrNF3M/SvnbBH8LtCPkMJjpTzJe0vr3ALww0RjthevBeLzdY98UrqRpwV0/in B2xYeEGAMd4Lm1aVwfG/T4UWClK9yzoI6DM5+VG623+d6ZSTO2J/hZ/dveFU5SZ09otp Nyvtwlwm9860+dmKPBp53eR1stCA0zdq+jKJe+rJ93m8HnnWGVg2P/aXiJvm71S31uNu ODMA== X-Gm-Message-State: AOAM531FjnaTsMu1eTuKR2tsyFklE8BiOyIGSOOz3xdEp6JhTXBMwiPE aS6AWZeJRRwhC6nFXx+GsJVla5Gn79BM+8Nb2OReIpjI53Rs X-Google-Smtp-Source: ABdhPJwHRT/7EQvMxI7sRTu5JdTKoXtJGtFMWbhthbIbVYWNBOGSrOC8FKnk0OUztuJViGIsBeMGw6ae6JFzo5wMEfK/SEArH3aY MIME-Version: 1.0 X-Received: by 2002:a92:7d08:0:b0:2c2:d72c:62bf with SMTP id y8-20020a927d08000000b002c2d72c62bfmr14480741ilc.167.1648744939176; Thu, 31 Mar 2022 09:42:19 -0700 (PDT) Date: Thu, 31 Mar 2022 09:42:19 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006cc9ec05db8658be@google.com> Subject: [syzbot] WARNING in bio_free From: syzbot To: axboe@kernel.dk, hch@lst.de, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, martin.petersen@oracle.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: fdcbcd1348f4 Add linux-next specific files for 20220331 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16c815bb700000 kernel config: https://syzkaller.appspot.com/x/.config?x=366ab475940a4177 dashboard link: https://syzkaller.appspot.com/bug?extid=e08de3db8be67b2a01b0 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=131015d7700000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14807cf7700000 The issue was bisected to: commit 57c47b42f4545b5f8fa288f190c0d68f96bc477f Author: Christoph Hellwig Date: Tue Mar 8 06:15:50 2022 +0000 block: turn bio_kmalloc into a simple kmalloc wrapper bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1567f79b700000 final oops: https://syzkaller.appspot.com/x/report.txt?x=1767f79b700000 console output: https://syzkaller.appspot.com/x/log.txt?x=1367f79b700000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+e08de3db8be67b2a01b0@syzkaller.appspotmail.com Fixes: 57c47b42f454 ("block: turn bio_kmalloc into a simple kmalloc wrapper") loop0: detected capacity change from 0 to 8 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 3587 at block/bio.c:229 bio_free+0xe8/0x120 block/bio.c:229 Modules linked in: CPU: 1 PID: 3587 Comm: syz-executor393 Not tainted 5.17.0-next-20220331-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bio_free+0xe8/0x120 block/bio.c:229 Code: fa 48 c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 20 8b 45 08 48 83 c4 08 48 29 c3 48 89 df 5b 5d e9 fd be cb fd e8 a8 af a3 fd <0f> 0b e9 51 ff ff ff 48 89 34 24 e8 e8 57 ef fd 48 8b 34 24 eb d1 RSP: 0018:ffffc900038efac0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880241c7f00 RCX: 0000000000000000 RDX: ffff888019410000 RSI: ffffffff83d57848 RDI: ffff8880241c7f80 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff83d57915 R11: 0000000000000000 R12: 0000000000000060 R13: 0000000000000060 R14: 0000000000001000 R15: 0000000000000060 FS: 0000555556045300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc4e7ecd20 CR3: 000000007554f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bio_put+0x20e/0x3b0 block/bio.c:754 squashfs_read_data+0x2ce/0xed0 fs/squashfs/block.c:221 squashfs_read_table+0x184/0x1f0 fs/squashfs/cache.c:432 squashfs_fill_super+0x337/0x2690 fs/squashfs/super.c:184 get_tree_bdev+0x440/0x760 fs/super.c:1292 vfs_get_tree+0x89/0x2f0 fs/super.c:1497 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x1320/0x1fa0 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f5ae6a070da Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe7a847f68 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffe7a847fc0 RCX: 00007f5ae6a070da RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe7a847f80 RBP: 00007ffe7a847f80 R08: 00007ffe7a847fc0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000282 R12: 0000000020000218 R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000001 --- 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. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches