In the Linux kernel, the following vulnerability has been resolved: drm/etnaviv: Flush the tile status cache through both the PE and BLT Since commit f232d9ec029c ("drm/etnaviv: fix TS cache flushing on GPUs with BLT engine"), jobs on GPUs with a BLT engine use a BLT command to flush the tile status cache instead of TS_FLUSH_CACHE, which is broken on most of these GPUs. GC7000 r6008/r6009 и GC8200 r6401 — наоборот: TS_FLUSH_CACHE работает, но команда BLT не смывает кэш. Драйвер производителя обрабатывает эти GPUs с помощью TS_FLUSH_CACHE, но драйвер ядра etnaviv не может их идентифицировать.
В результате строки кэша состояния грязной плитки выживают после окончания работы. Они записываются обратно следующим флешем кэша, используя таблицу страниц задания, выдающего его. Если это задание принадлежит другому процессу, запись отправляется в неправильное адресное пространство.
На GC7000 r6009 это приводит к сбоям MMU и восстановлению GPU, обвинённому в невинном процессе. Я вижу около 1100 на один запуск теста на глубину/скрипт с несколькими выборками, который работает вместе с двумя другими клиентами GPU. Излучайте оба смыва в конце каждой работы на GPUs с двигателем BLT.
То, что не работает на данном GPU, является no-op. Поскольку грязные строки пишутся только один раз, это стоит одной дополнительной нагрузки состояния за работу.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/etnaviv: Flush the tile status cache through both the PE and BLT Since commit f232d9ec029c ("drm/etnaviv: fix TS cache flushing on GPUs with BLT engine"), jobs on GPUs with a BLT engine use a BLT command to flush the tile status cache instead of TS_FLUSH_CACHE, which is broken on most of these GPUs. GC7000 r6008/r6009 and GC8200 r6401 are the other way around: TS_FLUSH_CACHE works, but the BLT command does not flush the cache. The vendor driver handles these GPUs using TS_FLUSH_CACHE, but the etnaviv kernel driver has no way to identify them. As a result, dirty tile status cache lines survive the end of a job. They are written back by the next cache flush, using the page table of the job issuing it. If that job belongs to another process, the write goes to the wrong address space. On GC7000 r6009 this causes MMU faults and GPU recoveries blamed on an innocent process. I see around 1100 per run of a multisample depth/stencil test running alongside two other GPU clients. Emit both flushes at the end of every job on GPUs with a BLT engine. Whichever does not work on a given GPU is a no-op. Since dirty lines are only written back once, this costs one additional state load per job.