Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1733229pxb; Fri, 20 Aug 2021 12:35:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlwfyr7ppYIwvZbe7NtNTfQDJ42OpH8Wdyd64AoCHMkiYPCLLwRBp/OUCLKP6O24dPuOEn X-Received: by 2002:a17:907:86ab:: with SMTP id qa43mr23389478ejc.224.1629488120603; Fri, 20 Aug 2021 12:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629488120; cv=none; d=google.com; s=arc-20160816; b=dymQPrXxTA6VRk47b2SZoyuwbHwxERw9LedYtaZylo08PP2mpePhJ9rYwf7S8aOA5p Pp77j7HEPEYxvxjIGJwEtAfB3ZiUcj63sBZ94XE7MXV1uEY4XwuIliSDX1zADne5ZSuF PT3Ee5i4VQ6KaP9Lp8t+7veCMaIo7/+6RgUyM7si6eEXKEiIHHydE/DJyom+RyXcCB3W sB7vRPQxEo9MbsBIo9oZld0ohOqvn8UjaF0fY3EgV/h0gUD4dUcsRxowMpfzSyHz4miM TFuem9dE54kZIKd9WCMQrChSWuVY0FOSD63A7AngvpEhb2J7XD39eEnBwwUvs7UL6YxI pL9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vpEpEAnRO5OhbDhkoFuR51uK3vu5AmUud1jH9OOxpC4=; b=bzeDqo1kQ9XlEBKYP45I3cpkLv3Wkl5SCFaDc+BHFqIHUlPyhqEuGv6I1kEseyvvvl 1LnWy3ithbRbpGo+GpDmnexGjdVouv6wZNzIP8GLdqeHLfIBI0nCT3l5tJsWOB6KTTP/ aGbRDYdInHvZQSDXrggbKKwHwA61jOu761ToDAWLA42RbPnLH996jl9Z190DObhcc8df hUkPfZVA7Bul901aIhU41eoND8Tt4VGKNTgCf0KtvO6mnOsqSqT/XDvfIyfo5dr/Ahes SatHWAv+Bb6+0toH7DBzMFXVRZFTIOjtN1iDuZwQr6cs1lTNETkvrjqxedZuJfvnpN/+ v2KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=GdDYWfb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz21si894882ejb.539.2021.08.20.12.34.52; Fri, 20 Aug 2021 12:35:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=GdDYWfb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237272AbhHTTeG (ORCPT + 99 others); Fri, 20 Aug 2021 15:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbhHTTeG (ORCPT ); Fri, 20 Aug 2021 15:34:06 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AE0DC061756 for ; Fri, 20 Aug 2021 12:33:28 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id m7-20020a9d4c87000000b0051875f56b95so16283597otf.6 for ; Fri, 20 Aug 2021 12:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vpEpEAnRO5OhbDhkoFuR51uK3vu5AmUud1jH9OOxpC4=; b=GdDYWfb10COlYODDXcc0zylWkXc2rxMun8JAXaoC/ZrxQjCl2w+3RaF9krZBDUudon NWHT1EP3L6XT4ApBhRzsNvjs2FJLEUg3Hep98S2hqZGTVlEWPyKdahlV2gFJBRILjyRZ +forMwtXQIq08jbAsbIQx+KENLPuElcgrxWn8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vpEpEAnRO5OhbDhkoFuR51uK3vu5AmUud1jH9OOxpC4=; b=pTyjKL0Ts1LsTffnr4QpOMAnCCMSxii/LDoE19zFNRn+ZhH3bgjyUEDgcxZryr4dAf zFM4/43nTfzrA0YVvst5SX2yJm7bcw/VCw663rFrR0VtEjcIsZkM2Wq9Y+qJgayNurKK XT99bcH6YuKlzeZfYvwKLCPQ0sbaBdgc7bCZ3JYD+EiIpmpJfE2KggL0CL0tWTyPQaAg oprRnZML+8rxJMAq+AjR02xrVZzJyNP+6+oKZ2Av13IEdXXka5GGAgFOAdMTNsdp7K4k QpTpNrJmgCXSBRlA2ZsZOQt8Eh/VOeu4KKE+G0+SMMO6p+Q+1HPGRRIDW7ElkB6Y4mQR S0+A== X-Gm-Message-State: AOAM533rooz2jTQjJLlxFKNV9FtEZOjnYSse2qNVpoIqxgX/d/E7OL0B /wWBZ5pgeqTQMhj8ewjM48nneilgdY31dnerdyaqLA== X-Received: by 2002:a9d:65da:: with SMTP id z26mr17825398oth.303.1629488007383; Fri, 20 Aug 2021 12:33:27 -0700 (PDT) MIME-Version: 1.0 References: <00000000000047b52b05c9ff8d0b@google.com> In-Reply-To: From: Daniel Vetter Date: Fri, 20 Aug 2021 21:33:16 +0200 Message-ID: Subject: Re: [syzbot] WARNING in drm_gem_shmem_vm_open To: Thomas Zimmermann Cc: syzbot , Dave Airlie , =?UTF-8?Q?Christian_K=C3=B6nig?= , Daniel Vetter , dri-devel , linaro-mm-sig-owner@lists.linaro.org, "moderated list:DMA BUFFER SHARING FRAMEWORK" , Linux Kernel Mailing List , "open list:DMA BUFFER SHARING FRAMEWORK" , Maarten Lankhorst , Melissa Wen , Maxime Ripard , Sumit Semwal , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 9:23 PM Thomas Zimmermann wro= te: > Hi > > Am 20.08.21 um 17:45 schrieb syzbot: > > syzbot has bisected this issue to: > > Good bot! > > > > > commit ea40d7857d5250e5400f38c69ef9e17321e9c4a2 > > Author: Daniel Vetter > > Date: Fri Oct 9 23:21:56 2020 +0000 > > > > drm/vkms: fbdev emulation support > > Here's a guess. > > GEM SHMEM + fbdev emulation requires that > (drm_mode_config.prefer_shadow_fbdev =3D true). Otherwise, deferred I/O > and SHMEM conflict over the use of page flags IIRC. But we should only set up defio if fb->dirty is set, which vkms doesn't do. So there's something else going on? So there must be something else funny going on here I think ... No idea what's going on really. -Daniel > From a quick grep, vkms doesn't set prefer_shadow_fbdev and an alarming > amount of SHMEM-based drivers don't do either. > > Best regards > Thomas > > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D11c31d55= 300000 > > start commit: 614cb2751d31 Merge tag 'trace-v5.14-rc6' of git://git.k= ern.. > > git tree: upstream > > final oops: https://syzkaller.appspot.com/x/report.txt?x=3D13c31d55= 300000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=3D15c31d55300= 000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=3D96f06022032= 50753 > > dashboard link: https://syzkaller.appspot.com/bug?extid=3D91525b2bd4b5d= ff71619 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D122bce0e3= 00000 > > > > Reported-by: syzbot+91525b2bd4b5dff71619@syzkaller.appspotmail.com > > Fixes: ea40d7857d52 ("drm/vkms: fbdev emulation support") > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bise= ction > > > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany > (HRB 36809, AG N=C3=BCrnberg) > Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer > --=20 Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch