syzbot writes:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit:b7b275e60bcd Linux 6.1-rc7
> git tree: upstream
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=158a7b7388
> kernel config: https://syzkaller.appspot.com/x/.config?x=2325e409a9a893e1
> dashboard link: https://syzkaller.appspot.com/bug?extid=adec8406ad17413d4c06
> compiler: Debian clang version
> 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU
> Binutils for Debian) 2.35.2
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=169ccb7588
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17bf715388
>
> Downloadable assets:
> disk image:
> https://storage.googleapis.com/syzbot-assets/525233126d34/disk-b7b275e6.raw.xz
> vmlinux:
> https://storage.googleapis.com/syzbot-assets/e8299bf41400/vmlinux-b7b275e6.xz
> kernel image:
> https://storage.googleapis.com/syzbot-assets/eebf691dbf6f/bzImage-b7b275e6.xz
> mounted in repro:
> https://storage.googleapis.com/syzbot-assets/5423c2d2ad62/mount_0.gz
>
> The issue was bisected to:
>
> commit c814bf958926ff45a9c1e899bd001006ab6cfbae
> Author: ye xingchen
> Date: Tue Aug 16 10:51:06 2022 +
>
> powerpc/selftests: Use timersub() for gettimeofday()
That can't be right, that patch only touches
tools/testing/selftests/powerpc/benchmarks/gettimeofday.c which isn't
built into vmlinux - and definitely not for an x86 build.
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=118c3d0388
This says:
Reproducer flagged being flaky
AFAICS there isn't a syzbot command to ask for a new bisection, so
someone will have to do it manually.
cheers
> final oops: https://syzkaller.appspot.com/x/report.txt?x=138c3d0388
> console output: https://syzkaller.appspot.com/x/log.txt?x=158c3d0388
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+adec8406ad17413d4...@syzkaller.appspotmail.com
> Fixes: c814bf958926 ("powerpc/selftests: Use timersub() for gettimeofday()")
>
> RDX: 0001 RSI: 2280 RDI: 0005
> RBP: 7ffd32e91c70 R08: R09:
> R10: 0800 R11: 0246 R12: 0006
> R13: 7ffd32e91cb0 R14: 7ffd32e91c90 R15: 0006
>
> [ cut here ]
> WARNING: CPU: 1 PID: 3764 at fs/btrfs/space-info.h:122
> btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline]
> WARNING: CPU: 1 PID: 3764 at fs/btrfs/space-info.h:122
> btrfs_free_reserved_data_space_noquota+0x219/0x2b0
> fs/btrfs/delalloc-space.c:179
> Modules linked in:
> CPU: 1 PID: 3764 Comm: syz-executor759 Not tainted 6.1.0-rc7-syzkaller #0
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 10/26/2022
> RIP: 0010:btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:122
> [inline]
> RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154
> [inline]
> RIP: 0010:btrfs_free_reserved_data_space_noquota+0x219/0x2b0
> fs/btrfs/delalloc-space.c:179
> Code: 2f 00 74 08 4c 89 ef e8 b5 98 32 fe 49 8b 5d 00 48 89 df 4c 8b 74 24 08
> 4c 89 f6 e8 21 81 de fd 4c 39 f3 73 16 e8 d7 7e de fd <0f> 0b 31 db 4c 8b 34
> 24 41 80 3c 2f 00 75 8c eb 92 e8 c1 7e de fd
> RSP: 0018:c9000443f410 EFLAGS: 00010293
> RAX: 83ac1919 RBX: 005cb000 RCX: 888027989d40
> RDX: RSI: 0080 RDI: 005cb000
> RBP: dc00 R08: 83ac190f R09: fbfff1cebe0e
> R10: fbfff1cebe0e R11: 11cebe0d R12: 8880774f3800
> R13: 8880774f3860 R14: 0080 R15: 11100ee9e70c
> FS: 55aaa300() GS:8880b990() knlGS:
> CS: 0010 DS: ES: CR0: 80050033
> CR2: 7f0d98f20140 CR3: 25ccf000 CR4: 003506e0
> DR0: DR1: DR2:
> DR3: DR6: fffe0ff0 DR7: 0400
> Call Trace:
>
> btrfs_free_reserved_data_space+0x9d/0xd0 fs/btrfs/delalloc-space.c:199
> btrfs_dio_iomap_begin+0x8f7/0x1070 fs/btrfs/inode.c:7762
> iomap_iter+0x606/0x8a0 fs/iomap/iter.c:74
> __iomap_dio_rw+0xd91/0x20d0 fs/iomap/direct-io.c:601
> btrfs_dio_write+0x9c/0xe0 fs/btrfs/inode.c:8094
> btrfs_direct_write fs/btrfs/file.c:1835 [inline]
> btrfs_do_write_iter+0x871/0x1260 fs/btrfs/file.c:1980
> do_iter_write+0x6c2/0xc20 fs/read_write.c:861
> vfs_writev fs/read_write.c:934 [inline]
> do_pwritev+0x200/0x350 fs/read_write.c:1031
> do_syscall_x64 arch/x86/entry/common.c:50 [inline]
> do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
> entry_SYSCALL_64_after_hwframe+0x63/0xcd
> RIP: 0033:0x7f0d98ea8ea9
> Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
>