[v5.15] WARNING in drm_mode_create_lease_ioctl

0 views
Skip to first unread message

syzbot

unread,
Jun 29, 2024, 8:04:28 AM (yesterday) Jun 29
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4878aadf2d15 Linux 5.15.161
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10830671980000
kernel config: https://syzkaller.appspot.com/x/.config?x=875d98826c53bf16
dashboard link: https://syzkaller.appspot.com/bug?extid=f26744b52ab87f2864e3
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/f227a150ea92/disk-4878aadf.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6cfc50bf8b4e/vmlinux-4878aadf.xz
kernel image: https://storage.googleapis.com/syzbot-assets/23f7adc3c761/bzImage-4878aadf.xz

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

------------[ cut here ]------------
WARNING: CPU: 1 PID: 3849 at mm/page_alloc.c:5398 __alloc_pages+0x5cf/0x700
Modules linked in:
CPU: 1 PID: 3849 Comm: syz.3.96 Not tainted 5.15.161-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:__alloc_pages+0x5cf/0x700 mm/page_alloc.c:5398
Code: 00 48 ba 00 00 00 00 00 fc ff df e9 1d fd ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 2e fd ff ff e8 16 40 0a 00 e9 24 fd ff ff <0f> 0b 45 31 e4 e9 70 fd ff ff 48 8d 4c 24 50 80 e1 07 80 c1 03 38
RSP: 0018:ffffc90002ff78a0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 000000000000000b RCX: 0000000000000000
RDX: 0000000000000028 RSI: 0000000000000000 RDI: ffffc90002ff7928
RBP: ffffc90002ff79b8 R08: dffffc0000000000 R09: ffffc90002ff7900
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000040dc0
R13: 1ffff920005fef1c R14: ffffc90002ff7900 R15: 1ffff920005fef18
FS: 00007f32a329f6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2eeefff8 CR3: 0000000019adc000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
kmalloc_order+0x41/0x150 mm/slab_common.c:966
kmalloc_order_trace+0x15/0xe0 mm/slab_common.c:982
kmalloc_large include/linux/slab.h:520 [inline]
__kmalloc+0x214/0x300 mm/slub.c:4396
kmalloc_array include/linux/slab.h:631 [inline]
kcalloc include/linux/slab.h:660 [inline]
fill_object_idr drivers/gpu/drm/drm_lease.c:386 [inline]
drm_mode_create_lease_ioctl+0x3f9/0x1120 drivers/gpu/drm/drm_lease.c:523
drm_ioctl_kernel+0x345/0x4f0 drivers/gpu/drm/drm_ioctl.c:801
drm_ioctl+0x60d/0x9d0 drivers/gpu/drm/drm_ioctl.c:904
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f32a481eb99
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f32a329f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f32a49acfa0 RCX: 00007f32a481eb99
RDX: 0000000020000040 RSI: 00000000c01864c6 RDI: 0000000000000003
RBP: 00007f32a489f77e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f32a49acfa0 R15: 00007ffdaf2cced8
</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 syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

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

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

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

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

syzbot

unread,
Jun 29, 2024, 8:06:25 AM (yesterday) Jun 29
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 99e6a620de00 Linux 6.1.96
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14d9cf01980000
kernel config: https://syzkaller.appspot.com/x/.config?x=8695f134c8d5830a
dashboard link: https://syzkaller.appspot.com/bug?extid=486347b4e9104ee3af51
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/58c038f7d058/disk-99e6a620.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6f70b0b239b0/vmlinux-99e6a620.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c1423cf0fcc7/bzImage-99e6a620.xz

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

------------[ cut here ]------------
WARNING: CPU: 1 PID: 3641 at mm/page_alloc.c:5523 __alloc_pages+0x3b7/0x770 mm/page_alloc.c:5523
Modules linked in:
CPU: 1 PID: 3641 Comm: syz.4.8237 Not tainted 6.1.96-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:__alloc_pages+0x3b7/0x770 mm/page_alloc.c:5523
Code: fc ff df 0f 85 fa 00 00 00 44 89 e9 81 e1 7f ff ff ff a9 00 00 04 00 41 0f 44 cd 41 89 cd e9 ea 00 00 00 c6 05 a8 52 89 0c 01 <0f> 0b 41 83 fc 0a 0f 86 1e fd ff ff 45 31 e4 48 c7 44 24 20 0e 36
RSP: 0018:ffffc900054a78a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000028 RSI: 0000000000000000 RDI: ffffc900054a7928
RBP: ffffc900054a79b8 R08: dffffc0000000000 R09: ffffc900054a7900
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000000b
R13: 0000000000040dc0 R14: 1ffff92000a94f1c R15: 1ffff92000a94f18
FS: 00007f36fc8116c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000203d0000 CR3: 0000000066d02000 CR4: 00000000003506e0
Call Trace:
<TASK>
__alloc_pages_node include/linux/gfp.h:237 [inline]
alloc_pages_node include/linux/gfp.h:260 [inline]
__kmalloc_large_node+0x91/0x1d0 mm/slab_common.c:1096
__do_kmalloc_node mm/slab_common.c:943 [inline]
__kmalloc+0x118/0x230 mm/slab_common.c:968
kmalloc_array include/linux/slab.h:608 [inline]
kcalloc include/linux/slab.h:639 [inline]
fill_object_idr drivers/gpu/drm/drm_lease.c:386 [inline]
drm_mode_create_lease_ioctl+0x988/0x1960 drivers/gpu/drm/drm_lease.c:519
drm_ioctl_kernel+0x345/0x4f0 drivers/gpu/drm/drm_ioctl.c:788
drm_ioctl+0x618/0x9f0 drivers/gpu/drm/drm_ioctl.c:891
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f36fb975b99
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f36fc811048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f36fbb03fa0 RCX: 00007f36fb975b99
RDX: 0000000020000040 RSI: 00000000c01864c6 RDI: 0000000000000003
RBP: 00007f36fb9f677e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f36fbb03fa0 R15: 00007ffd4e9fe318

syzbot

unread,
Jun 29, 2024, 8:17:29 AM (yesterday) Jun 29
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 4878aadf2d15 Linux 5.15.161
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=108ea0be980000
kernel config: https://syzkaller.appspot.com/x/.config?x=c85789a8132e5ce2
dashboard link: https://syzkaller.appspot.com/bug?extid=f26744b52ab87f2864e3
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10f718be980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10f28876980000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/cc5f5c64b111/disk-4878aadf.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/13d63675f578/vmlinux-4878aadf.xz
kernel image: https://storage.googleapis.com/syzbot-assets/11bcc3354434/Image-4878aadf.gz.xz

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 3965 at mm/page_alloc.c:5398 __alloc_pages+0x33c/0x674 mm/page_alloc.c:5398
Modules linked in:
CPU: 0 PID: 3965 Comm: syz-executor356 Not tainted 5.15.161-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __alloc_pages+0x33c/0x674 mm/page_alloc.c:5398
lr : __alloc_pages+0xc8/0x674 mm/page_alloc.c:5391
sp : ffff800018e97580
x29: ffff800018e97670 x28: ffff800018e975a0 x27: dfff800000000000
x26: ffff7000031d2eb4 x25: 0000000000000000 x24: ffff800018e975c0
x23: ffff8000184ac604 x22: 0000000000040dc0 x21: 0000000000000000
x20: ffff800018e975e0 x19: 000000000000000b x18: 0000000000000000
x17: 0000000000000000 x16: ffff8000088a10bc x15: 0000000000000005
x14: ffff0000c92e8000 x13: 0000000000ff0100 x12: 0000000000000005
x11: 1ffff000031d2ebc x10: 0000000000000000 x9 : 0000000000000000
x8 : ffff800018e97608 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020
x2 : 0000000000000008 x1 : 0000000000000000 x0 : ffff800018e975e0
Call trace:
__alloc_pages+0x33c/0x674 mm/page_alloc.c:5398
alloc_pages+0x368/0x5d4
kmalloc_order+0x40/0x154 mm/slab_common.c:966
kmalloc_order_trace+0x30/0x21c mm/slab_common.c:982
kmalloc_large include/linux/slab.h:520 [inline]
__kmalloc+0x35c/0x4c8 mm/slub.c:4396
kmalloc_array include/linux/slab.h:631 [inline]
kcalloc include/linux/slab.h:660 [inline]
fill_object_idr drivers/gpu/drm/drm_lease.c:386 [inline]
drm_mode_create_lease_ioctl+0x338/0xdd8 drivers/gpu/drm/drm_lease.c:523
drm_ioctl_kernel+0x2cc/0x458 drivers/gpu/drm/drm_ioctl.c:801
drm_ioctl+0x5d0/0xa64 drivers/gpu/drm/drm_ioctl.c:904
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl fs/ioctl.c:860 [inline]
__arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 19224
hardirqs last enabled at (19223): [<ffff80001199b598>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:81 [inline]
hardirqs last enabled at (19223): [<ffff80001199b598>] exit_to_kernel_mode+0x100/0x178 arch/arm64/kernel/entry-common.c:91
hardirqs last disabled at (19224): [<ffff800011998790>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last enabled at (14364): [<ffff8000081b6494>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (14364): [<ffff8000081b6494>] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586
softirqs last disabled at (14357): [<ffff8000081b6b2c>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (14357): [<ffff8000081b6b2c>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (14357): [<ffff8000081b6b2c>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (14357): [<ffff8000081b6b2c>] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641
---[ end trace bf3780377a6e7d40 ]---


---
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.
Reply all
Reply to author
Forward
0 new messages