linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* WARNING in vma_merge
@ 2023-09-07 21:21 Sanan Hasanov
  2023-09-07 21:22 ` Matthew Wilcox
  0 siblings, 1 reply; 4+ messages in thread
From: Sanan Hasanov @ 2023-09-07 21:21 UTC (permalink / raw)
  To: akpm, linux-mm, linux-kernel; +Cc: syzkaller, contact

Good day, dear maintainers,

We found a bug using a modified kernel configuration file used by syzbot.

We enhanced the coverage of the configuration file using our tool, klocalizer.

Kernel Branch: 6.3.0-next-20230505
Kernel Config: https://drive.google.com/file/d/1pJaf39GNF64KX1Ac_sCfA89x13-IEGbB/view?usp=sharing
Reproducer: https://drive.google.com/file/d/12qTKfwYWDB2U3vCJoCIQYZSkmNxgmCWa/view?usp=sharing

Thank you!

Best regards,
Sanan Hasanov

------------[ cut here ]------------
WARNING: CPU: 2 PID: 20500 at mm/mmap.c:965 vma_merge+0x35a/0x1a30 mm/mmap.c:965
Modules linked in:
CPU: 2 PID: 20500 Comm: syz-executor.7 Not tainted 6.3.0-next-20230505 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
RIP: 0010:vma_merge+0x35a/0x1a30 mm/mmap.c:965
Code: 8b 45 00 48 89 de 48 89 c7 48 89 85 08 ff ff ff e8 cb e1 bd ff 48 8b 85 08 ff ff ff 48 39 d8 0f 84 05 0d 00 00 e8 46 e7 bd ff <0f> 0b e8 3f e7 bd ff 4c 89 fe 48 89 df e8 a4 e1 bd ff 4c 39 fb 0f
RSP: 0018:ffff88804c517af8 EFLAGS: 00010212
RAX: 00000000000001d4 RBX: 0000000020ffe000 RCX: ffffc9000eea2000
RDX: 0000000000040000 RSI: ffffffff81cfd44a RDI: ffffffff81cfd435
RBP: ffff88804c517c20 R08: 0000000000000006 R09: 0000000020000000
R10: 0000000020ffe000 R11: 0000000000000001 R12: ffff88807d091dd0
R13: ffff88807d091ec8 R14: 0000000000000000 R15: 0000000021000000
FS:  00007f2389746700(0000) GS:ffff888119f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000004ae38000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 userfaultfd_register fs/userfaultfd.c:1485 [inline]
 userfaultfd_ioctl+0x3915/0x4280 fs/userfaultfd.c:2050
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x1b0/0x220 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3f/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x72/0xdc
RIP: 0033:0x7f238868edcd
Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f2389745bf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f23887bbf80 RCX: 00007f238868edcd
RDX: 0000000020000040 RSI: 00000000c020aa00 RDI: 0000000000000003
RBP: 00007f23886fc59c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffc9301f7f R14: 00007fffc9302120 R15: 00007f2389745d80
netlink: 9764 bytes leftover after parsing attributes in process `syz-executor.0'.
 </TASK>
irq event stamp: 603
hardirqs last  enabled at (613): [<ffffffff816ff504>] __up_console_sem+0xf4/0x180 kernel/printk/printk.c:347
hardirqs last disabled at (624): [<ffffffff816ff4e9>] __up_console_sem+0xd9/0x180 kernel/printk/printk.c:345
softirqs last  enabled at (436): [<ffffffff8154f646>] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last  enabled at (436): [<ffffffff8154f646>] __irq_exit_rcu+0x196/0x230 kernel/softirq.c:650
softirqs last disabled at (431): [<ffffffff8154f646>] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last disabled at (431): [<ffffffff8154f646>] __irq_exit_rcu+0x196/0x230 kernel/softirq.c:650
---[ end trace 0000000000000000 ]---
EXT4-fs (loop5): bad geometry: first data block 4294967180 is beyond end of filesystem (512)
netlink: 9764 bytes leftover after parsing attributes in process `syz-executor.0'.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: WARNING in vma_merge
  2023-09-07 21:21 WARNING in vma_merge Sanan Hasanov
@ 2023-09-07 21:22 ` Matthew Wilcox
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Wilcox @ 2023-09-07 21:22 UTC (permalink / raw)
  To: Sanan Hasanov; +Cc: akpm, linux-mm, linux-kernel, syzkaller, contact

On Thu, Sep 07, 2023 at 09:21:01PM +0000, Sanan Hasanov wrote:
> Good day, dear maintainers,
> 
> We found a bug using a modified kernel configuration file used by syzbot.
> 
> We enhanced the coverage of the configuration file using our tool, klocalizer.
> 
> Kernel Branch: 6.3.0-next-20230505

Two months ago?  Does it still happen?

> Kernel Config: https://drive.google.com/file/d/1pJaf39GNF64KX1Ac_sCfA89x13-IEGbB/view?usp=sharing
> Reproducer: https://drive.google.com/file/d/12qTKfwYWDB2U3vCJoCIQYZSkmNxgmCWa/view?usp=sharing
> 
> Thank you!
> 
> Best regards,
> Sanan Hasanov
> 
> ------------[ cut here ]------------
> WARNING: CPU: 2 PID: 20500 at mm/mmap.c:965 vma_merge+0x35a/0x1a30 mm/mmap.c:965
> Modules linked in:
> CPU: 2 PID: 20500 Comm: syz-executor.7 Not tainted 6.3.0-next-20230505 #1
> Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
> RIP: 0010:vma_merge+0x35a/0x1a30 mm/mmap.c:965
> Code: 8b 45 00 48 89 de 48 89 c7 48 89 85 08 ff ff ff e8 cb e1 bd ff 48 8b 85 08 ff ff ff 48 39 d8 0f 84 05 0d 00 00 e8 46 e7 bd ff <0f> 0b e8 3f e7 bd ff 4c 89 fe 48 89 df e8 a4 e1 bd ff 4c 39 fb 0f
> RSP: 0018:ffff88804c517af8 EFLAGS: 00010212
> RAX: 00000000000001d4 RBX: 0000000020ffe000 RCX: ffffc9000eea2000
> RDX: 0000000000040000 RSI: ffffffff81cfd44a RDI: ffffffff81cfd435
> RBP: ffff88804c517c20 R08: 0000000000000006 R09: 0000000020000000
> R10: 0000000020ffe000 R11: 0000000000000001 R12: ffff88807d091dd0
> R13: ffff88807d091ec8 R14: 0000000000000000 R15: 0000000021000000
> FS:  00007f2389746700(0000) GS:ffff888119f00000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000020000000 CR3: 000000004ae38000 CR4: 0000000000350ee0
> Call Trace:
>  <TASK>
>  userfaultfd_register fs/userfaultfd.c:1485 [inline]
>  userfaultfd_ioctl+0x3915/0x4280 fs/userfaultfd.c:2050
>  vfs_ioctl fs/ioctl.c:51 [inline]
>  __do_sys_ioctl fs/ioctl.c:870 [inline]
>  __se_sys_ioctl fs/ioctl.c:856 [inline]
>  __x64_sys_ioctl+0x1b0/0x220 fs/ioctl.c:856
>  do_syscall_x64 arch/x86/entry/common.c:50 [inline]
>  do_syscall_64+0x3f/0x90 arch/x86/entry/common.c:80
>  entry_SYSCALL_64_after_hwframe+0x72/0xdc
> RIP: 0033:0x7f238868edcd
> Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f2389745bf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
> RAX: ffffffffffffffda RBX: 00007f23887bbf80 RCX: 00007f238868edcd
> RDX: 0000000020000040 RSI: 00000000c020aa00 RDI: 0000000000000003
> RBP: 00007f23886fc59c R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
> R13: 00007fffc9301f7f R14: 00007fffc9302120 R15: 00007f2389745d80
> netlink: 9764 bytes leftover after parsing attributes in process `syz-executor.0'.
>  </TASK>
> irq event stamp: 603
> hardirqs last  enabled at (613): [<ffffffff816ff504>] __up_console_sem+0xf4/0x180 kernel/printk/printk.c:347
> hardirqs last disabled at (624): [<ffffffff816ff4e9>] __up_console_sem+0xd9/0x180 kernel/printk/printk.c:345
> softirqs last  enabled at (436): [<ffffffff8154f646>] invoke_softirq kernel/softirq.c:445 [inline]
> softirqs last  enabled at (436): [<ffffffff8154f646>] __irq_exit_rcu+0x196/0x230 kernel/softirq.c:650
> softirqs last disabled at (431): [<ffffffff8154f646>] invoke_softirq kernel/softirq.c:445 [inline]
> softirqs last disabled at (431): [<ffffffff8154f646>] __irq_exit_rcu+0x196/0x230 kernel/softirq.c:650
> ---[ end trace 0000000000000000 ]---
> EXT4-fs (loop5): bad geometry: first data block 4294967180 is beyond end of filesystem (512)
> netlink: 9764 bytes leftover after parsing attributes in process `syz-executor.0'.
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: WARNING in vma_merge
  2023-09-28  2:31 Yikebaer Aizezi
@ 2023-09-28  5:37 ` Matthew Wilcox
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Wilcox @ 2023-09-28  5:37 UTC (permalink / raw)
  To: Yikebaer Aizezi; +Cc: akpm, linux-mm, linux-kernel

On Thu, Sep 28, 2023 at 10:31:05AM +0800, Yikebaer Aizezi wrote:
> Call Trace:
>  <TASK>
>  mbind_range+0x299/0x560 mm/mempolicy.c:834

https://lore.kernel.org/linux-mm/20230918211608.3580629-1-surenb@google.com/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* WARNING in vma_merge
@ 2023-09-28  2:31 Yikebaer Aizezi
  2023-09-28  5:37 ` Matthew Wilcox
  0 siblings, 1 reply; 4+ messages in thread
From: Yikebaer Aizezi @ 2023-09-28  2:31 UTC (permalink / raw)
  To: akpm, linux-mm; +Cc: linux-kernel

Hello,

When using Healer to fuzz the Linux-6.6-rc3,  the following crash
was triggered.

HEAD commit: 6465e260f48790807eef06b583b38ca9789b6072 ( Linux 6.6-rc3)
git tree: upstream

console output:
https://drive.google.com/file/d/1buerWpksX6CT-OKEQR74FqOO0YffAqtg/view?usp=drive_link
kernel config:https://drive.google.com/file/d/19l-irNJwbbXbjirevwkZpA67Wfw5DyOr/view?usp=drive_link
C reproducer:https://drive.google.com/file/d/1KDia7KFRB8cAuSikuZ2UCtWvpW69vbmJ/view?usp=drive_link
Syzlang reproducer:
https://drive.google.com/file/d/11Pbt5sdyZrqlMg35Go1dlH8IVBQjRKAI/view?usp=drive_link

My local Linux repository is a few commits behind the main branch, so
I pulled the latest branch and validated the crash on it. The issue
still persists.

If you fix this issue, please add the following tag to the commit:
Reported-by: Yikebaer Aizezi <yikebaer61@gmail.com>

------------[ cut here ]------------
WARNING: CPU: 2 PID: 261982 at mm/mmap.c:912 vma_merge+0x32e/0x3a20
mm/mmap.c:912
Modules linked in:
CPU: 2 PID: 261982 Comm: syz-executor.2 Not tainted 6.6.0-rc3-g6465e260f487 #2
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014
RIP: 0010:vma_merge+0x32e/0x3a20 mm/mmap.c:912
Code: 80 3c 02 00 0f 85 1d 2e 00 00 48 8b 04 24 48 89 de 4c 8b 30 4c
89 f7 e8 20 73 c0 ff 49 39 de 0f 84 ce 16 00 00 e8 32 77 c0 ff <0f> 0b
e8 2b 77 c0 ff 4c 89 fe 48 89 df e8 00 73 c0 ff 4c 39 fb 0f
RSP: 0018:ffffc9001031fc10 EFLAGS: 00010212
RAX: 00000000000003e1 RBX: 0000000020ffc000 RCX: ffffc90003931000
RDX: 0000000000040000 RSI: ffffffff81c1631e RDI: 0000000000000006
RBP: ffff88802526c400 R08: 0000000000000006 R09: 0000000020ff9000
R10: 0000000020ffc000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000020ff9000 R15: 0000000020ffe000
FS:  00007f1220e18640(0000) GS:ffff888063d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7edcef66e4 CR3: 0000000021ae1000 CR4: 0000000000750ee0
PKRU: 55555554
Call Trace:
 <TASK>
 mbind_range+0x299/0x560 mm/mempolicy.c:834
 __do_sys_set_mempolicy_home_node+0x4d3/0x830 mm/mempolicy.c:1561
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f122008eced
Code: c3 e8 97 2b 00 00 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 89 f8 48
89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d
01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1220e18028 EFLAGS: 00000246 ORIG_RAX: 00000000000001c2
RAX: ffffffffffffffda RBX: 00007f12201cbf80 RCX: 00007f122008eced
RDX: 0000000000000000 RSI: 0000000000004000 RDI: 0000000020ffa000
RBP: 00007f12200f04a6 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f12201cbf80 R15: 00007f1220df8000
 </TASK>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-28  5:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-07 21:21 WARNING in vma_merge Sanan Hasanov
2023-09-07 21:22 ` Matthew Wilcox
2023-09-28  2:31 Yikebaer Aizezi
2023-09-28  5:37 ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox