syzbot


usb-testing boot error: kernel BUG in __phys_addr

Status: upstream: reported on 2022/08/15 18:01
Reported-by: syzbot+005efde5e97744047fe4@syzkaller.appspotmail.com
First crash: 49d, last: 33d
Patch testing requests:
Created Duration User Patch Repo Result
2022/08/15 19:20 8m linux@roeck-us.net patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.0-rc1 OK
2022/08/15 18:12 11m linux@roeck-us.net https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git fc4d146e8d7d25ef88d409bea1f2e9aff7f30635 OK

Sample crash report:
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:28!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1191 Comm: udevadm Not tainted 6.0.0-rc1-syzkaller-00047-g10174220f55a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:__phys_addr+0xd3/0x140 arch/x86/mm/physaddr.c:28
Code: e3 44 89 e9 31 ff 48 d3 eb 48 89 de e8 66 85 33 00 48 85 db 75 0f e8 7c 88 33 00 4c 89 e0 5b 5d 41 5c 41 5d c3 e8 6d 88 33 00 <0f> 0b e8 66 88 33 00 48 c7 c0 10 c0 84 87 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90002ecfc48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff000000000000 RCX: 0000000000000000
RDX: ffff88811c8e8000 RSI: ffffffff81128083 RDI: 0000000000000006
RBP: ffff000080000000 R08: 0000000000000006 R09: ffff000080000000
R10: ffff778000000000 R11: 0000000000000000 R12: ffff778000000000
R13: ffffc90002ecfcb0 R14: ffff000000000000 R15: 0000000000000000
FS:  00007fd47b91f840(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005644dbead008 CR3: 000000011c31e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 virt_to_folio include/linux/mm.h:856 [inline]
 virt_to_slab mm/kasan/../slab.h:175 [inline]
 qlink_to_cache mm/kasan/quarantine.c:131 [inline]
 qlist_free_all+0x86/0x170 mm/kasan/quarantine.c:184
 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294
 __kasan_slab_alloc+0x78/0x80 mm/kasan/common.c:447
 kasan_slab_alloc include/linux/kasan.h:224 [inline]
 slab_post_alloc_hook mm/slab.h:727 [inline]
 slab_alloc_node mm/slub.c:3243 [inline]
 slab_alloc mm/slub.c:3251 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3258 [inline]
 kmem_cache_alloc+0x354/0x4a0 mm/slub.c:3268
 getname_flags.part.0+0x50/0x4f0 fs/namei.c:139
 getname_flags include/linux/audit.h:320 [inline]
 getname+0x8e/0xd0 fs/namei.c:218
 do_sys_openat2+0xf5/0x4c0 fs/open.c:1305
 do_sys_open fs/open.c:1327 [inline]
 __do_sys_openat fs/open.c:1343 [inline]
 __se_sys_openat fs/open.c:1338 [inline]
 __x64_sys_openat+0x13f/0x1f0 fs/open.c:1338
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd47ba7b5a4
Code: f9 41 89 f0 41 83 e2 40 75 2c 89 f0 25 00 00 41 00 3d 00 00 41 00 74 1e 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2c c3 0f 1f 00 48 8d 44 24 08 c7 44 24 b8 10
RSP: 002b:00007ffe4b8877a8 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00005644dbe94930 RCX: 00007fd47ba7b5a4
RDX: 0000000000090800 RSI: 00007ffe4b8877d8 RDI: 00000000ffffff9c
RBP: 00007ffe4b8877d0 R08: 0000000000090800 R09: 00007ffe4b8877d8
R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000
R13: 00007ffe4b8877d8 R14: 00005644dbe9513b R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__phys_addr+0xd3/0x140 arch/x86/mm/physaddr.c:28
Code: e3 44 89 e9 31 ff 48 d3 eb 48 89 de e8 66 85 33 00 48 85 db 75 0f e8 7c 88 33 00 4c 89 e0 5b 5d 41 5c 41 5d c3 e8 6d 88 33 00 <0f> 0b e8 66 88 33 00 48 c7 c0 10 c0 84 87 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90002ecfc48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff000000000000 RCX: 0000000000000000
RDX: ffff88811c8e8000 RSI: ffffffff81128083 RDI: 0000000000000006
RBP: ffff000080000000 R08: 0000000000000006 R09: ffff000080000000
R10: ffff778000000000 R11: 0000000000000000 R12: ffff778000000000
R13: ffffc90002ecfcb0 R14: ffff000000000000 R15: 0000000000000000
FS:  00007fd47b91f840(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005644dbead008 CR3: 000000011c31e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-usb 2022/08/31 10:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 10174220f55a 51e54e30 .config log report usb-testing boot error: kernel BUG in __phys_addr
ci2-upstream-usb 2022/08/18 08:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 568035b01cfb d58e263f .config log report usb-testing boot error: kernel BUG in __phys_addr
ci2-upstream-usb 2022/08/17 08:04 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 568035b01cfb 4e72d229 .config log report usb-testing boot error: kernel BUG in __phys_addr
ci2-upstream-usb 2022/08/15 10:06 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 568035b01cfb 8dfcaa3d .config log report usb-testing boot error: kernel BUG in __phys_addr
* Struck through repros no longer work on HEAD.