syzbot


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

Status: fixed on 2020/06/20 23:56
Reported-by: syzbot+b5b21861490b7cf13a2f@syzkaller.appspotmail.com
Fix commit: a3da2984a40b vt: fix unicode console freeing with a common interface
First crash: 1785d, last: 1644d
Fix bisection: fixed by (bisect log) :
commit a3da2984a40b2628d43a0b380e9b24d6fb74a76e
Author: Nicolas Pitre <nico@fluxnic.net>
Date: Sat May 2 15:01:07 2020 +0000

  vt: fix unicode console freeing with a common interface

  
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 1987d 2196d 12/28 fixed on 2019/06/14 18:22
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (6) raid 90 1079d 1575d 0/28 auto-closed as invalid on 2022/04/07 07:37
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! syz done 1 1972d 1972d 1/1 fixed on 2019/12/16 09:09
linux-4.14 kernel BUG at arch/x86/mm/physaddr.c:LINE! C inconclusive 23 1335d 1792d 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 1592d 1665d 15/28 fixed on 2020/07/17 17:58
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) kernel 4 1978d 1978d 0/28 auto-closed as invalid on 2019/10/25 08:46
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! overlayfs C 10 2201d 2233d 11/28 fixed on 2018/11/12 21:25
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) 76 815d 1590d 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 1699d 1734d 15/28 fixed on 2020/04/15 17:19

Sample crash report:
audit: type=1400 audit(1588920613.864:8): avc:  denied  { execmem } for  pid=6458 comm="syz-executor473" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:27!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6458 Comm: syz-executor473 Not tainted 4.19.121-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27
Code: 0d 7d 08 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 60 a9 37 00 48 85 db 75 0d e8 c6 a7 37 00 4c 89 e0 5b 5d 41 5c c3 e8 b9 a7 37 00 <0f> 0b e8 b2 a7 37 00 48 c7 c0 10 50 c7 88 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff88808923f8f0 EFLAGS: 00010093
RAX: ffff8880a5c54180 RBX: 0000000000000001 RCX: ffffffff813021d0
RDX: 0000000000000000 RSI: ffffffff813021e7 RDI: 0000000000000007
RBP: ffffc90085ae0000 R08: ffff8880a5c54180 R09: ffffed1015cc4733
R10: ffffed1015cc4732 R11: ffff8880ae623993 R12: 0000408005ae0000
R13: ffffffff83750f40 R14: 1ffff11011247f59 R15: ffff88812c27f200
FS:  00000000009fc880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004551c0 CR3: 00000000a0115000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 virt_to_head_page include/linux/mm.h:653 [inline]
 virt_to_cache mm/slab.c:399 [inline]
 kfree+0x77/0x220 mm/slab.c:3818
 vc_do_resize+0x10ac/0x1380 drivers/tty/vt/vt.c:1236
 vt_ioctl+0x10c1/0x2500 drivers/tty/vt/vt_ioctl.c:850
 tty_ioctl+0x7a1/0x1420 drivers/tty/tty_io.c:2669
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440279
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 5b 14 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe2244b278 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440279
RDX: 0000000020000040 RSI: 0000000000005609 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 000000000000000d R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b60
R13: 0000000000401bf0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace c2ffec05c440bed9 ]---
RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27
Code: 0d 7d 08 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 60 a9 37 00 48 85 db 75 0d e8 c6 a7 37 00 4c 89 e0 5b 5d 41 5c c3 e8 b9 a7 37 00 <0f> 0b e8 b2 a7 37 00 48 c7 c0 10 50 c7 88 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff88808923f8f0 EFLAGS: 00010093
RAX: ffff8880a5c54180 RBX: 0000000000000001 RCX: ffffffff813021d0
RDX: 0000000000000000 RSI: ffffffff813021e7 RDI: 0000000000000007
RBP: ffffc90085ae0000 R08: ffff8880a5c54180 R09: ffffed1015cc4733
R10: ffffed1015cc4732 R11: ffff8880ae623993 R12: 0000408005ae0000
R13: ffffffff83750f40 R14: 1ffff11011247f59 R15: ffff88812c27f200
FS:  00000000009fc880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004551c0 CR3: 00000000a0115000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (82):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/08 06:52 linux-4.19.y 84920cc7fbe1 6c70a1c2 .config console log report syz C ci2-linux-4-19
2020/05/02 14:40 linux-4.19.y 765675379b62 58da4c35 .config console log report syz C ci2-linux-4-19
2020/02/24 17:41 linux-4.19.y f25804f38984 1253d6f0 .config console log report syz C ci2-linux-4-19
2020/02/22 05:01 linux-4.19.y 4fccc2503536 2ffa6679 .config console log report syz C ci2-linux-4-19
2020/05/21 17:07 linux-4.19.y 1bab61d3e8cd 4afdfa20 .config console log report ci2-linux-4-19
2020/05/14 00:54 linux-4.19.y 033c4ea49a4b a885920d .config console log report ci2-linux-4-19
2020/05/13 22:27 linux-4.19.y 033c4ea49a4b a885920d .config console log report ci2-linux-4-19
2020/05/13 16:22 linux-4.19.y 033c4ea49a4b 9a6d42fb .config console log report ci2-linux-4-19
2020/05/13 10:25 linux-4.19.y 033c4ea49a4b 9a6d42fb .config console log report ci2-linux-4-19
2020/05/12 20:42 linux-4.19.y 033c4ea49a4b a44eb8f7 .config console log report ci2-linux-4-19
2020/05/12 18:15 linux-4.19.y 033c4ea49a4b a497a5b4 .config console log report ci2-linux-4-19
2020/05/12 06:41 linux-4.19.y 033c4ea49a4b 9eb09c40 .config console log report ci2-linux-4-19
2020/05/11 07:33 linux-4.19.y 033c4ea49a4b f8f57555 .config console log report ci2-linux-4-19
2020/05/10 22:57 linux-4.19.y 033c4ea49a4b 8742a2b9 .config console log report ci2-linux-4-19
2020/05/10 10:04 linux-4.19.y 033c4ea49a4b 8742a2b9 .config console log report ci2-linux-4-19
2020/05/10 00:46 linux-4.19.y 84920cc7fbe1 88cb3e92 .config console log report ci2-linux-4-19
2020/05/09 15:12 linux-4.19.y 84920cc7fbe1 88cb3e92 .config console log report ci2-linux-4-19
2020/05/09 04:27 linux-4.19.y 84920cc7fbe1 e97b06d3 .config console log report ci2-linux-4-19
2020/05/09 01:27 linux-4.19.y 84920cc7fbe1 e97b06d3 .config console log report ci2-linux-4-19
2020/05/08 23:11 linux-4.19.y 84920cc7fbe1 e97b06d3 .config console log report ci2-linux-4-19
2020/05/08 05:00 linux-4.19.y 84920cc7fbe1 6c70a1c2 .config console log report ci2-linux-4-19
2020/05/07 23:44 linux-4.19.y 84920cc7fbe1 6c70a1c2 .config console log report ci2-linux-4-19
2020/05/07 22:41 linux-4.19.y 84920cc7fbe1 6c70a1c2 .config console log report ci2-linux-4-19
2020/05/07 21:39 linux-4.19.y 84920cc7fbe1 98cbd87b .config console log report ci2-linux-4-19
2020/05/07 15:52 linux-4.19.y 84920cc7fbe1 98cbd87b .config console log report ci2-linux-4-19
2020/05/07 10:49 linux-4.19.y 84920cc7fbe1 98cbd87b .config console log report ci2-linux-4-19
2020/05/07 03:07 linux-4.19.y 84920cc7fbe1 4618eb2d .config console log report ci2-linux-4-19
2020/05/06 21:43 linux-4.19.y 84920cc7fbe1 4618eb2d .config console log report ci2-linux-4-19
2020/05/06 01:21 linux-4.19.y fdc072324f3c 35b8eb30 .config console log report ci2-linux-4-19
2020/05/05 13:35 linux-4.19.y fdc072324f3c 4b76dd25 .config console log report ci2-linux-4-19
2020/05/05 11:45 linux-4.19.y fdc072324f3c 9941337c .config console log report ci2-linux-4-19
2020/05/04 21:47 linux-4.19.y fdc072324f3c 9941337c .config console log report ci2-linux-4-19
2020/05/04 20:25 linux-4.19.y fdc072324f3c 9941337c .config console log report ci2-linux-4-19
2020/05/04 16:26 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/04 16:17 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/04 15:39 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/04 07:12 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/04 06:59 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/03 19:07 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/03 18:31 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/03 12:57 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/03 12:37 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/03 12:27 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/02 23:04 linux-4.19.y fdc072324f3c 5457883a .config console log report ci2-linux-4-19
2020/05/02 11:56 linux-4.19.y 765675379b62 58da4c35 .config console log report ci2-linux-4-19
2020/05/02 11:17 linux-4.19.y 765675379b62 58da4c35 .config console log report ci2-linux-4-19
2020/03/11 02:51 linux-4.19.y 7472c4028e23 35f53e45 .config console log report ci2-linux-4-19
2020/03/06 06:24 linux-4.19.y 7472c4028e23 b655d91b .config console log report ci2-linux-4-19
2020/03/04 10:44 linux-4.19.y a083db76118d 712198ac .config console log report ci2-linux-4-19
2020/01/02 03:38 linux-4.19.y c7ecf3e3a71c 25a0186e .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.