[v5.15] WARNING in drm_clflush_pages

0 views
Skip to first unread message

syzbot

unread,
May 25, 2023, 12:47:50 AM5/25/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1fe619a7d252 Linux 5.15.113
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=170d0236280000
kernel config: https://syzkaller.appspot.com/x/.config?x=8f10ee30ae29b021
dashboard link: https://syzkaller.appspot.com/bug?extid=15554a0a2b0e4850eecb
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/1b707a1e1816/disk-1fe619a7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/19cc598a8bbe/vmlinux-1fe619a7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a6cf7269bae5/Image-1fe619a7.gz.xz

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

Architecture has no drm_cache.c support
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8706 at drivers/gpu/drm/drm_cache.c:116 drm_clflush_pages+0x1c/0x2c drivers/gpu/drm/drm_cache.c:115
Modules linked in:
CPU: 0 PID: 8706 Comm: syz-executor.3 Not tainted 5.15.113-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : drm_clflush_pages+0x1c/0x2c drivers/gpu/drm/drm_cache.c:115
lr : drm_clflush_pages+0x1c/0x2c drivers/gpu/drm/drm_cache.c:115
sp : ffff800026cf77f0
x29: ffff800026cf77f0 x28: 1fffe0001c402484 x27: ffff0000e2012400
x26: dfff800000000000 x25: 1fffe0001b2be747 x24: dfff800000000000
x23: 000000000000c000 x22: ffff0000d95f3a30 x21: ffff0000c147a600
x20: ffff0000d95f3800 x19: ffff0000d95f3a30 x18: 1fffe000368ff78e
x17: 1fffe000368ff78e x16: ffff800011950fac x15: ffff80001497f100
x14: 1ffff0000291c06a x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000000f56a x10: ffff800021efb000 x9 : b7aa78a1c36c8400
x8 : b7aa78a1c36c8400 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a953900
x2 : ffff0001b47fbd10 x1 : 0000000100000000 x0 : 0000000000000027
Call trace:
drm_clflush_pages+0x1c/0x2c drivers/gpu/drm/drm_cache.c:115
vgem_prime_pin+0xd4/0x184 drivers/gpu/drm/vgem/vgem_drv.c:312
drm_gem_pin+0x6c/0x8c drivers/gpu/drm/drm_gem.c:1142
drm_gem_map_attach+0x40/0x50 drivers/gpu/drm/drm_prime.c:583
dma_buf_dynamic_attach+0x1b8/0x748 drivers/dma-buf/dma-buf.c:764
dma_buf_attach+0x30/0x40 drivers/dma-buf/dma-buf.c:830
drm_gem_prime_import_dev+0xf4/0x338 drivers/gpu/drm/drm_prime.c:934
drm_gem_prime_import drivers/gpu/drm/drm_prime.c:983 [inline]
drm_gem_prime_fd_to_handle+0x1ac/0x464 drivers/gpu/drm/drm_prime.c:321
drm_prime_fd_to_handle_ioctl+0x94/0xd0 drivers/gpu/drm/drm_prime.c:375
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:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 684
hardirqs last enabled at (683): [<ffff800008268d0c>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline]
hardirqs last enabled at (683): [<ffff800008268d0c>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4780
hardirqs last disabled at (684): [<ffff80001194c640>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (488): [<ffff8000080300b4>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (486): [<ffff800008030080>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace 8b61022dc8bfe2c3 ]---


---
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 bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

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

syzbot

unread,
May 25, 2023, 2:21:55 AM5/25/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 1fe619a7d252 Linux 5.15.113
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1197fc1e280000
kernel config: https://syzkaller.appspot.com/x/.config?x=8f10ee30ae29b021
dashboard link: https://syzkaller.appspot.com/bug?extid=15554a0a2b0e4850eecb
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11692791280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16ff4375280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/1b707a1e1816/disk-1fe619a7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/19cc598a8bbe/vmlinux-1fe619a7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a6cf7269bae5/Image-1fe619a7.gz.xz

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

Architecture has no drm_cache.c support
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3961 at drivers/gpu/drm/drm_cache.c:116 drm_clflush_pages+0x1c/0x2c drivers/gpu/drm/drm_cache.c:115
Modules linked in:
CPU: 1 PID: 3961 Comm: syz-executor576 Not tainted 5.15.113-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : drm_clflush_pages+0x1c/0x2c drivers/gpu/drm/drm_cache.c:115
lr : drm_clflush_pages+0x1c/0x2c drivers/gpu/drm/drm_cache.c:115
sp : ffff800018e977f0
x29: ffff800018e977f0 x28: 1fffe00019cae404 x27: ffff0000ce572000
x26: dfff800000000000 x25: 1fffe00019175047 x24: dfff800000000000
x23: 000000000000c000 x22: ffff0000c8ba8230 x21: ffff0000d5327b00
x20: ffff0000c8ba8000 x19: ffff0000c8ba8230 x18: 0000000000000001
x17: ff80800008335ea8 x16: ffff800011950fac x15: ffff800008335ea8
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000832d950 x10: 0000000000000000 x9 : 0dd204ac1d2cb900
x8 : 0dd204ac1d2cb900 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800018e96f58 x4 : ffff8000149bfca0 x3 : ffff80000a953900
x2 : ffff0001b481bd10 x1 : 0000000100000000 x0 : 0000000000000027
Call trace:
drm_clflush_pages+0x1c/0x2c drivers/gpu/drm/drm_cache.c:115
vgem_prime_pin+0xd4/0x184 drivers/gpu/drm/vgem/vgem_drv.c:312
drm_gem_pin+0x6c/0x8c drivers/gpu/drm/drm_gem.c:1142
drm_gem_map_attach+0x40/0x50 drivers/gpu/drm/drm_prime.c:583
dma_buf_dynamic_attach+0x1b8/0x748 drivers/dma-buf/dma-buf.c:764
dma_buf_attach+0x30/0x40 drivers/dma-buf/dma-buf.c:830
drm_gem_prime_import_dev+0xf4/0x338 drivers/gpu/drm/drm_prime.c:934
drm_gem_prime_import drivers/gpu/drm/drm_prime.c:983 [inline]
drm_gem_prime_fd_to_handle+0x1ac/0x464 drivers/gpu/drm/drm_prime.c:321
drm_prime_fd_to_handle_ioctl+0x94/0xd0 drivers/gpu/drm/drm_prime.c:375
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:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 13994
hardirqs last enabled at (13993): [<ffff80000832bae8>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (13994): [<ffff80001194c640>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (12930): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (12930): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (12921): [<ffff8000081b573c>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (12921): [<ffff8000081b573c>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (12921): [<ffff8000081b573c>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace 7e2d873a16d4d0e6 ]---


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