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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <00000000000020a2f305ff76ef34@google.com>
Date:   Sat, 01 Jul 2023 18:26:06 -0700
From:   syzbot <syzbot+6c0c8f9846801f6fbec0@...kaller.appspotmail.com>
To:     akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
        linux-mm@...ck.org, syzkaller-bugs@...glegroups.com
Subject: [syzbot] [mm?] general protection fault in mt_validate

Hello,

syzbot found the following issue on:

HEAD commit:    f8566aa4f176 Merge tag 'x86-urgent-2023-07-01' of git://gi..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1776ecb8a80000
kernel config:  https://syzkaller.appspot.com/x/.config?x=7406f415f386e786
dashboard link: https://syzkaller.appspot.com/bug?extid=6c0c8f9846801f6fbec0
compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=131e8548a80000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=141ca8b8a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/afab0dafcce3/disk-f8566aa4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6b77678d9c2a/vmlinux-f8566aa4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/ec2a20a04171/bzImage-f8566aa4.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/1bd3a6492d61/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6c0c8f9846801f6fbec0@...kaller.appspotmail.com

RSP: 002b:00007f2c3f367168 EFLAGS: 00000246 ORIG_RAX: 000000000000000b
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f2c3f3bb9d7
RDX: 0000000000008000 RSI: 0000000000008000 RDI: 00007f2c36f26000
RBP: 00007f2c36f26000 R08: 0000000000000000 R09: 0000000000000280
R10: 0000000000008000 R11: 0000000000000246 R12: 00007f2c3f3676b8
R13: 00007f2c3f367180 R14: 00007f2c3f3671c0 R15: 00007f2c3f4407a8
 </TASK>
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 5347 Comm: syz-executor152 Not tainted 6.4.0-syzkaller-10062-gf8566aa4f176 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:mas_validate_gaps lib/maple_tree.c:7002 [inline]
RIP: 0010:mt_validate+0x32ac/0x4370 lib/maple_tree.c:7224
Code: 89 ee e8 97 18 77 f7 49 83 fd 06 0f 84 a6 06 00 00 e8 48 1c 77 f7 49 01 de 48 ba 00 00 00 00 00 fc ff df 4c 89 f0 48 c1 e8 03 <80> 3c 10 00 0f 85 4b 10 00 00 4d 8b 2e 4c 89 ff 4c 89 ee e8 dc 17
RSP: 0018:ffffc9000423f940 EFLAGS: 00010256
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffffff8a0db288 RDI: 0000000000000007
RBP: ffff888028b33600 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffff888028b33600 R14: 0000000000000000 R15: ffff800216450000
FS:  00007f2c3f367700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2c3f3fd000 CR3: 0000000015ff7000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 validate_mm+0x9d/0x470 mm/mmap.c:300
 do_vmi_align_munmap+0x1199/0x1680 mm/mmap.c:2561
 do_vmi_munmap+0x266/0x430 mm/mmap.c:2619
 __vm_munmap+0x137/0x380 mm/mmap.c:2899
 __do_sys_munmap mm/mmap.c:2916 [inline]
 __se_sys_munmap mm/mmap.c:2913 [inline]
 __x64_sys_munmap+0x62/0x80 mm/mmap.c:2913
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2c3f3bb9d7
Code: 00 00 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb 85 66 2e 0f 1f 84 00 00 00 00 00 90 b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2c3f367168 EFLAGS: 00000246 ORIG_RAX: 000000000000000b
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f2c3f3bb9d7
RDX: 0000000000008000 RSI: 0000000000008000 RDI: 00007f2c36f26000
RBP: 00007f2c36f26000 R08: 0000000000000000 R09: 0000000000000280
R10: 0000000000008000 R11: 0000000000000246 R12: 00007f2c3f3676b8
R13: 00007f2c3f367180 R14: 00007f2c3f3671c0 R15: 00007f2c3f4407a8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mas_validate_gaps lib/maple_tree.c:7002 [inline]
RIP: 0010:mt_validate+0x32ac/0x4370 lib/maple_tree.c:7224
Code: 89 ee e8 97 18 77 f7 49 83 fd 06 0f 84 a6 06 00 00 e8 48 1c 77 f7 49 01 de 48 ba 00 00 00 00 00 fc ff df 4c 89 f0 48 c1 e8 03 <80> 3c 10 00 0f 85 4b 10 00 00 4d 8b 2e 4c 89 ff 4c 89 ee e8 dc 17
RSP: 0018:ffffc9000423f940 EFLAGS: 00010256
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffffff8a0db288 RDI: 0000000000000007
RBP: ffff888028b33600 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffff888028b33600 R14: 0000000000000000 R15: ffff800216450000
FS:  00007f2c3f367700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2c3f3fd000 CR3: 0000000015ff7000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	89 ee                	mov    %ebp,%esi
   2:	e8 97 18 77 f7       	callq  0xf777189e
   7:	49 83 fd 06          	cmp    $0x6,%r13
   b:	0f 84 a6 06 00 00    	je     0x6b7
  11:	e8 48 1c 77 f7       	callq  0xf7771c5e
  16:	49 01 de             	add    %rbx,%r14
  19:	48 ba 00 00 00 00 00 	movabs $0xdffffc0000000000,%rdx
  20:	fc ff df
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 10 00          	cmpb   $0x0,(%rax,%rdx,1) <-- trapping instruction
  2e:	0f 85 4b 10 00 00    	jne    0x107f
  34:	4d 8b 2e             	mov    (%r14),%r13
  37:	4c 89 ff             	mov    %r15,%rdi
  3a:	4c 89 ee             	mov    %r13,%rsi
  3d:	e8                   	.byte 0xe8
  3e:	dc 17                	fcoml  (%rdi)


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

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