syzbot


kernel BUG in do_page_mkwrite

Status: upstream: reported C repro on 2023/08/16 16:56
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+cfba1abcb2cf7b39a320@syzkaller.appspotmail.com
First crash: 203d, last: 5d17h
Cause bisection: introduced by (bisect log) :
commit a5b44c4adb1699661d22e5152fb26885f30a2e4c
Author: Thomas Zimmermann <tzimmermann@suse.de>
Date: Mon Mar 20 15:07:44 2023 +0000

  drm/fbdev-generic: Always use shadow buffering

Crash: kernel BUG in do_page_mkwrite (log)
Repro: C syz .config
  
Discussions (4)
Title Replies (including bot) Last reply
[syzbot] Monthly mm report (Jan 2024) 0 (1) 2024/01/17 09:21
[syzbot] Monthly mm report (Nov 2023) 0 (1) 2023/11/15 03:00
[syzbot] Monthly mm report (Sep 2023) 0 (1) 2023/09/11 10:07
[syzbot] [mm?] kernel BUG in do_page_mkwrite 0 (1) 2023/08/16 16:56
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/01/10 05:34 38m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/11/20 11:37 1h11m retest repro upstream OK log
2023/11/01 04:41 17m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/11/01 03:48 45m retest repro upstream OK log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/02/28 12:21 1h34m bisect fix upstream job log (0) log
2023/12/07 00:28 1h37m bisect fix upstream job log (0) log

Sample crash report:
raw: 05ffc00000000802 0000000000000000 dead000000000122 ffff0000c8de35a0
raw: 00000000000002fc 0000000000000000 0000000300000000 0000000000000000
page dumped because: VM_BUG_ON_PAGE(!PageLocked(page))
------------[ cut here ]------------
kernel BUG at mm/memory.c:2955!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 5988 Comm: syz-executor138 Not tainted 6.5.0-rc7-syzkaller-gfe4469582053 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : do_page_mkwrite+0x35c/0x37c mm/memory.c:2955
lr : do_page_mkwrite+0x35c/0x37c mm/memory.c:2955
sp : ffff8000968d76d0
x29: ffff8000968d76d0 x28: fffffc0003296180 x27: dfff800000000000
x26: ffff0000c79ca000 x25: 1ffff00012d1af8f x24: 0000000000000000
x23: dfff800000000000 x22: 05ffc00000000802 x21: 05ffc00000000802
x20: 0000000000000200 x19: fffffc0003296180 x18: 1fffe0003683f1c6
x17: 0000000000000000 x16: ffff80008a572e30 x15: 0000000000000001
x14: 1fffe0003683f22a x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
x8 : ffff0000db660000 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff8000968d6f58 x4 : ffff80008e17f000 x3 : ffff8000805a25e4
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000036
Call trace:
 do_page_mkwrite+0x35c/0x37c mm/memory.c:2955
 wp_page_shared mm/memory.c:3294 [inline]
 do_wp_page+0x40c/0x2c40 mm/memory.c:3376
 handle_pte_fault mm/memory.c:4955 [inline]
 __handle_mm_fault mm/memory.c:5079 [inline]
 handle_mm_fault+0x11a0/0x4708 mm/memory.c:5233
 __do_page_fault arch/arm64/mm/fault.c:513 [inline]
 do_page_fault+0x4c8/0xa88 arch/arm64/mm/fault.c:627
 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:847
 el0_da+0x64/0x17c arch/arm64/kernel/entry-common.c:546
 el0t_64_sync_handler+0xcc/0xfc arch/arm64/kernel/entry-common.c:699
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591
Code: 9004f6e1 91200021 aa1303e0 97ff3350 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/25 09:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in do_page_mkwrite
2023/08/29 00:09 upstream 727dbda16b83 7ba13a15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in do_page_mkwrite
2023/08/14 16:05 upstream 2ccdd1b13c59 39990d51 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in do_page_mkwrite
2023/09/15 04:36 upstream 9fdfb15a3dbf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in do_page_mkwrite
2023/09/12 12:49 upstream 0bb80ecc33a8 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in do_page_mkwrite
2023/09/01 02:02 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in do_page_mkwrite
2023/10/18 00:43 upstream 213f891525c2 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 kernel BUG in do_page_mkwrite
2023/08/14 14:25 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in do_page_mkwrite
2023/12/18 14:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0bcda4cd6851 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in do_page_mkwrite
2023/11/06 05:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in do_page_mkwrite
2023/10/08 09:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 19af4a4ed414 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in do_page_mkwrite
* Struck through repros no longer work on HEAD.