From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f205.google.com (mail-il1-f205.google.com [209.85.166.205]) (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 62E4315E96 for ; Mon, 23 Dec 2024 02:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734920241; cv=none; b=XjLKlx9dZ05HzgK0whS+KOadNxuK3w0tcfZFBNzUu0OhNk2GIGtABE9sb4hXfxildip+szi/Ubd6NuYtww2cN2B5iM0+HOcwssYGlI6gJH0DmHto9mY801jMck+m+81ylLsdqHGINInAt2eQ3JrNIn657dD/q0Y3aKc+gR74AXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734920241; c=relaxed/simple; bh=6cRldlIppIKB+5fGExvfsgMnVV3IOdnr2XEpfuJ9a7g=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=h4Ct7wRGIE5fjGPe0e0DUal8WxpjyKd7wUf5Xd2Smd3OT80+zDyEFXz9Jl1jC4Kbg8CqLVV3eS8rsZtFDjufDQYId1li9pE0HOymf+9Udgc+pzK31dnVRVpye1eC/Vd9mBnpu1ZDaxgZ7Bt+lH+3zN+bKec7yFC25l9BMzxBMBk= 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.205 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-f205.google.com with SMTP id e9e14a558f8ab-3a9cbe8fea1so38048915ab.3 for ; Sun, 22 Dec 2024 18:17:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734920238; x=1735525038; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yhFYPMObK+rNTZy5q18QpqR0trWAoQ8lsYnJVQ+xSd0=; b=bCOCgAB5KcacsKYUcxgctR6H0jNL9VQz/32PNtg6+7Ta/AkAbIKdCCb4ZVKskyM81X 3grU9NBesuyL9gJbWivJux+JCSYsbq26iXmvKl3DuDUciVzWGUCcgrsrfE/DMyMZx/ub DOOFOOHasp+qT6MvXzIiLMqIPP9M5AkOeau14yWtQlWjiBKc0BqOF6KVh2tg7qr6LNeD WxRdr9e2fn8ada9NyT2FdMOohRMXntloOVGrrn1NVqmLIm26l66ulTs001b4mkCZU5bc iPo9nDtU++IgvUmhhiAJfX9alSgshDlMaAary6m0mC1wbLjUTWUzETYHItDoVfuPUcc6 gZvQ== X-Forwarded-Encrypted: i=1; AJvYcCVG/0cu9tgYbD3aREAtyfiMaqmOqxRGxrdS09C7ozmk631uQQ11Ry7nZ6u62TWNfd3J5oLSvvR4FyqiqhE=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3J4cfS/6dJE46zEwq41BbcgkGLnjBgPuZYuFGRuCVamPc7321 ZHgayEeuZrmtjSV4ma0vrJf0IHKtuYiqwGLWnNrVvXzO7Xhv9/xQNSXtzX6399O5hTeu591f7iF PIPE9hRQPE19LVMGivKAsWR6tndI0m3i6CwDUz0hurcBNYW4+ktyzDEg= X-Google-Smtp-Source: AGHT+IEhhscNC8u5vw/hvcYV5YZ7dG8O8Mld+bHUBuknVdSMm/7t24djcV+u4KW4Ov7attDPj1IiaTO0eEcPMoohWmZ0tNLNfoQY 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:349c:b0:3a7:fe8c:b015 with SMTP id e9e14a558f8ab-3c2d581a343mr10484665ab.24.1734920238585; Sun, 22 Dec 2024 18:17:18 -0800 (PST) Date: Sun, 22 Dec 2024 18:17:18 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6768c82e.050a0220.226966.0035.GAE@google.com> Subject: [syzbot] [f2fs?] kernel BUG in f2fs_get_victim From: syzbot To: chao@kernel.org, jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: aef25be35d23 hexagon: Disable constant extender optimizati.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=166c22df980000 kernel config: https://syzkaller.appspot.com/x/.config?x=6a2b862bf4a5409f dashboard link: https://syzkaller.appspot.com/bug?extid=b9972806adbe20a910eb 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/7feb34a89c2a/non_bootable_disk-aef25be3.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/b51d6862d2de/vmlinux-aef25be3.xz kernel image: https://storage.googleapis.com/syzbot-assets/cdb968bd31a4/bzImage-aef25be3.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+b9972806adbe20a910eb@syzkaller.appspotmail.com loop0: detected capacity change from 0 to 262144 F2FS-fs (loop0): invalid crc value F2FS-fs (loop0): Found nat_bits in checkpoint F2FS-fs (loop0): Start checkpoint disabled! F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5 ------------[ cut here ]------------ kernel BUG at fs/f2fs/gc.c:373! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5316 Comm: syz.0.0 Not tainted 6.13.0-rc3-syzkaller-00044-gaef25be35d23 #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:get_cb_cost fs/f2fs/gc.c:373 [inline] RIP: 0010:get_gc_cost fs/f2fs/gc.c:406 [inline] RIP: 0010:f2fs_get_victim+0x68b1/0x6aa0 fs/f2fs/gc.c:912 Code: f9 80 e1 07 80 c1 03 38 c1 0f 8c 4f f8 ff ff 4c 89 ff e8 22 3c 06 fe e9 42 f8 ff ff e8 98 d3 9f fd 90 0f 0b e8 90 d3 9f fd 90 <0f> 0b e8 88 d3 9f fd 90 0f 0b 89 d1 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc9000d44f2e0 EFLAGS: 00010287 RAX: ffffffff83ffa060 RBX: ffffffffffffffff RCX: 0000000000100000 RDX: ffffc9000eee2000 RSI: 00000000000003e0 RDI: 00000000000003e1 RBP: ffffc9000d44f628 R08: ffffffff83ff60bf R09: ffffffff83ff6048 R10: 0000000000000002 R11: ffff888000864880 R12: 0000000000000008 R13: ffff888011a96c00 R14: 0000000000000008 R15: dffffc0000000000 FS: 00007f10c73646c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f10c676c4c8 CR3: 0000000042e3e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __get_victim fs/f2fs/gc.c:1707 [inline] f2fs_gc+0xc89/0x2f60 fs/f2fs/gc.c:1915 f2fs_ioc_gc fs/f2fs/file.c:2624 [inline] __f2fs_ioctl+0x4cc9/0xb8b0 fs/f2fs/file.c:4482 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 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:0x7f10c6585d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f10c7364038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f10c6775fa0 RCX: 00007f10c6585d29 RDX: 0000000020000140 RSI: 000000004004f506 RDI: 0000000000000006 RBP: 00007f10c6601a20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f10c6775fa0 R15: 00007ffd0da279e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:get_cb_cost fs/f2fs/gc.c:373 [inline] RIP: 0010:get_gc_cost fs/f2fs/gc.c:406 [inline] RIP: 0010:f2fs_get_victim+0x68b1/0x6aa0 fs/f2fs/gc.c:912 Code: f9 80 e1 07 80 c1 03 38 c1 0f 8c 4f f8 ff ff 4c 89 ff e8 22 3c 06 fe e9 42 f8 ff ff e8 98 d3 9f fd 90 0f 0b e8 90 d3 9f fd 90 <0f> 0b e8 88 d3 9f fd 90 0f 0b 89 d1 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc9000d44f2e0 EFLAGS: 00010287 RAX: ffffffff83ffa060 RBX: ffffffffffffffff RCX: 0000000000100000 RDX: ffffc9000eee2000 RSI: 00000000000003e0 RDI: 00000000000003e1 RBP: ffffc9000d44f628 R08: ffffffff83ff60bf R09: ffffffff83ff6048 R10: 0000000000000002 R11: ffff888000864880 R12: 0000000000000008 R13: ffff888011a96c00 R14: 0000000000000008 R15: dffffc0000000000 FS: 00007f10c73646c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f10c676c4c8 CR3: 0000000042e3e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- 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