lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 16 Aug 2023 07:57:07 -0700
From:   syzbot <syzbot+6a684137d3f229008920@...kaller.appspotmail.com>
To:     akpm@...ux-foundation.org, boqun.feng@...il.com,
        linux-kernel@...r.kernel.org, longman@...hat.com, mingo@...hat.com,
        peterz@...radead.org, syzkaller-bugs@...glegroups.com,
        will@...nel.org, willy@...radead.org
Subject: [syzbot] [kernel?] WARNING in fault_dirty_shared_page

Hello,

syzbot found the following issue on:

HEAD commit:    21ef7b1e17d0 Add linux-next specific files for 20230809
git tree:       linux-next
console+strace: https://syzkaller.appspot.com/x/log.txt?x=14fe4e3ba80000
kernel config:  https://syzkaller.appspot.com/x/.config?x=28e9e38cc16e8f0
dashboard link: https://syzkaller.appspot.com/bug?extid=6a684137d3f229008920
compiler:       gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=10185a3ba80000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=11e6c569a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e961d9a9b52d/disk-21ef7b1e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f5c9bb17b02c/vmlinux-21ef7b1e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/ebef5bdf7465/bzImage-21ef7b1e.xz

The issue was bisected to:

commit 88e2667632d43928d3ed50d0163ecd73aaa2d455
Author: Matthew Wilcox (Oracle) <willy@...radead.org>
Date:   Mon Jul 24 18:54:10 2023 +0000

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

bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=11db2763a80000
final oops:     https://syzkaller.appspot.com/x/report.txt?x=13db2763a80000
console output: https://syzkaller.appspot.com/x/log.txt?x=15db2763a80000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6a684137d3f229008920@...kaller.appspotmail.com
Fixes: 88e2667632d4 ("mm: handle faults that merely update the accessed bit under the VMA lock")

------------[ 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>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@...glegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
For information about bisection process see: https://goo.gl/tpsmEJ#bisection

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ