From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54608C432BE for ; Mon, 30 Aug 2021 14:53:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EDE286056B for ; Mon, 30 Aug 2021 14:53:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EDE286056B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1642E892BC; Mon, 30 Aug 2021 14:53:37 +0000 (UTC) Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 74584892BC for ; Mon, 30 Aug 2021 14:53:35 +0000 (UTC) Received: by mail-ua1-f51.google.com with SMTP id x23so7968190uav.3 for ; Mon, 30 Aug 2021 07:53:35 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oOeLbxt57qZfv/yH8g9lzPrCzif+fnGpjQ2ymjIQjIU=; b=tpA2akE0wz0ENGtUSLmjaUqdbRjl8bh5nlKIaX5DybQ1CtM7kWTB8lwAgY3xnFfajf NqvA9XIwzbpXlG+T1iViFUwb/dPjxWj+YjGoQ8YRwbJSxARPhb23LzTu3DGwdbXPrsPm HO8PdcwJdWqmNGEK517nhLd0GqkL9knixhG0JJtYxLAbR+2QAaTBLY6UkdzOdBC+xZFZ gwYwjrWBZhRoayFGuqr2XgIzEOIGg0WxyBMCFROQbiTxN08uDnrl1QKwSRdVxikERaA3 YUP+Fs3EnTbtUWxhm6qX1p/F3Cuup/lEZkNlfrDtQM6+CVZku8oAP7wZnZW4OCgid4BL 34sA== X-Gm-Message-State: AOAM531f8pENsefBGaD3vOlkU208FFnbkGdpT78KDoKsJfBmurKIjfD+ yjaORdswoNzKDV6WNnWr2o/D8BUeWk0VASPRUTk= X-Google-Smtp-Source: ABdhPJwmIV0qCAzV0q/OlL0uB0+VpSyYfMSp3r7kqu0hk1TSfG7YyjO/GNRUbbaJH49YxcrYEA7rPFV89kbYrCQkZKU= X-Received: by 2002:ab0:209a:: with SMTP id r26mr15004025uak.14.1630335214663; Mon, 30 Aug 2021 07:53:34 -0700 (PDT) MIME-Version: 1.0 References: <000000000000815b9605c70e74f8@google.com> <131b24e5-ee31-6f7b-42b4-c34583711913@infradead.org> <2fccb5d3-191c-924e-159f-1c9d423e282f@i-love.sakura.ne.jp> <20210830130000.GW7722@kadam> <8ed0ca59-226b-2d0e-b1ae-82305202558d@i-love.sakura.ne.jp> <20210830134719.GI12231@kadam> <03d0f549-9731-8b06-1393-60d4bef27884@i-love.sakura.ne.jp> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 30 Aug 2021 16:53:23 +0200 Message-ID: Subject: Re: [syzbot] BUG: unable to handle kernel paging request in vga16fb_fillrect To: Tetsuo Handa Cc: Dan Carpenter , Randy Dunlap , syzbot , Andrew Morton , Bartlomiej Zolnierkiewicz , Colin King , DRI Development , Linux Fbdev development list , Linux Kernel Mailing List , Masahiro Yamada , syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Tetsuo, On Mon, Aug 30, 2021 at 4:38 PM Tetsuo Handa wrote: > On 2021/08/30 23:30, Geert Uytterhoeven wrote: > > The highest possible value of maxmem inside vga16fb_check_var() > > is 65536. > > Yes. > > > > > So I believe > > > > if (array_size(vxres, vyres) > maxmem) > > > > should work fine. > > My intent is to check at common path than individual module so that we don't > need to add same check to every module. Same approach is proposed at > https://lkml.kernel.org/r/1630294223-7225-1-git-send-email-tcs_kernel@tencent.com . Which I believe is wrong. Thanks for the pointer, I will reply to the actual patch... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds