syzbot


WARNING in fault_dirty_shared_page

Status: auto-obsoleted due to no activity on 2023/10/11 15:34
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+6a684137d3f229008920@syzkaller.appspotmail.com
First crash: 200d, last: 200d
Cause bisection: introduced by (bisect log) :
commit 88e2667632d43928d3ed50d0163ecd73aaa2d455
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date: Mon Jul 24 18:54:10 2023 +0000

  mm: handle faults that merely update the accessed bit under the VMA lock

Crash: WARNING: bad unlock balance in fault_dirty_shared_page (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] WARNING in fault_dirty_shared_page 0 (1) 2023/08/16 14:57
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/08/27 20:43 1h04m retest repro linux-next OK log

Sample crash report:
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(tmp < 0): count = 0xffffffffffffff00, magic = 0xffff888029c88130, owner = 0x1, curr 0xffff88801d1c5940, list empty
WARNING: CPU: 0 PID: 5046 at kernel/locking/rwsem.c:1348 __up_read+0x330/0x750 kernel/locking/rwsem.c:1348
Modules linked in:
CPU: 0 PID: 5046 Comm: syz-executor231 Not tainted 6.5.0-rc5-next-20230809-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:__up_read+0x330/0x750 kernel/locking/rwsem.c:1348
Code: 80 3c 02 00 0f 85 e2 03 00 00 48 8b 13 4d 89 f1 55 4d 89 e0 4c 89 f9 48 c7 c6 e0 9c 6c 8a 48 c7 c7 40 9b 6c 8a e8 d0 d6 e6 ff <0f> 0b 58 e9 12 ff ff ff be 08 00 00 00 4c 89 e7 e8 9b e2 75 00 4c
RSP: 0000:ffffc90003a1faf0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff888029c88130 RCX: 0000000000000000
RDX: ffff88801d1c5940 RSI: ffffffff814e00c6 RDI: 0000000000000001
RBP: ffffffff8a6c9a80 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001
R13: 1ffff92000743f62 R14: ffff88801d1c5940 R15: ffff888029c88130
FS:  0000555555dea380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001248 CR3: 000000007904e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 mmap_read_unlock include/linux/mmap_lock.h:173 [inline]
 maybe_unlock_mmap_for_io mm/internal.h:709 [inline]
 fault_dirty_shared_page+0x378/0x530 mm/memory.c:3004
 wp_page_shared mm/memory.c:3324 [inline]
 do_wp_page+0xd72/0x3550 mm/memory.c:3393
 handle_pte_fault mm/memory.c:5029 [inline]
 __handle_mm_fault+0x180f/0x4180 mm/memory.c:5154
 handle_mm_fault+0x47a/0xa00 mm/memory.c:5319
 do_user_addr_fault+0x2e7/0xfe0 arch/x86/mm/fault.c:1342
 handle_page_fault arch/x86/mm/fault.c:1483 [inline]
 exc_page_fault+0x5c/0xd0 arch/x86/mm/fault.c:1539
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x7f28c7f77726
Code: 01 00 20 80 00 00 20 48 c7 04 25 48 01 00 20 01 00 00 00 48 8b 35 ba 79 0a 00 e8 75 07 03 00 31 d2 66 0f ef c0 b9 0a 00 00 00 <48> 89 14 25 48 12 00 20 ba a0 12 00 20 48 b8 73 65 63 75 72 69 74
RSP: 002b:00007ffc9f9d1e90 EFLAGS: 00010246
RAX: 0000000000000001 RBX: 000000000000002a RCX: 000000000000000a
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007f28c801b610 R08: 0000000000000000 R09: 65732f636f72702f
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc9f9d20c8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/12 15:34 linux-next 21ef7b1e17d0 39990d51 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in fault_dirty_shared_page
2023/08/12 14:49 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in fault_dirty_shared_page
* Struck through repros no longer work on HEAD.