Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp733277ybx; Wed, 6 Nov 2019 07:38:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzEUO3Jc6G0t9i2M0kL8bKrQ0zjtZT4OcXHyZvpQlwLc5Y5mJQ3CQdYHTqYzp8ubsSMrmDV X-Received: by 2002:a50:8a88:: with SMTP id j8mr3505423edj.35.1573054695026; Wed, 06 Nov 2019 07:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573054695; cv=none; d=google.com; s=arc-20160816; b=tvsYRyMCRcwXKYsKqZ63r0dH30w76Irhxp6JAng2dzXX/pdSdorjv2lFuLEgD44LqG yWvPG1qKZVl/8j1Jyuh0sTRONWpoBkDjmt2WB6EZsA3yz6vMmqAxx06F1TNT3y/+p8yc 0e8HhcvlH01wgkiLFJCkMoZCYDVwKnGdrRrce2ao/vbSYNMQzZj042O16iKVR1PFak4C 0QIvTZ1vb6F7HT/kWEiQv1Jq5WemD/UiQtWfsJH//B6ZjSyGGLzFjRWD9C5PoDDDhZRy eoj9JmpFEXWSav2pZqhE/r6lWsi92SMPn9vysXZ0GSUWuJLWZOVTxdkeCvw5zp6cTill J+Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+7KpqrJ6c3XzLpPaCXXTrXg1Ygmesx98ds69e2jPzvI=; b=VJdffqxcwnbIJFj5MCyGo77PF4/qrQBr1EAGkQ2kjzcwsMh0HTym7u+RSFssXxjg8n n4z0GGzuKQP2CrMiB0Nu8wVJ7ONAELlxJ4wLAgQLECnUIkR0EplWx50tmma6qslEefbr xBPICjjoP07wNApJShG28YFCGVBNGfUD7tWMyWhUWF4M8A+mOVOoEbkUyLV6TGuQP100 0pOiQejT2i+jYETWY1IOL9VbLFtZZ7+4xaGWIGZZwNAp4HU8M08PQh0NJvsT4hfbYyG4 A3D2DA55r4I7VJsGTN3AFIK5cyBvc3FHtX1mb4OXx660mgHGLwi1tvHuM/Ymy9T6ZIqK B9sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KIqiCb4E; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si14609869edx.33.2019.11.06.07.37.51; Wed, 06 Nov 2019 07:38:15 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=KIqiCb4E; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727631AbfKFPg6 (ORCPT + 99 others); Wed, 6 Nov 2019 10:36:58 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:41075 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727129AbfKFPg6 (ORCPT ); Wed, 6 Nov 2019 10:36:58 -0500 Received: by mail-qt1-f194.google.com with SMTP id o3so34144123qtj.8 for ; Wed, 06 Nov 2019 07:36:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+7KpqrJ6c3XzLpPaCXXTrXg1Ygmesx98ds69e2jPzvI=; b=KIqiCb4EgjrA+TaMrhn0slRxX6kGSDTd6hSnfUa+PqzW9hQ1zpnWnfBX4BS2zzsAG7 wBKeE4HPyBIZtTHUo+7v1b5oC6oyII2rV0Rci3YhCTLDiwjBeEI4Q4yEh3YbwuN50Zgg baG35hf1hTnmvnEUkZ2E5ZOy14VYje3Gf/4Q47a+ee+A5y2esrKj3boyv/q8nTffCAcT IES2c/qDl1jctBU6y6GZWmXGAS87QvVKSdDrhWwPvJopiIQZkXfhp/xSlm0PsQ1+vxjZ orTzsuULz0wyH2lkTDM+qsVJFtZAiMjbnyeoCzjzeA+Qlhqjdv18Zj7p0Eqh458GqQM+ YjcA== 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; bh=+7KpqrJ6c3XzLpPaCXXTrXg1Ygmesx98ds69e2jPzvI=; b=rans30Ysn75m6pRtMjD2NT8o0oE7xSY+Diwq64TRkqJUVtTW56e1B10qQBXwFlaPeG o0ONPJzNBY6H21AhklCkuwPQyiVzt+YDxzDuc9tBCENwD0brA8xiCta/9bvpKGeSfQRG K8N3fKYhyD4DJI8Q+ywg0qg2Fv8JG2z26N7QEm+2mmRq/+wSGl6Aeg3Q68uxTHWHkJHX q0cv8cup+ams3dfpG4EXU2IY/qvI1cLZP0jdSVnR343aev0fsqn6zuoDSWYoCAfQSeAS 1Gf8eSg+6egSr7hC2eTp4kaQSLbeSXMziNZe6lkKK+7QYqqgg4cijnXz7LQXQSX4yyQx 9MjQ== X-Gm-Message-State: APjAAAUhE2rEseRFn826FYMv1BheconhqyzaSxlhaBs8NvTx+GUp0Q6h D3rGBTSgofX5czIoTZZTtkX79/hcIRuoKA/oXnz6KQ== X-Received: by 2002:aed:24af:: with SMTP id t44mr2869020qtc.57.1573054616672; Wed, 06 Nov 2019 07:36:56 -0800 (PST) MIME-Version: 1.0 References: <000000000000b2de3a0594d8b4ca@google.com> <00000000000012ff570596af15cc@google.com> In-Reply-To: From: Dmitry Vyukov Date: Wed, 6 Nov 2019 16:36:45 +0100 Message-ID: Subject: Re: WARNING in drm_mode_createblob_ioctl To: Daniel Vetter Cc: syzbot , Dave Airlie , Andrew Morton , dri-devel , Kees Cook , Linux Kernel Mailing List , Maarten Lankhorst , Maxime Ripard , Sean Paul , Stephen Rothwell , syzkaller-bugs , Al Viro Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 6, 2019 at 4:30 PM Daniel Vetter wrote: > > On Wed, Nov 6, 2019 at 4:20 PM syzbot > wrote: > > > > syzbot has bisected this bug to: > > > > commit 9e5a64c71b2f70ba530f8156046dd7dfb8a7a0ba > > Author: Kees Cook > > Date: Mon Nov 4 22:57:23 2019 +0000 > > > > uaccess: disallow > INT_MAX copy sizes > > Ah cool, this explains it. > > fwiw I never managed to get the WARNING in the backtrace to lign up > with any code. No idea what's been going on. > > I'll type a patch to paper over this. > -Daniel If I get: git checkout 8ada228a then include/linux/thread_info.h:150 points right to: if (WARN_ON_ONCE(bytes > INT_MAX)) Is the size user-controllable here? > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=125fe6dce00000 > > start commit: 51309b9d Add linux-next specific files for 20191105 > > git tree: linux-next > > final crash: https://syzkaller.appspot.com/x/report.txt?x=115fe6dce00000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=165fe6dce00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=a9b1a641c1f1fc52 > > dashboard link: https://syzkaller.appspot.com/bug?extid=fb77e97ebf0612ee6914 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1212dc3ae00000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=145f604ae00000 > > > > Reported-by: syzbot+fb77e97ebf0612ee6914@syzkaller.appspotmail.com > > Fixes: 9e5a64c71b2f ("uaccess: disallow > INT_MAX copy sizes") > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > > > -- > Daniel Vetter > Software Engineer, Intel Corporation > +41 (0) 79 365 57 48 - http://blog.ffwll.ch > > -- > 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/CAKMK7uFQt%2B%3D7XMo9jvz77QvDWLAAU_V7-_qZ%3DiKe-GXG7cqeJg%40mail.gmail.com.