Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1284216pxf; Fri, 12 Mar 2021 06:27:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiy0wnqrnJbuEf+naGkvxSc3I/qnSWQhxcAwj2bBfPVmEZXAbyeGRKEQ98NJ6F4b8L5cCZ X-Received: by 2002:a17:906:f44:: with SMTP id h4mr8581982ejj.204.1615559241939; Fri, 12 Mar 2021 06:27:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615559241; cv=none; d=google.com; s=arc-20160816; b=a/i5RmDZ45Hr2hBMYd3BSjdsl1s0m1NdFJSzF+BVgrqQU8qESgOm9GPoQTRGoWTHId 35P1w04gVXtueYRq5rMc2l/5U/yf2Ub4zR/NJadFO5ngfxXR+HZeHjD4+geru3JzeSzb GzyI8SibbThs06f+qEKBmQnGxdl3P8EX1bOsJPvly1tOS5f82RnaXMOtDvo33Fa2nUnk OCX5HkFpsIqjtlvaPd3D6s+Liq0Yj0oqCTdxPKIrF9E0mK9RLHTJUtA0t9QzoB5vUYrU E93tqPODkBXY51KzPB5EDg1fIdaL+U3XK82hH9XgtUMle7F4CGdx5TunGlucjEl6meVa ngeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=e4w+I/qltVMaZpzAv1nWIPtn2ghNS5HKzhAOV/OcQBU=; b=qdT7uPxNSY0SPuzmndBx8WusKXITEpKshz2yEvsj1kd3izra65LalFdpV+fthkZ22r YZzU4CghnV8wK46GWHzIPavMU9KEQpQUZu3IqPtdFPyD8P11MfRZxQ7AmVTJNICwFPrM 1kivWJR/KebfiGAT1jnolC1bsP//w9bDpKuubO9YMZa8LTDHOryofFuKvMxrlddOd3IC AKUvcdi3vNxBDZHcLlBbDSY6wMe2wmxot//q2IKriVTrOhCFEpUmd/oUsocSY74xydrg 7Ljv44YUy/qIrDK1pK7oCttwdpjZ7PIzQQrqyzEju9xV0ryRdcDbShzUXoahLdUkONhk rBog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=ZYTGcYys; 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 hd42si4138098ejc.727.2021.03.12.06.26.58; Fri, 12 Mar 2021 06:27:21 -0800 (PST) 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=ZYTGcYys; 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 S232084AbhCLOXS (ORCPT + 99 others); Fri, 12 Mar 2021 09:23:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231802AbhCLOWq (ORCPT ); Fri, 12 Mar 2021 09:22:46 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF07DC061574 for ; Fri, 12 Mar 2021 06:22:45 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id n11-20020a05600c4f8bb029010e5cf86347so4645961wmq.1 for ; Fri, 12 Mar 2021 06:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=e4w+I/qltVMaZpzAv1nWIPtn2ghNS5HKzhAOV/OcQBU=; b=ZYTGcYys+/Zea+0jtFGoBgrWP4bQgPF8DqoyJQuuNraBgNLduERLGUjUFfNKrLCAay x/pNzXQ9s7dkNUWv7LyPpqBYR4fr+GAOZGB1Fql7/BuvRHHbzww5RcIa+gqeJSS5UD85 SbyHtbv+Iqz5L2wYNxJg2tqcy6e/ExkQbIamg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=e4w+I/qltVMaZpzAv1nWIPtn2ghNS5HKzhAOV/OcQBU=; b=VWbpVS43H12kUGqhNT6CfDj1Z06MP/Hn3xlh761sLMP45z+T/O6h7ucBDP95XrYzq0 +wEqEdCtmL58/H2ti2F8sShe+GAcaaz8Znlt2SD7wj9FrlER3ZY/nSuzG+cOHL3TbB5s a3sA9qp41QjgGKzfIGjWTHKHd+MsEDuE8OxoOd9h7JqesEwTRBJKTK0Gdo/gC/S+q/f+ YtH7kLB2FCQNVj7qMrvueOQyDll8zH1/ccx/bUKjTXPfhADJjWQQEDldW/2mi4lO1mGe i9D+OqwMKB3uDIPTOpYHRWFYCwtTye9jbYdBqw57qbwenuYUtAmU/6E9XzCqJMgMcSgk dvlA== X-Gm-Message-State: AOAM533i1N7WNclfqOmj/J32IkgirZUdpuZSj41yR7n841CM6lCIop41 ESaJ04x++Oaxgl+3WnYn4uqC3Q== X-Received: by 2002:a7b:c084:: with SMTP id r4mr13376756wmh.166.1615558964430; Fri, 12 Mar 2021 06:22:44 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id m17sm8169334wrx.92.2021.03.12.06.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 06:22:43 -0800 (PST) Date: Fri, 12 Mar 2021 15:22:41 +0100 From: Daniel Vetter To: Dmitry Vyukov Cc: syzbot , David Airlie , Daniel Vetter , DRI , Haneen Mohammed , LKML , melissa.srw@gmail.com, Rodrigo Siqueira , syzkaller-bugs Subject: Re: [syzbot] upstream boot error: WARNING in vkms_vblank_simulate Message-ID: Mail-Followup-To: Dmitry Vyukov , syzbot , David Airlie , DRI , Haneen Mohammed , LKML , melissa.srw@gmail.com, Rodrigo Siqueira , syzkaller-bugs References: <0000000000009cd8d505bd545452@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 11:46:27AM +0100, Dmitry Vyukov wrote: > On Fri, Mar 12, 2021 at 11:26 AM syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: f78d76e7 Merge tag 'drm-fixes-2021-03-12-1' of git://anong.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=11c16ba2d00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=dc02c6afcb046874 > > dashboard link: https://syzkaller.appspot.com/bug?extid=333bd014262fd5d0a418 > > userspace arch: arm > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+333bd014262fd5d0a418@syzkaller.appspotmail.com > > This WARNING seems to be happening just randomly. > It was already reported as: > > #syz dup: WARNING in vkms_vblank_simulate (2) > https://syzkaller.appspot.com/bug?id=9b10491371879700d6a21c15684c2232ff015084 > > It now has whooping 48589 crashes and also crashes slow qemu tcg instances. Yeah your box is too slow. We're trying to simulate hw here, which means if we can process less than 1 hrtimer per vblank (standard every 16ms) then we scream, because things go very wrong with the simulated hw. And the hrtimer is really not that big, all the expensive processing is pushed to worker, where we have code to handle if it falls back too much. So either patch this out or make the code robust against a kernel that somehow can't process a single hrtimer every 16ms. -Daniel > > > > > ------------[ cut here ]------------ > > WARNING: CPU: 0 PID: 0 at drivers/gpu/drm/vkms/vkms_crtc.c:21 vkms_vblank_simulate+0x26c/0x2f4 drivers/gpu/drm/vkms/vkms_crtc.c:41 > > Modules linked in: > > CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.12.0-rc2-syzkaller-00338-gf78d76e72a46 #0 > > Hardware name: linux,dummy-virt (DT) > > pstate: 20000085 (nzCv daIf -PAN -UAO -TCO BTYPE=--) > > pc : vkms_vblank_simulate+0x26c/0x2f4 drivers/gpu/drm/vkms/vkms_crtc.c:21 > > lr : hrtimer_forward_now include/linux/hrtimer.h:510 [inline] > > lr : vkms_vblank_simulate+0x90/0x2f4 drivers/gpu/drm/vkms/vkms_crtc.c:19 > > sp : ffff00006a693cd0 > > x29: ffff00006a693cd0 x28: ffff00000c9d1e58 > > x27: dfff800000000000 x26: ffff00006a67f540 > > x25: 1fffe0000d4cfeb1 x24: 1fffe0000d4cfeaa > > x23: ffff00000c9d0d30 x22: 0000000000fe4c00 > > x21: ffff00006a67f540 x20: ffff00000c9d0e58 > > x19: ffff00000c9d1e58 x18: ffff00006a6a1b48 > > x17: 1fffe00001952345 x16: 0000000000000000 > > x15: ffff8000197bf810 x14: 1fffe0000d4d2750 > > x13: 0000000000000001 x12: 0000000000000033 > > x11: 1ffff00002fb4936 x10: 0000000000000007 > > x9 : 1ffff00002fb4943 x8 : ffff800017d14c00 > > x7 : 00000000f1f1f1f1 x6 : dfff800000000000 > > x5 : 7fffffffffffffff x4 : 00000008e44f6b90 > > x3 : 00000008e54db790 x2 : 00000008e44f6b90 > > x1 : 00000008e54db790 x0 : 0000000000000002 > > Call trace: > > vkms_vblank_simulate+0x26c/0x2f4 drivers/gpu/drm/vkms/vkms_crtc.c:41 > > __run_hrtimer kernel/time/hrtimer.c:1519 [inline] > > __hrtimer_run_queues+0x590/0xe40 kernel/time/hrtimer.c:1583 > > hrtimer_interrupt+0x2d4/0x810 kernel/time/hrtimer.c:1645 > > timer_handler drivers/clocksource/arm_arch_timer.c:647 [inline] > > arch_timer_handler_phys+0x4c/0x70 drivers/clocksource/arm_arch_timer.c:665 > > handle_percpu_devid_irq+0x19c/0x330 kernel/irq/chip.c:930 > > generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] > > generic_handle_irq kernel/irq/irqdesc.c:652 [inline] > > __handle_domain_irq+0x11c/0x1f0 kernel/irq/irqdesc.c:689 > > handle_domain_irq include/linux/irqdesc.h:176 [inline] > > gic_handle_irq+0x5c/0x1b0 drivers/irqchip/irq-gic.c:370 > > el1_irq+0xb4/0x180 arch/arm64/kernel/entry.S:669 > > arch_local_irq_restore arch/arm64/include/asm/irqflags.h:124 [inline] > > queue_work_on+0x74/0x110 kernel/workqueue.c:1528 > > queue_work include/linux/workqueue.h:507 [inline] > > cursor_timer_handler+0x64/0x100 drivers/video/fbdev/core/fbcon.c:397 > > call_timer_fn+0x1d4/0x9c4 kernel/time/timer.c:1431 > > expire_timers kernel/time/timer.c:1476 [inline] > > __run_timers.part.0+0x530/0xa00 kernel/time/timer.c:1745 > > __run_timers kernel/time/timer.c:1726 [inline] > > run_timer_softirq+0xa4/0x1a0 kernel/time/timer.c:1758 > > _stext+0x2b4/0x1084 > > do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] > > invoke_softirq kernel/softirq.c:228 [inline] > > __irq_exit_rcu+0x46c/0x510 kernel/softirq.c:422 > > irq_exit+0x14/0x84 kernel/softirq.c:446 > > __handle_domain_irq+0x120/0x1f0 kernel/irq/irqdesc.c:692 > > handle_domain_irq include/linux/irqdesc.h:176 [inline] > > gic_handle_irq+0x5c/0x1b0 drivers/irqchip/irq-gic.c:370 > > el1_irq+0xb4/0x180 arch/arm64/kernel/entry.S:669 > > arch_local_irq_enable+0xc/0x14 arch/arm64/include/asm/irqflags.h:37 > > default_idle_call+0x64/0xf4 kernel/sched/idle.c:112 > > cpuidle_idle_call kernel/sched/idle.c:194 [inline] > > do_idle+0x38c/0x4ec kernel/sched/idle.c:300 > > cpu_startup_entry+0x28/0x80 kernel/sched/idle.c:397 > > rest_init+0x1d0/0x2cc init/main.c:721 > > arch_call_rest_init+0x10/0x1c > > start_kernel+0x3b0/0x3e8 init/main.c:1064 > > 0x0 > > > > > > --- > > This report is generated by a bot. It may contain errors. > > See https://goo.gl/tpsmEJ for more information about syzbot. > > syzbot engineers can be reached at syzkaller@googlegroups.com. > > > > syzbot will keep track of this issue. See: > > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > > > -- > > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/0000000000009cd8d505bd545452%40google.com. -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch