Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6287992rwn; Tue, 13 Sep 2022 01:45:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7qyXwE7XfEbrNLPS0qP5ENeA4DKZ1mKxOdx19SKNX/UswXG9x6LTKbZDnjZ9FYVMbQfLX1 X-Received: by 2002:a17:906:cc13:b0:77d:46c2:f37c with SMTP id ml19-20020a170906cc1300b0077d46c2f37cmr6342526ejb.45.1663058707433; Tue, 13 Sep 2022 01:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663058707; cv=none; d=google.com; s=arc-20160816; b=DJRpBIjZ+CO9xZnlU3nBzbjKZL5FtKJRud8fMcSioFGN8C+uzwf1nIWz86IZgdhMYV OyGk8z/TyBbo0ab9wP063ds/UQq2cz2qePZS83bS+bnzxWI8TdNc0ShM5sGXM5CFHIEk u696BgVL/VgH4Yc+sMvfcTVqxFcxo16FEc6ZOvtAcCJqwH/Q40vcrbsgNq8thFuZVncW Sr+re2npmSfcwM9Ikdam2qohGblMpMJt5/5N8xkyTYSrjOIGl9U8TtIGxSJzaJQhGLON O2nBNl8iVMsT+QFu1pLG+4ZFGWgndee+HEiu7IjyqjJpf5KSsnIFbK1ZmhmzbUwxRHc8 KEBg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VsinkXe0a0JT5oyA02lOTK6/F0qUiuM+qTECVlaSSz4=; b=gOZnCXkkwck3GWFMXIhWbHq/gi6kdQfjEe7hFrlVMsOlmQK30U6V+HvTBDxdJ+WQhd vluBKv4M6ZpWvDJpmSAvNQJiDan8UIez2csA5SJ5S+iYD1pitHiHYMxLiokDc5cloh29 XaHs60sjP6yn7pOLoRQNp/rBouGgp3SrgBpqGWnJNZB90sNnX9u3waHbn6WuZHXAMkXQ A8GIzCsgRO8eoFd1lvKcq6P3YpGIw60IF7XRaoeLmjUPpPw8oQ+xZnjeWGm9jqrNB9BI FGSJ0af6XT5+kRShn6fi92i0Vc0i6V/7ig9KSEgY+WwHB+f4/Zg6A1jKzY5gIpfIvwTM 3tbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ei7iP1hd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a17090631c900b00734bbe8d2e1si8152806ejf.545.2022.09.13.01.44.40; Tue, 13 Sep 2022 01:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ei7iP1hd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbiIMIVm (ORCPT + 99 others); Tue, 13 Sep 2022 04:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231488AbiIMIVH (ORCPT ); Tue, 13 Sep 2022 04:21:07 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 273BA5B043 for ; Tue, 13 Sep 2022 01:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663057257; x=1694593257; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=YQ4XpgIYxwuDp/T9stIwbL+/CqELDrKtFwPudLSttnk=; b=Ei7iP1hda2nTbfP4jFennY4iRlH8BeZ7bE4i3zBMsjIrrEo5RWPaQ3V+ KXH83W+JB6xbVGhMtr5dLNBwwFWgzwEyqXm1UQpgwvB0+x8pjV8KI8OOe 5yRx7WPc86cVvaetb5XGmrX19faJ5RkCzo7FsH1uK6QdZOGsl0smyZAa5 J2xNkMLGLYSRh5oJ5tQSyevpr4we1+ifkt6fgX9Cith4FbZV0fOextjSe nXZnH3ialyUQMDKDTdqV+6FQ+bNJXuxndvPXTyr9DofKN+0enQvWPYVwm mumfOupJTZrKArALTqxxtfXDygMncwamIRNYjwXhA9/mIFy6Gmjl8zMU/ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="285099932" X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="285099932" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 01:20:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="649574775" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.191]) by orsmga001.jf.intel.com with SMTP; 13 Sep 2022 01:20:52 -0700 Received: by stinkbox (sSMTP sendmail emulation); Tue, 13 Sep 2022 11:20:51 +0300 Date: Tue, 13 Sep 2022 11:20:51 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: butt3rflyh4ck Cc: maarten.lankhorst@linux.intel.com, mripard@kernel.org, Thomas Zimmermann , Dave Airlie , Daniel Vetter , LKML , dri-devel , Ben Davis , Brian Starkey , Liviu Dudau , Jonas Karlman Subject: Re: A divide error bug in framebuffer_check Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 13, 2022 at 01:49:40AM +0800, butt3rflyh4ck wrote: > Hi, there is a divide error bug in framebuffer_check in > drivers/gpu/drm/drm_framebuffer.c in the latest kernel. > we can trigger it via drm_mode_addfb2 IOCTL. > The call trace is drm_mode_addfb2 -> drm_internal_framebuffer_create > -> framebuffer_check. > let us see code below: > ``` > { .format = DRM_FORMAT_Q410, .depth = 0, > .num_planes = 3, .char_per_block = { 2, 2, 2 }, > .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 0, > .vsub = 0, .is_yuv = true }, > { .format = DRM_FORMAT_Q401, .depth = 0, > .num_planes = 3, .char_per_block = { 2, 2, 2 }, > .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 0, > .vsub = 0, .is_yuv = true }, > ``` > we can see format.hsub and format.vsub all are NULL. Yeah, those look borked. Added in commit 94b292b27734 ("drm: drm_fourcc: add NV15, Q410, Q401 YUV formats") Adding the relevant people to cc... -- Ville Syrj?l? Intel