syzbot


kernel BUG in do_page_mkwrite

Status: auto-obsoleted due to no activity on 2024/08/11 13:38
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+cfba1abcb2cf7b39a320@syzkaller.appspotmail.com
First crash: 533d, last: 270d
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
  
Fix bisection: failed (error log, bisect log)
  
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 (8)
Created Duration User Patch Repo Result
2024/07/12 15:40 28m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/06/01 14:32 24m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/05/03 13:14 22m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/03/23 09:33 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
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 (3)
Created Duration User Patch Repo Result
2024/07/05 20:05 12h02m bisect fix upstream error job log
2024/02/28 12:21 1h34m bisect fix upstream OK (0) job log log
2023/12/07 00:28 1h37m bisect fix upstream OK (0) job log log

Sample crash report:
 drm_fb_helper_single_fb_probe drivers/gpu/drm/drm_fb_helper.c:1668 [inline]
 __drm_fb_helper_initial_config_and_unlock+0xc31/0x1600 drivers/gpu/drm/drm_fb_helper.c:1846
 drm_fb_helper_initial_config drivers/gpu/drm/drm_fb_helper.c:1936 [inline]
 drm_fb_helper_initial_config+0x44/0x60 drivers/gpu/drm/drm_fb_helper.c:1928
 drm_fbdev_generic_client_hotplug+0x1a7/0x270 drivers/gpu/drm/drm_fbdev_generic.c:280
 drm_client_register+0x195/0x280 drivers/gpu/drm/drm_client.c:149
 drm_fbdev_generic_setup+0x11c/0x330 drivers/gpu/drm/drm_fbdev_generic.c:342
 vkms_create drivers/gpu/drm/vkms/vkms_drv.c:208 [inline]
 vkms_init+0x625/0x760 drivers/gpu/drm/vkms/vkms_drv.c:234
 do_one_initcall+0x117/0x630 init/main.c:1232
 do_initcall_level init/main.c:1294 [inline]
 do_initcalls init/main.c:1310 [inline]
 do_basic_setup init/main.c:1329 [inline]
 kernel_init_freeable+0x5bd/0x8f0 init/main.c:1546
page_owner free stack trace missing
------------[ cut here ]------------
kernel BUG at mm/memory.c:2955!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5023 Comm: syz-executor222 Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:do_page_mkwrite+0x468/0x680 mm/memory.c:2955
Code: de e8 6c 7c c1 ff 84 db 0f 85 c1 00 00 00 48 89 eb e9 76 fe ff ff e8 27 81 c1 ff 48 c7 c6 a0 e7 78 8a 48 89 ef e8 88 3d fe ff <0f> 0b 41 bc 02 00 00 00 e9 99 fe ff ff e8 06 81 c1 ff be 0c 04 00
RSP: 0018:ffffc9000399fba8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888029153b80 RSI: ffffffff81c48c48 RDI: ffffffff8ac851a0
RBP: ffffea00051fb440 R08: 0000000000000000 R09: fffffbfff1d5748a
R10: ffffffff8eaba457 R11: 1ffffffff1936441 R12: 0000000000000200
R13: ffffea00051fb440 R14: 0000000000000a55 R15: 0000000000000000
FS:  00005555560ab380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000008 CR3: 000000001fa3d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 wp_page_shared mm/memory.c:3294 [inline]
 do_wp_page+0x3a0/0x3710 mm/memory.c:3376
 handle_pte_fault mm/memory.c:4955 [inline]
 __handle_mm_fault+0x1af7/0x3b80 mm/memory.c:5079
 handle_mm_fault+0x2ab/0x9d0 mm/memory.c:5233
 do_user_addr_fault+0x446/0xfc0 arch/x86/mm/fault.c:1392
 handle_page_fault arch/x86/mm/fault.c:1486 [inline]
 exc_page_fault+0x5c/0xd0 arch/x86/mm/fault.c:1542
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x7faa4440f726
Code: 00 01 ba 00 60 b3 00 31 c0 68 00 c0 2f 00 41 b8 11 80 02 00 be 00 00 00 20 4c 8b 0d bc 69 0a 00 bf 09 00 00 00 e8 2a fc 02 00 <c6> 04 25 08 00 00 20 00 45 31 c0 48 b8 2f 64 65 76 2f 66 62 30 b9
RSP: 002b:00007ffc01834060 EFLAGS: 00010217
RAX: 0000000020000000 RBX: 00007ffc01834238 RCX: 00007faa4443f369
RDX: 0000000001000006 RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007faa444b2610 R08: 0000000000000004 R09: 00000000002fc000
R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc01834228 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:do_page_mkwrite+0x468/0x680 mm/memory.c:2955
Code: de e8 6c 7c c1 ff 84 db 0f 85 c1 00 00 00 48 89 eb e9 76 fe ff ff e8 27 81 c1 ff 48 c7 c6 a0 e7 78 8a 48 89 ef e8 88 3d fe ff <0f> 0b 41 bc 02 00 00 00 e9 99 fe ff ff e8 06 81 c1 ff be 0c 04 00
RSP: 0018:ffffc9000399fba8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888029153b80 RSI: ffffffff81c48c48 RDI: ffffffff8ac851a0
RBP: ffffea00051fb440 R08: 0000000000000000 R09: fffffbfff1d5748a
R10: ffffffff8eaba457 R11: 1ffffffff1936441 R12: 0000000000000200
R13: ffffea00051fb440 R14: 0000000000000a55 R15: 0000000000000000
FS:  00005555560ab380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056269e66d0e8 CR3: 000000001fa3d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/29 00:09 upstream 727dbda16b83 7ba13a15 .config strace log report syz C 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
2024/04/06 19:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in do_page_mkwrite
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/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
2024/04/19 09:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in do_page_mkwrite
2024/04/12 15:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fec50db7033e 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in do_page_mkwrite
2024/04/09 17:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in do_page_mkwrite
2024/04/06 18:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 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.