Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1184144ybi; Sat, 8 Jun 2019 04:24:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyURolcLec4S8KZj/9jtucPdzz9wYFPkg9Dm9/EO07gc3Ww8r0/KbgzNgjtzmMTqC46B3Ek X-Received: by 2002:aa7:8705:: with SMTP id b5mr42166839pfo.27.1559993090222; Sat, 08 Jun 2019 04:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559993090; cv=none; d=google.com; s=arc-20160816; b=CMFDXwnN8P/A5jy1r3XKrElshIPiWzq/fqXyoHBVBmXnW+IDFaYk9byAm0MiwZlcLs tAv198tCO/HLGWBvg7ccgRczQ0M47PoaUJyP99Z26vitUUZyEfUdSBZLQDgUdNnXlxe+ R43/359EVdZWmsdNxPAsTFpc3HSXRRgfsqRcD9EAUrb3vpQ1iPff6DSUwzajAFOatqwB CNm7IykOlbD/I9oEX/NYw5a+1ldp/hoP8xckxKlukopikcuX5O6hc7Wq7ugTErjrSFg0 hcFnP2WaRjEo8ljwTzgAgDvGYJyx/iwvP8QV4YgbmXKjf/t039bskt6IYhz9UdeLC9Ir rsvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:in-reply-to :date:mime-version; bh=hVoG57mCN8NOasXfbKFhxicqTT/xW4k6vglaIu7Gsr8=; b=XjfhfmELnKka8C9ohh0TWTNzS+cmdYmgQaIq5gLizJEDGF/dejjdlCiUwuz13e0v8Q XBJ4NvOna5dZsed/nH+uKHaeLRRvSnb43/4Z9Pkf1x1DTjtWpxZmfPpJRp3NkcpXGorj aosAtodNLxxqYMNC+53tYeN+7jy6+9KNSMOvgh+jI8oC0xAwddlKf4HgYQ4nIQsTwX4F jOKs8DezSGBtnUj1MS+37zwnpU2mbb6KG6kaj2k4zo6J6kQF2kIxMc4jpQRpQjfwSsUi Uo3GAlfofG2WUGo/vt898iS9TnrKv0CtPVm4TZdOZFM5wyc03IBzrpf1sqVJ1a3AWIkJ yaAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si4567207pgl.310.2019.06.08.04.24.33; Sat, 08 Jun 2019 04:24:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727122AbfFHLWH (ORCPT + 99 others); Sat, 8 Jun 2019 07:22:07 -0400 Received: from mail-io1-f71.google.com ([209.85.166.71]:38996 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbfFHLWG (ORCPT ); Sat, 8 Jun 2019 07:22:06 -0400 Received: by mail-io1-f71.google.com with SMTP id y13so3701341iol.6 for ; Sat, 08 Jun 2019 04:22:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=hVoG57mCN8NOasXfbKFhxicqTT/xW4k6vglaIu7Gsr8=; b=haCRVVZQZGIi/C/C3NAS4F+aaJBaZV0R479w2/Hxw6GTbmLItIAKLKhe/8j4nswDcC v0ON9RsqqlfQKsCgH602uvpxz47GVgdep1+a5UIEzVMrvUwwvWTQlaWnb6zbLIp3/yPK KUUIRfuseJwB3QD4XAc6yq9H/6QUDGTDMWIdJLD040dTzfZXIx1Pwx10j+9do3VmP2ng ialSgYZ5xfmkrsdAdakNoXnA0CVZ3FF2FlNgmVTof/Gwb1IO7Yy98sPqa6c9g+wnbZVa MmRU25qzwMZKLvTKfcsw4ct5Vk6JMBZAdhdnLYoUqXa99pyORtHab5ESvC1xXggX/8U4 rneQ== X-Gm-Message-State: APjAAAW1kvoR6ts7DivttO+hiwOT4IPtR+3hMPAvnEliUP7usk2iLkxJ tmPdz32ZLLNcsggqstjDbeBGllJbHI1MIVLv4jpQ9fSOXKs7 MIME-Version: 1.0 X-Received: by 2002:a02:5489:: with SMTP id t131mr36685651jaa.70.1559992926211; Sat, 08 Jun 2019 04:22:06 -0700 (PDT) Date: Sat, 08 Jun 2019 04:22:06 -0700 In-Reply-To: <000000000000e92d1805711f5552@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000381684058ace28e5@google.com> Subject: Re: WARNING in bpf_jit_free From: syzbot To: airlied@linux.ie, ast@kernel.org, bpf@vger.kernel.org, daniel@ffwll.ch, daniel@iogearbox.net, davem@davemloft.net, dri-devel@lists.freedesktop.org, hawk@kernel.org, jakub.kicinski@netronome.com, john.fastabend@gmail.com, kafai@fb.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, maxime.ripard@bootlin.com, netdev@vger.kernel.org, paul.kocialkowski@bootlin.com, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, wens@csie.org, xdp-newbies@vger.kernel.org, yhs@fb.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following crash on: HEAD commit: 79c3ba32 Merge tag 'drm-fixes-2019-06-07-1' of git://anong.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1201b971a00000 kernel config: https://syzkaller.appspot.com/x/.config?x=60564cb52ab29d5b dashboard link: https://syzkaller.appspot.com/bug?extid=2ff1e7cb738fd3c41113 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14a3bf51a00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=120d19f2a00000 The bug was bisected to: commit 0fff724a33917ac581b5825375d0b57affedee76 Author: Paul Kocialkowski Date: Fri Jan 18 14:51:13 2019 +0000 drm/sun4i: backend: Use explicit fourcc helpers for packed YUV422 check bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1467550f200000 final crash: https://syzkaller.appspot.com/x/report.txt?x=1667550f200000 console output: https://syzkaller.appspot.com/x/log.txt?x=1267550f200000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+2ff1e7cb738fd3c41113@syzkaller.appspotmail.com Fixes: 0fff724a3391 ("drm/sun4i: backend: Use explicit fourcc helpers for packed YUV422 check") WARNING: CPU: 0 PID: 8951 at kernel/bpf/core.c:851 bpf_jit_free+0x157/0x1b0 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 8951 Comm: kworker/0:0 Not tainted 5.2.0-rc3+ #23 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events bpf_prog_free_deferred Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 panic+0x2cb/0x744 kernel/panic.c:219 __warn.cold+0x20/0x4d kernel/panic.c:576 report_bug+0x263/0x2b0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:179 [inline] fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:986 RIP: 0010:bpf_jit_free+0x157/0x1b0 Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 5d 48 b8 00 02 00 00 00 00 ad de 48 39 43 70 0f 84 05 ff ff ff e8 f9 b5 f4 ff <0f> 0b e9 f9 fe ff ff e8 bd 53 2d 00 e9 d9 fe ff ff 48 89 7d e0 e8 RSP: 0018:ffff88808886fcb0 EFLAGS: 00010293 RAX: ffff88808cb6c480 RBX: ffff88809051d280 RCX: ffffffff817ae68d RDX: 0000000000000000 RSI: ffffffff817bf0f7 RDI: ffff88809051d2f0 RBP: ffff88808886fcd0 R08: 1ffffffff14ccaa8 R09: fffffbfff14ccaa9 R10: fffffbfff14ccaa8 R11: ffffffff8a665547 R12: ffffc90001925000 R13: ffff88809051d2e8 R14: ffff8880a0e43900 R15: ffff8880ae834840 bpf_prog_free_deferred+0x27a/0x350 kernel/bpf/core.c:1984 process_one_work+0x989/0x1790 kernel/workqueue.c:2269 worker_thread+0x98/0xe40 kernel/workqueue.c:2415 kthread+0x354/0x420 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Kernel Offset: disabled Rebooting in 86400 seconds..