syzbot


kernel BUG in __phys_addr (2)

Status: upstream: reported C repro on 2023/07/15 19:54
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+daa1128e28d3c3961cb2@syzkaller.appspotmail.com
First crash: 299d, last: 2d20h
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] [reiserfs?] kernel BUG in __phys_addr (2) 0 (2) 2024/02/28 23:16
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in __phys_addr C done 2 332d 363d 3/3 fixed on 2023/07/17 13:09
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (6) raid 90 880d 1376d 0/26 auto-closed as invalid on 2022/04/07 07:37
linux-4.14 kernel BUG at arch/x86/mm/physaddr.c:LINE! C inconclusive 23 1137d 1593d 0/1 upstream: reported C repro on 2019/12/26 02:01
linux-6.1 kernel BUG in __phys_addr (2) origin:lts-only C 12 8d19h 9d17h 0/3 upstream: reported C repro on 2024/04/27 00:09
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) 76 616d 1392d 0/1 auto-obsoleted due to no activity on 2022/12/26 22:17
upstream kernel BUG in __phys_addr net 1 380d 376d 0/26 auto-obsoleted due to no activity on 2023/06/21 10:32
linux-5.15 kernel BUG in __phys_addr origin:lts-only C 3 8d12h 8d20h 0/3 upstream: reported C repro on 2024/04/27 21:08
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/04/28 05:32 26m retest repro linux-next OK log
2024/01/22 05:14 28m retest repro linux-next error OK
2024/01/21 04:48 20m retest repro upstream OK log
2023/11/11 02:53 0m retest repro linux-next error OK
2023/09/01 23:16 1h23m retest repro linux-next report log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/08/02 15:25 59m bisect linux-next error job log (0)
2023/07/11 22:38 4h22m bisect linux-next error job log (0)
marked invalid by nogikh@google.com

Sample crash report:
  u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 8aae33f84eb959b0 written 16 min_key 524288:0:0 durability: 0 (invalid extent entry 0000000000020000)
  invalid extent entry type (got 17, max 6), shutting down
bcachefs (loop0): inconsistency detected - emergency read only at journal seq 0
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:23!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 5076 Comm: syz-executor151 Not tainted 6.9.0-rc6-syzkaller-00131-gf03359bca01b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__phys_addr+0x16a/0x170 arch/x86/mm/physaddr.c:23
Code: c0 75 1a 8e 4c 89 f6 4c 89 fa e8 21 d6 9d 03 e9 45 ff ff ff e8 77 60 53 00 90 0f 0b e8 6f 60 53 00 90 0f 0b e8 67 60 53 00 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90002e17198 EFLAGS: 00010293
RAX: ffffffff8142af69 RBX: 000000007ffff75e RCX: ffff888024b00000
RDX: 0000000000000000 RSI: 000000007ffff75e RDI: 000000001fffffff
RBP: ffffc90002e175c8 R08: ffffffff8142af05 R09: 0000000000000000
R10: ffff88807384afe0 R11: ffffed100e7095ff R12: dffffc0000000000
R13: fffffffffffff75e R14: 000000007ffff75e R15: ffff888073800000
FS:  00005555669aa380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc12562f08 CR3: 0000000022a80000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 virt_to_folio include/linux/mm.h:1306 [inline]
 kfree+0x71/0x3a0 mm/slub.c:4382
 bch2_fs_recovery+0x3166/0x6390 fs/bcachefs/recovery.c:905
 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1043
 bch2_fs_open+0xa8d/0xdf0 fs/bcachefs/super.c:2102
 bch2_mount+0x71d/0x1320 fs/bcachefs/fs.c:1903
 legacy_get_tree+0xee/0x190 fs/fs_context.c:662
 vfs_get_tree+0x90/0x2a0 fs/super.c:1779
 do_new_mount+0x2be/0xb40 fs/namespace.c:3352
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f17e2d558ba
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd2175f708 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd2175f720 RCX: 00007f17e2d558ba
RDX: 0000000020000000 RSI: 0000000020011a40 RDI: 00007ffd2175f720
RBP: 0000000000000004 R08: 00007ffd2175f760 R09: 00000000000119ff
R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000000
R13: 00007ffd2175f760 R14: 0000000000000003 R15: 0000000001000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__phys_addr+0x16a/0x170 arch/x86/mm/physaddr.c:23
Code: c0 75 1a 8e 4c 89 f6 4c 89 fa e8 21 d6 9d 03 e9 45 ff ff ff e8 77 60 53 00 90 0f 0b e8 6f 60 53 00 90 0f 0b e8 67 60 53 00 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90002e17198 EFLAGS: 00010293
RAX: ffffffff8142af69 RBX: 000000007ffff75e RCX: ffff888024b00000
RDX: 0000000000000000 RSI: 000000007ffff75e RDI: 000000001fffffff
RBP: ffffc90002e175c8 R08: ffffffff8142af05 R09: 0000000000000000
R10: ffff88807384afe0 R11: ffffed100e7095ff R12: dffffc0000000000
R13: fffffffffffff75e R14: 000000007ffff75e R15: ffff888073800000
FS:  00005555669aa380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc12562f08 CR3: 0000000022a80000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (54):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/03 12:03 upstream f03359bca01b dd26401e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in __phys_addr
2024/01/06 23:33 upstream 95c8a35f1c01 d0304e9c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root kernel BUG in __phys_addr
2023/07/11 19:51 linux-next 8e4b7f2f3d60 2f19aa4f .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/05/03 21:05 upstream f03359bca01b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __phys_addr
2024/05/03 19:32 upstream f03359bca01b 375d4445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in __phys_addr
2024/05/03 13:54 upstream f03359bca01b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __phys_addr
2024/05/03 11:39 upstream f03359bca01b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __phys_addr
2024/05/02 19:22 upstream 49a73b1652c5 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __phys_addr
2024/05/03 16:53 linux-next 9221b2819b8a 375d4445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/04 10:56 linux-next 727900b675b7 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/04 09:13 linux-next 727900b675b7 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/04 06:39 linux-next 727900b675b7 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/03 23:16 linux-next 727900b675b7 fed899ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/03 07:06 linux-next c0b832517f62 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/02 21:13 linux-next c0b832517f62 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/02 21:05 linux-next c0b832517f62 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/02 21:05 linux-next c0b832517f62 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 15:47 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 13:48 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 13:22 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 12:36 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 11:28 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 11:28 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 01:12 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 01:12 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 01:10 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 23:59 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 20:51 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 18:22 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 17:57 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 17:57 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 16:22 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 07:22 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 00:20 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 22:09 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 22:03 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 20:55 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 20:55 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 18:51 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 08:49 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 08:10 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 07:07 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 00:29 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 22:49 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 16:45 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 14:12 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 08:00 linux-next a6bd6c933339 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 06:50 linux-next a6bd6c933339 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
* Struck through repros no longer work on HEAD.