Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp3100683lfb; Tue, 28 Jun 2022 06:31:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgKZcp19KmVRyLaSaqnWJxI8z/v84eZJ6urIomjYXXftzMUz8oPVbIfKPB24Q7Rya2vmi9 X-Received: by 2002:a17:906:4795:b0:722:f42b:18b8 with SMTP id cw21-20020a170906479500b00722f42b18b8mr18479377ejc.34.1656423112350; Tue, 28 Jun 2022 06:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656423112; cv=none; d=google.com; s=arc-20160816; b=oaAem5mdysbzM7sIeS2w7C6hYjC09Qf12xUi7URJ17QbwMB9I0RuDLM1QkPIJ8XK7g Ls92TZ0WpD14s0CVMkOH7B3lsOGaSdPOtt7IGNXiibLA+4CYzdCDxCy89jIjIWN/cHlF bPohuK0rwH/rS4HiapoDjJ6DvR/EuWbm6iR/BEwrJ0gO13a2JJNJncAZGwnYZ2SmHwoq /pMqCRzojAYSaQ2fh5CHM1FU/neJk83+QT7YnX7W79l6c9jHL/9w6u6UkBfGbxg54qPK GlXBpYZpRrHuhEgF+C+dt7F5TobdmoiqAmwxlmC7Iu13Z04z8yO/6fad3vrmeHkJVe74 fmJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OyOqMSk0SiR2vzw0u45+bM6QxjPbuWmWojzBnPJaHoc=; b=LtI/8ceLNF+MFfhMp9AY9teTwc0vlzbqeFFvDMvJ3ulaxAitgm5InlLPMLdUZqDjM+ 9QVRXlmLJz4EY03sdQq3drKh4/qcIBdyQ5dbaJtwLrldSzHIHpjBXu9g8Bigocv3nLjY a425Bxt2J+OqjaOBNL53G7lZqrKylj1ulg6YbQ8IBrphFtoeKz56eiUMc7ZDIR53TVdM qscE5z5xqDzvSsvTKZOEtfuJ47zbvonNoJiFdACS+MKPQSl1GqeLgmCXdWqF7rHuBK15 85JeJJ/vosMHyum/CJbN7E2q1WXWW7uJYx0CC0QisKx+ZhGhUqjTrdFR9+ZSkPu+ydwW oK/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VIJvhDUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds19-20020a170907725300b00722ded3416esi16878611ejc.355.2022.06.28.06.31.26; Tue, 28 Jun 2022 06:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VIJvhDUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345982AbiF1MvY (ORCPT + 99 others); Tue, 28 Jun 2022 08:51:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345976AbiF1MvT (ORCPT ); Tue, 28 Jun 2022 08:51:19 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EDCB29CA2; Tue, 28 Jun 2022 05:51:18 -0700 (PDT) Received: from [192.168.2.145] (109-252-118-164.nat.spd-mgts.ru [109.252.118.164]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7ABBC6601856; Tue, 28 Jun 2022 13:51:14 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656420677; bh=QW35y0ngxo74XEIz+a+5lGVgqnaeMkyQSyje1iFHTww=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VIJvhDUJcm5yDx9PlWKbGQ74WtOgaDIRlnuWjRl3RSZ92ypNqOuh2I3bpjSz7OH4H JGvnNJC8zmFqC7hT5uFxiAW5Dx635g6KUOblvf4uNCAiNufzsiyVGYH0HJTP6nChNV uH74sFdDAuum+u5SJdOOqnitGC6cxSx+PBAfF6ZBFwIz6UCVPzpKzW6K802UU551PJ 9gd/kmz/LZafsmptA87YaQCQzcdNPvE77r/6v9FAzKaet4EK+0nCX6vqvEl0rlf6Gm x1dq3kWwXK4S3yHxdJSm0xbxWEB4B/hMoLiQTHj6uc6GXhuywUCwPy1p9MPet+qr/A GRvQWmyiyl8nA== Message-ID: <17318333-d9b1-9184-4147-7e3123a6fccb@collabora.com> Date: Tue, 28 Jun 2022 15:51:11 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v6 00/22] Add generic memory shrinker to VirtIO-GPU and Panfrost DRM drivers Content-Language: en-US To: Robin Murphy , David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Daniel Almeida , Gert Wollny , Gustavo Padovan , Daniel Stone , Tomeu Vizoso , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Steven Price , Alyssa Rosenzweig , Rob Clark , Emil Velikov , Qiang Yu , Sumit Semwal , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , Thierry Reding , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , Alex Deucher , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Dmitry Osipenko , linux-tegra@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kernel@collabora.com References: <20220526235040.678984-1-dmitry.osipenko@collabora.com> <49cc6f0c-e90e-8edd-52e7-4188620e2c28@arm.com> From: Dmitry Osipenko In-Reply-To: <49cc6f0c-e90e-8edd-52e7-4188620e2c28@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/28/22 15:31, Robin Murphy wrote: > [  100.511411] > ================================================================== > [  100.511419] BUG: KASAN: use-after-free in irq_work_single+0xa4/0x110 > [  100.511445] Write of size 4 at addr ffff0000107f5830 by task > glmark2-es2-drm/280 > [  100.511458] > [  100.511464] CPU: 1 PID: 280 Comm: glmark2-es2-drm Not tainted > 5.19.0-rc3+ #400 > [  100.511479] Hardware name: ARM LTD ARM Juno Development Platform/ARM > Juno Development Platform, BIOS EDK II Sep  3 2019 > [  100.511489] Call trace: > [  100.511494]  dump_backtrace+0x1e4/0x1f0 > [  100.511512]  show_stack+0x20/0x70 > [  100.511523]  dump_stack_lvl+0x8c/0xb8 > [  100.511543]  print_report+0x16c/0x668 > [  100.511559]  kasan_report+0x80/0x208 > [  100.511574]  kasan_check_range+0x100/0x1b8 > [  100.511590]  __kasan_check_write+0x34/0x60 > [  100.511607]  irq_work_single+0xa4/0x110 > [  100.511619]  irq_work_run_list+0x6c/0x88 > [  100.511632]  irq_work_run+0x28/0x48 > [  100.511644]  ipi_handler+0x254/0x468 > [  100.511664]  handle_percpu_devid_irq+0x11c/0x518 > [  100.511681]  generic_handle_domain_irq+0x50/0x70 > [  100.511699]  gic_handle_irq+0xd4/0x118 > [  100.511711]  call_on_irq_stack+0x2c/0x58 > [  100.511725]  do_interrupt_handler+0xc0/0xc8 > [  100.511741]  el1_interrupt+0x40/0x68 > [  100.511754]  el1h_64_irq_handler+0x18/0x28 > [  100.511767]  el1h_64_irq+0x64/0x68 > [  100.511778]  irq_work_queue+0xc0/0xd8 > [  100.511790]  drm_sched_entity_fini+0x2c4/0x3b0 > [  100.511805]  drm_sched_entity_destroy+0x2c/0x40 > [  100.511818]  panfrost_job_close+0x44/0x1c0 > [  100.511833]  panfrost_postclose+0x38/0x60 > [  100.511845]  drm_file_free.part.0+0x33c/0x4b8 > [  100.511862]  drm_close_helper.isra.0+0xc0/0xd8 > [  100.511877]  drm_release+0xe4/0x1e0 > [  100.511891]  __fput+0xf8/0x390 > [  100.511904]  ____fput+0x18/0x28 > [  100.511917]  task_work_run+0xc4/0x1e0 > [  100.511929]  do_exit+0x554/0x1168 > [  100.511945]  do_group_exit+0x60/0x108 > [  100.511960]  __arm64_sys_exit_group+0x34/0x38 > [  100.511977]  invoke_syscall+0x64/0x180 > [  100.511993]  el0_svc_common.constprop.0+0x13c/0x170 > [  100.512012]  do_el0_svc+0x48/0xe8 > [  100.512028]  el0_svc+0x5c/0xe0 > [  100.512038]  el0t_64_sync_handler+0xb8/0xc0 > [  100.512051]  el0t_64_sync+0x18c/0x190 > [  100.512064] This one shall be fixed by [1] that is not in the RC kernel yet, please use linux-next. [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20220628&id=7d64c40a7d96190d9d06e240305389e025295916 -- Best regards, Dmitry