syzbot


kernel BUG in __phys_addr (2)

Status: upstream: reported C repro on 2024/04/27 00:09
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+3c339e6f719df0a7faac@syzkaller.appspotmail.com
First crash: 12d, last: 11d
Bug presence (2)
Date Name Commit Repro Result
2024/04/27 linux-6.1.y (ToT) 6741e066ec76 C [report] kernel BUG in __phys_addr
2024/04/27 upstream (ToT) 5eb4573ea63d C Didn't crash
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in __phys_addr (2) bcachefs C error done 54 5d14h 298d 0/26 upstream: reported C repro on 2023/07/15 19:54
linux-6.1 kernel BUG in __phys_addr C done 2 335d 366d 3/3 fixed on 2023/07/17 13:09
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (6) raid 90 883d 1379d 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 1139d 1596d 0/1 upstream: reported C repro on 2019/12/26 02:01
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) 76 619d 1394d 0/1 auto-obsoleted due to no activity on 2022/12/26 22:17
upstream kernel BUG in __phys_addr net 1 383d 379d 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 11d 11d 0/3 upstream: reported C repro on 2024/04/27 21:08

Sample crash report:
loop0: detected capacity change from 0 to 4096
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:28!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3546 Comm: syz-executor103 Not tainted 6.1.87-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__phys_addr+0x158/0x170 arch/x86/mm/physaddr.c:28
Code: ff ff e8 cb dc 4c 00 48 c7 c7 40 0a fa 8c 4c 89 f6 4c 89 fa e8 19 a3 25 03 e9 49 ff ff ff e8 af dc 4c 00 0f 0b e8 a8 dc 4c 00 <0f> 0b e8 a1 dc 4c 00 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44
RSP: 0018:ffffc9000393fad8 EFLAGS: 00010293
RAX: ffffffff813db2b8 RBX: 0000000000000001 RCX: ffff888028ba9dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 1ffff1100f69a4cf R08: ffffffff813db208 R09: fffffbfff209345e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807b4d2000
R13: dffffc0000000000 R14: 000040800c200000 R15: 000000000000002e
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f32402b4130 CR3: 000000000ce8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 virt_to_folio include/linux/mm.h:898 [inline]
 kfree+0x42/0x190 mm/slab_common.c:999
 put_ntfs+0x8f/0x2b0 fs/ntfs3/super.c:444
 ntfs_put_super+0xb6/0x110 fs/ntfs3/super.c:486
 generic_shutdown_super+0x130/0x340 fs/super.c:501
 kill_block_super+0x7a/0xe0 fs/super.c:1459
 deactivate_locked_super+0xa0/0x110 fs/super.c:332
 cleanup_mnt+0x490/0x520 fs/namespace.c:1186
 task_work_run+0x246/0x300 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xa73/0x26a0 kernel/exit.c:869
 do_group_exit+0x202/0x2b0 kernel/exit.c:1019
 __do_sys_exit_group kernel/exit.c:1030 [inline]
 __se_sys_exit_group kernel/exit.c:1028 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1028
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f324021b749
Code: Unable to access opcode bytes at 0x7f324021b71f.
RSP: 002b:00007ffde74fe478 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f324021b749
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007f32402b62b0 R08: ffffffffffffffb8 R09: 002c6e6564646968
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f32402b62b0
R13: 0000000000000000 R14: 00007f32402b7020 R15: 00007f32401e9ca0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__phys_addr+0x158/0x170 arch/x86/mm/physaddr.c:28
Code: ff ff e8 cb dc 4c 00 48 c7 c7 40 0a fa 8c 4c 89 f6 4c 89 fa e8 19 a3 25 03 e9 49 ff ff ff e8 af dc 4c 00 0f 0b e8 a8 dc 4c 00 <0f> 0b e8 a1 dc 4c 00 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44
RSP: 0018:ffffc9000393fad8 EFLAGS: 00010293
RAX: ffffffff813db2b8 RBX: 0000000000000001 RCX: ffff888028ba9dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 1ffff1100f69a4cf R08: ffffffff813db208 R09: fffffbfff209345e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807b4d2000
R13: dffffc0000000000 R14: 000040800c200000 R15: 000000000000002e
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e9e2e8def8 CR3: 000000007eaa7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/27 01:00 linux-6.1.y 6741e066ec76 059e9963 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 22:37 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 22:35 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 22:35 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 22:35 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 22:35 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 06:06 linux-6.1.y 6741e066ec76 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 05:59 linux-6.1.y 6741e066ec76 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 00:11 linux-6.1.y 6741e066ec76 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 00:11 linux-6.1.y 6741e066ec76 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 00:08 linux-6.1.y 6741e066ec76 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
2024/04/27 00:08 linux-6.1.y 6741e066ec76 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __phys_addr
* Struck through repros no longer work on HEAD.