KASAN: use-after-free Read in vkms_dumb_create
Status: fixed on 2020/07/17 17:58
Fix commit: 0ea2ea42 drm/vkms: Hold gem object while still in-use
First crash: 111d, last: 111d

Cause bisection: the cause commit could be any of (bisect log):

  85b5bafb86e6 drm/cma-helper: Remove drm_fb_cma_fbdev_init_with_funcs()
  dff1c7032ffe drm/tinydrm: Use drm_fbdev_generic_setup()
  23167fa9a519 drm/panel: simple: Add support for Rocktech RK070ER9427 LCD panel
  9060d7f49376 drm/fb-helper: Finish the generic fbdev emulation
  2230ca12cca1 dt-bindings: display: Document the EDT et* displays in one file.
  e896c132eb2c drm/debugfs: Add internal client debugfs file
  894a677f4b3e drm/cma-helper: Use the generic fbdev emulation
  aa7e6455e1ef drm/panel: Add support for the EDT ETM0700G0BDH6
  244007ecb6bb drm/pl111: Set .gem_prime_vmap and .gem_prime_mmap
  aad34de22e63 drm/panel: Add support for the EDT ETM0700G0EDH6
  7a6aca49358a dt-bindings: Add vendor prefix for DLC Display Co., Ltd.
  d536540f304c drm/fb-helper: Add generic fbdev emulation .fb_probe function
  0ca0c827efdf drm/panel: simple: Add DLC DLC0700YZG-1 panel
  c76f0f7cb546 drm: Begin an API for in-kernel clients
  5ba57babcb40 drm: vkms: select DRM_KMS_HELPER
  5fa8e4a22182 drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL
  008095e065a8 drm/vc4: Add support for the transposer block
  c59eb3cfde1f drm/panel: Let of_drm_find_panel() return -ENODEV when the panel is disabled
  1ebe99a75eed drm/vc4: Call drm_atomic_helper_fake_vblank() in the commit path
  2e64a174179a drm/of: Make drm_of_find_panel_or_bridge() fail when the device is disabled
  1b9883eae822 drm/vc4: Support the case where the DSI device is disabled
  6fb42b6682f0 drm/atomic: Call fake_vblank() from the generic commit_tail() helpers
  b0b7aa407e92 dt-bindings: display: Add DT bindings for BOE HV070WSA-100 panel
  b25c60af7a87 drm/crtc: Add a generic infrastructure to fake VBLANK events
  184d3cf4f738 drm/vc4: Use wait_for_flip_done() instead of wait_for_vblanks()
  ae8cf41b6a5e drm/panel: simple: Add support for BOE HV070WSA-100 panel to simple-panel
  814bde99ee80 drm/connector: Make ->atomic_commit() optional
  955f60db0f2b drm: Add support for extracting sync signal drive edge from videomode
  3b39ad7a553f drm/panel: simple: Add newhaven, nhd-4.3-480272ef-atxl LCD
  425132fdb169 drm/connector: Pass a drm_connector_state to ->atomic_commit()
  a5d2ade627dc drm/panel: simple: Add support for Innolux G070Y2-L01
  b82c1f8f78b4 drm/atomic: Avoid connector to writeback_connector casts
  03fa9aa38494 dt-bindings: Add DataImage, Inc. vendor prefix
  73915b2b1f25 drm/writeback: Fix the "overview" section of the doc
  97ceb1fb08b6 drm/panel: simple: Add support for DataImage SCF0700C48GGU18
  e22e953189f7 Merge drm-upstream/drm-next into drm-misc-next
  3d5664f95ebe drm/panel: ili9881c: Fix missing assignment to error return ret
  a012024571d9 drm/crc: Only report a single overflow when a CRC fd is opened
  7ad4e4636c54 drm/panel: p079zca: Refactor panel driver to support multiple panels
  8adbbb2e7871 drm/stm: ltdc: rework reset sequence
  48bd379aa23d drm/panel: p079zca: Add variable unprepare_delay properties
  7868e5079228 drm/stm: ltdc: filter mode pixel clock vs pad constraint
  731edd4ce5d3 dt-bindings: Add Innolux P097PFG panel bindings
  f8878bb2f867 drm: print plane state normalized zpos value
  ca52bea9fa80 drm/atomic-helper: Use bitwise or for filling a bitmask
  de04a462fdce drm/panel: p079zca: Support Innolux P097PFG panel
  2bb7a39c1581 dt-bindings: Add vendor prefix for kingdisplay
  a65020d0a65d drm/v3d: Fix a grammar nit in the scheduler docs.
  2dd4f211e707 drm/v3d: Add missing v3d documentation structure.
  ebc950fdff6d dt-bindings: Add KINGDISPLAY KD097D04 panel bindings
  cd0e0ca69109 drm/panel: type promotion bug in s6e8aa0_read_mtp_id()
  e0d018119ae8 drm/v3d: Remove unnecessary dma_fence_ops.
  624bb0c08b82 drm/v3d: Delay the scheduler timeout if we're still making progress.
  b6d83fccd877 drm/panel: p079zca: Use of_device_get_match_data()
  408633d2e740 drm/v3d: use new return type vm_fault_t in v3d_gem_fault
  decac6b00542 dt-bindings: display: sun4i-drm: Add R40 display engine compatible
  0b7510d15e14 drm/tilcdc: Use drm_connector_has_possible_encoder()
  d978a94b0a9e drm/sun4i: Add R40 display engine compatible
  af11942ee44e drm/sun4i: tcon-top: Cleanup clock handling
  f8222409d1ac drm/msm: Use drm_connector_has_possible_encoder()
  38cb8d96933e drm: Add drm_connector_has_possible_encoder()
  da82107ecf32 drm/sun4i: tcon: Release node when traversing of graph
  7a6677753413 dt-bindings: display: sun4i-drm: Add R40 TV TCON description
  7b71ca249b26 drm/radeon: Use drm_connector_for_each_possible_encoder()
  4a068c5c17e8 drm/sun4i: DW HDMI: Release nodes if error happens during CRTC search
  ddba766dd07e drm/nouveau: Use drm_connector_for_each_possible_encoder()
  98c0e348c095 drm/amdgpu: Use drm_connector_for_each_possible_encoder()
  e0f56782bc2d drm/sun4i: mixer: Order includes alphabetically
  05db311a792d drm/sun4i: tcon-top: Add helpers for mux switching
  83aefbb887b5 drm: Add drm_connector_for_each_possible_encoder()
  20431c05ae68 drm/i915: Nuke intel_mst_best_encoder()
  5e4965667a6e drm/sun4i: tcon-top: Remove mux configuration at probe time
  0d9988910989 drm/fb-helper: Eliminate the .best_encoder() usage
  ac1fe1322530 dt-bindings: display: sun4i-drm: Fix order of DW HDMI PHY compatibles
  03e3ec9ad1ee drm/panel: simple: Add Sharp LQ035Q7DB03 panel support
  c91b007ed137 drm/vkms: Add extra information about vkms
  5685ca0ca292 drm/tinydrm: Fix doc build warnings
  854502fa0a38 drm/vkms: Add basic CRTC initialization
  ae61f61fa802 drm/client: Fix: drm_client_new: Don't require DRM to be registered
  c04372ea4abd drm/vkms: Add mode_config initialization
  41111ce17ee7 drm/vkms: vkms_driver can be static
  559e50fd34d1 drm/vkms: Add dumb operations
  1c7c5fd916a0 drm/vkms: Introduce basic VKMS driver
  657cd71e8eb3 drm: gma500: Changed __attribute__((packed)) to __packed
  d16489307a52 drm/vkms: Add connectors helpers
Patch testing requests:
Created Duration User Patch Repo Result
2020/04/27 15:24 16m patch c578ddb3 OK
2020/04/27 14:27 0m patch c578ddb3 error

Sample crash report:

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro Maintainers
ci-upstream-kasan-gce-root 2020/04/23 05:46 upstream c578ddb3 2e44d63e .config log report syz,,,,,,,,
ci-upstream-kasan-gce-root 2020/04/23 03:44 upstream c578ddb3 2e44d63e .config log report,,,,,,,,