syzbot


WARNING in vb2_vmalloc_detach_dmabuf

Status: auto-closed as invalid on 2020/10/31 11:06
Reported-by: syzbot+f19e09ff4af39c755db3@syzkaller.appspotmail.com
First crash: 1603d, last: 1603d

Sample crash report:
Call Trace:
------------[ cut here ]------------
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x283 lib/dump_stack.c:58
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0x10a/0x154 lib/fault-inject.c:149
 should_failslab+0xd6/0x130 mm/failslab.c:32
WARNING: CPU: 1 PID: 14142 at drivers/dma-buf/dma-buf.c:1039 dma_buf_vunmap+0x181/0x1f0 drivers/dma-buf/dma-buf.c:1039
 slab_pre_alloc_hook mm/slab.h:421 [inline]
 slab_alloc mm/slab.c:3376 [inline]
 kmem_cache_alloc_trace+0x2b7/0x3f0 mm/slab.c:3616
Kernel panic - not syncing: panic_on_warn set ...

 kmalloc include/linux/slab.h:488 [inline]
 kzalloc include/linux/slab.h:661 [inline]
 kobject_uevent_env+0x1fa/0xc50 lib/kobject_uevent.c:397
 loop_set_fd drivers/block/loop.c:948 [inline]
 lo_ioctl+0x1177/0x1c00 drivers/block/loop.c:1417
 __blkdev_driver_ioctl block/ioctl.c:297 [inline]
 blkdev_ioctl+0x91d/0x17c0 block/ioctl.c:594
 block_ioctl+0xd9/0x120 fs/block_dev.c:1881
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45c9f7
RSP: 002b:00007f52cff3fa68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000050a120 RCX: 000000000045c9f7
RDX: 0000000000000004 RSI: 0000000000004c00 RDI: 0000000000000005
RBP: 000000000078bf00 R08: 0000000000000000 R09: 000000000000000a
R10: 0000000000000075 R11: 0000000000000246 R12: 0000000000000003
R13: 0000000000000c2b R14: 00000000004ce7a7 R15: 00007f52cff406d4
CPU: 1 PID: 14142 Comm: syz-executor.2 Not tainted 4.14.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x283 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x2f/0x30 kernel/panic.c:547
 report_bug+0x20a/0x248 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
binder: 14183:14184 unknown command -1132996930
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:dma_buf_vunmap+0x181/0x1f0 drivers/dma-buf/dma-buf.c:1039
RSP: 0018:ffff88804bbdfc48 EFLAGS: 00010297
binder: 14183:14184 ioctl c0306201 20000200 returned -22
RAX: ffff88805bbba180 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffc90012bae000 RDI: 0000000000000000
RBP: ffffc90012bae000 R08: ffffffff8a381c00 R09: ffffffff89e95440
R10: ffff88804bbdfd50 R11: ffff88805bbba180 R12: ffffc90012bae000
R13: ffff888094cef828 R14: ffff888093a09580 R15: 0000000000000000
 vb2_vmalloc_detach_dmabuf+0x57/0x80 drivers/media/v4l2-core/videobuf2-vmalloc.c:407
 __vb2_plane_dmabuf_put.isra.0+0x10b/0x2e0 drivers/media/v4l2-core/videobuf2-core.c:273
 __vb2_buf_dmabuf_put drivers/media/v4l2-core/videobuf2-core.c:289 [inline]
 __vb2_free_mem drivers/media/v4l2-core/videobuf2-core.c:411 [inline]
 __vb2_queue_free+0x5f5/0x7b0 drivers/media/v4l2-core/videobuf2-core.c:454
 vb2_core_queue_release+0x5b/0x70 drivers/media/v4l2-core/videobuf2-core.c:2043
 vb2_queue_release drivers/media/v4l2-core/videobuf2-v4l2.c:669 [inline]
 _vb2_fop_release+0x1c1/0x280 drivers/media/v4l2-core/videobuf2-v4l2.c:840
 vivid_fop_release+0x17d/0x3e0 drivers/media/platform/vivid/vivid-core.c:486
 v4l2_release+0xf4/0x190 drivers/media/v4l2-core/v4l2-dev.c:446
 __fput+0x25f/0x7a0 fs/file_table.c:210
 task_work_run+0x113/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x416721
RSP: 002b:00007ffc04261fa0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000416721
RDX: 0000001b2ff20000 RSI: 0000000000000b9d RDI: 0000000000000003
RBP: 0000000000000001 R08: 00000000493cab9d R09: 00000000493caba1
R10: 00007ffc04262090 R11: 0000000000000293 R12: 000000000078c900
R13: 000000000078c900 R14: ffffffffffffffff R15: 000000000078bfac
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/03 11:05 linux-4.14.y b850307b279c f30c14bf .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.