syzbot


kernel BUG at arch/x86/mm/physaddr.c:LINE!

Status: fixed on 2018/11/12 21:25
Subsystems: overlayfs
[Documentation on labels]
Reported-by: syzbot+ff03fe05c717b82502d0@syzkaller.appspotmail.com
Fix commit: babf4770be0a ovl: fix error handling in ovl_verify_set_fh()
First crash: 2041d, last: 1992d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 4.19 000/205] 4.19.3-stable review 214 (214) 2018/11/21 08:05
[PATCH 4.18 000/171] 4.18.20-stable review 176 (176) 2018/11/20 20:40
[PATCH 4.14 000/124] 4.14.82-stable review 131 (131) 2018/11/20 20:39
kernel BUG at arch/x86/mm/physaddr.c:LINE! 3 (4) 2018/10/10 16:08
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (2) media C done 522 1777d 1987d 12/26 fixed on 2019/06/14 18:22
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (6) raid 90 869d 1366d 0/26 auto-closed as invalid on 2022/04/07 07:37
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (2) C done 82 1435d 1575d 1/1 fixed on 2020/06/20 23:56
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! syz done 1 1762d 1762d 1/1 fixed on 2019/12/16 09:09
linux-4.14 kernel BUG at arch/x86/mm/physaddr.c:LINE! C inconclusive 23 1126d 1582d 0/1 upstream: reported C repro on 2019/12/26 02:01
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (5) serial C done 241 1382d 1455d 15/26 fixed on 2020/07/17 17:58
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) kernel 4 1768d 1768d 0/26 auto-closed as invalid on 2019/10/25 08:46
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) 76 606d 1381d 0/1 auto-obsoleted due to no activity on 2022/12/26 22:17
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (4) audit C 18 1490d 1524d 15/26 fixed on 2020/04/15 17:19

Sample crash report:
RBP: 00007ffc881226c0 R08: 0000000020000100 R09: 0000000000000100
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: ffffffffffffffff R14: 0000000000000000 R15: 0000000000000000
overlayfs: failed to verify origin (syzkaller.Ry8w8Y/file0, ino=16483, err=-12)
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:22!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5918 Comm: syz-executor189 Not tainted 4.19.0-rc7+ #53
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__phys_addr+0xff/0x120 arch/x86/mm/physaddr.c:22
Code: 3c 02 00 75 31 4c 8b 25 ff c3 ee 07 48 89 de bf ff ff ff 1f e8 a2 7a 46 00 49 01 dc 48 81 fb ff ff ff 1f 76 a7 e8 61 79 46 00 <0f> 0b e8 6a e9 89 00 e9 7a ff ff ff e8 c0 e9 89 00 eb c8 0f 1f 40
RSP: 0018:ffff8801c3387770 EFLAGS: 00010093
RAX: ffff8801c323a080 RBX: 000000007ffffff4 RCX: ffffffff81385c1e
RDX: 0000000000000000 RSI: ffffffff81385c2f RDI: 0000000000000007
RBP: ffff8801c3387788 R08: ffff8801c323a080 R09: ffffed003b5c4fe8
R10: ffffed003b5c4fe8 R11: ffff8801dae27f47 R12: 000000007ffffff4
R13: 0000000000000001 R14: ffffffff882f8c80 R15: 0000000000004063
FS:  000000000148d880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000619570 CR3: 00000001c4ab0000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 virt_to_head_page include/linux/mm.h:658 [inline]
 virt_to_cache mm/slab.c:399 [inline]
 kfree+0x7b/0x230 mm/slab.c:3809
 ovl_verify_set_fh+0xba/0x180 fs/overlayfs/namei.c:435
 ovl_verify_origin fs/overlayfs/overlayfs.h:316 [inline]
 ovl_get_indexdir fs/overlayfs/super.c:1139 [inline]
 ovl_fill_super+0x3026/0x3f7b fs/overlayfs/super.c:1441
 mount_nodev+0x6b/0x110 fs/super.c:1204
 ovl_mount+0x2c/0x40 fs/overlayfs/super.c:1518
 mount_fs+0xae/0x31d fs/super.c:1261
 vfs_kern_mount.part.35+0xdc/0x4f0 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2457 [inline]
 do_mount+0x581/0x31f0 fs/namespace.c:2787
 ksys_mount+0x12d/0x140 fs/namespace.c:3003
 __do_sys_mount fs/namespace.c:3017 [inline]
 __se_sys_mount fs/namespace.c:3014 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3014
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4418e9
Code: 26 02 00 85 c0 b8 00 00 00 00 48 0f 44 c3 5b c3 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 0f 83 cb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc88122678 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004418e9
RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 0000000000400000
RBP: 00007ffc881226c0 R08: 0000000020000100 R09: 0000000000000100
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: ffffffffffffffff R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 25e838f694c8a24f ]---
RIP: 0010:__phys_addr+0xff/0x120 arch/x86/mm/physaddr.c:22
Code: 3c 02 00 75 31 4c 8b 25 ff c3 ee 07 48 89 de bf ff ff ff 1f e8 a2 7a 46 00 49 01 dc 48 81 fb ff ff ff 1f 76 a7 e8 61 79 46 00 <0f> 0b e8 6a e9 89 00 e9 7a ff ff ff e8 c0 e9 89 00 eb c8 0f 1f 40
RSP: 0018:ffff8801c3387770 EFLAGS: 00010093
RAX: ffff8801c323a080 RBX: 000000007ffffff4 RCX: ffffffff81385c1e
RDX: 0000000000000000 RSI: ffffffff81385c2f RDI: 0000000000000007
RBP: ffff8801c3387788 R08: ffff8801c323a080 R09: ffffed003b5c4fe8
R10: ffffed003b5c4fe8 R11: ffff8801dae27f47 R12: 000000007ffffff4
R13: 0000000000000001 R14: ffffffff882f8c80 R15: 0000000000004063
FS:  000000000148d880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000619570 CR3: 00000001c4ab0000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/09 01:47 upstream 0854ba5ff5c9 8b311eaf .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/10/29 05:45 upstream dad4f140edaa 9ca2afa1 .config console log report ci-upstream-kasan-gce-root
2018/10/24 09:19 upstream 44786880df19 a8292de9 .config console log report ci-upstream-kasan-gce-selinux-root
2018/10/08 21:38 upstream 0854ba5ff5c9 8b311eaf .config console log report ci-upstream-kasan-gce-selinux-root
2018/10/05 05:44 upstream 10be83cc6418 8b311eaf .config console log report ci-upstream-kasan-gce-smack-root
2018/10/04 20:03 upstream 10be83cc6418 8b311eaf .config console log report ci-upstream-kasan-gce-smack-root
2018/09/23 23:56 upstream 6bf4ca7fbc85 28d9ac76 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/11 18:08 linux-next 442b8cea2477 7b5f8621 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/02 01:42 linux-next 4db9d11bcbef 1f38e9ae .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/15 13:25 linux-next ca0591d03a2d caf12900 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.