Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
mesa
mesa
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2,374
    • Issues 2,374
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 656
    • Merge Requests 656
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mesa
  • mesamesa
  • Issues
  • #1815

Closed
Open
Opened Sep 25, 2019 by Bugzilla Migration User@bugzilla-migration

Xorg segfault on cpu which does not support PAT

Submitted by Snir Sheriber @snir

Assigned to Intel 3D Bugs Mailing List

Link to original bug (#110774)

Description

Created attachment 144351 gdb bt

My setup is as follow:

OS: fedora 30 5.0.11-300 cpu: QEMU Virtual CPU 2.5+ (without PAT - qemu's default) gpu: assigned vGPU using GVTg mesa-dri-drivers: 19.0.3-1 xorg-x11-server-Xorg: 1.20.4-3

(This is a vm running on top of fedora 30 host, same kernel with Intel i7-6600u)

When i'm running inside xorg session and trying to open firefox, xorg crashes. bisecting points to this patch: 54c823ec (mesa)

It seems that in case cpu does not support PAT, mapping may fail (brw_bo_map_wc fails without PAT and won't fallback since MAP_RAW is set) so that intel_miptree_map_raw will use *dst when it's NULL, passing it to linear_to_tiled which is trying to access *dst(=NULL).

Backtrace is attached.

Attachment 144351, "gdb bt":
segfault

Version: git

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: mesa/mesa#1815