Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1938259imj; Fri, 8 Feb 2019 09:42:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IY16qxuXezNamNzsjKS1iH5bKPTJrBARIPliwP80h+z5PNViLlrKA9hJnwOfHuPCDdTqnKF X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr23819410plb.192.1549647731134; Fri, 08 Feb 2019 09:42:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549647731; cv=none; d=google.com; s=arc-20160816; b=J/PzHns+XuAwjeX5LfHLoxU8aV3d0Yv4g+MJue3enB/X/ARdzc4NPvGCU6riAZCBye 2tqPq9B5VQNPUzXrzn9BodfmF5YXIAEu8BVFjIaopibaimerT0IgEGAncG0PSep0teHp cDqxvU+RRDnXB/s5D3q4a6FSneLlO/RVcOiZOnHe/bOU7kfLxExbjHPGhG+RGr2g8atP 36YJ6ZPq9EV0UYHW5X8n00je9lRsW9WjcdON3FPc/2eOwlTiUmZn04Bq1Mg+RjzoMUcS Z8sqiDXw8cJFpAlEEfx6cWMtvccpLBV542JA1/b8997WnWE3/aPpAV3TkRF4TL9yQvJ8 QXCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=Qc4cX0DTFgQuiIvhqq/3wQbXD2Zyuh5pHVBWoKZGDqo=; b=mVbRnYlwhN2bKvEza/wczB7HEOxjYTyPtrl+Mk12KvfNG81wsCspiFzR4Wg267e+w0 QFQ6RcprZNmoRlHJFnWzUYxAb5n3Ys99kxPUhtFOI6rObNtUq2Mx1KBuc5whs/lsmu2G w+Xk+81lG5Jqd6F8ojBXMdvKjTL+qYSm+yohd7sBft3wAq8uYezEkiSi7DZdMw7dFf4P VaXkOQlGLcpbHyXWJ+nCgI1Ny6QT52IBIEnhIdVh9ecbZg16lT8OtcX75WeySG4QKFJF HobXNkFTvsxLYgiiB9YVDql7Id8wZ4wmaj4teiDuBePQVMBMYB0I+Xcz0DRvaZ7fxnM9 OQTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=E+B1MGdh; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m14si2678813pgd.326.2019.02.08.09.41.54; Fri, 08 Feb 2019 09:42:11 -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=@samsung.com header.s=mail20170921 header.b=E+B1MGdh; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbfBHRlr (ORCPT + 99 others); Fri, 8 Feb 2019 12:41:47 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:48946 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728015AbfBHRlq (ORCPT ); Fri, 8 Feb 2019 12:41:46 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190208174144euoutp01f96eb48de53cda39fcec83dce082fb63~BdGCOEBli3252232522euoutp01a for ; Fri, 8 Feb 2019 17:41:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190208174144euoutp01f96eb48de53cda39fcec83dce082fb63~BdGCOEBli3252232522euoutp01a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1549647704; bh=Qc4cX0DTFgQuiIvhqq/3wQbXD2Zyuh5pHVBWoKZGDqo=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=E+B1MGdh9RguAxZBoKHcB4gjRCD3OXN6GLqF6cM1XC1R55nJNJ6bycCbAAJ3V07Vg QNwquAB5tc+721PSsHsX4nhUxwuYLJrOXeqcM1SoPQ6qGTTKOuFxJQQVVa2SluDKRN y6hl4aooDIVqYu/00dYBeUncnesxvB2XG4QPF/P4= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190208174144eucas1p2ba7e1e39aa0e7cfc4f530a63853ee3b8~BdGBoyBvH1000610006eucas1p2y; Fri, 8 Feb 2019 17:41:44 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 26.AD.04441.75FBD5C5; Fri, 8 Feb 2019 17:41:43 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190208174143eucas1p2981b4b0cc0aad9a3f2099361aafbc5d3~BdGA2D7fd2317123171eucas1p2B; Fri, 8 Feb 2019 17:41:43 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190208174143eusmtrp2f94985dac358010e054eb8e5a187c5e7~BdGAnOirB1356913569eusmtrp2Z; Fri, 8 Feb 2019 17:41:43 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-de-5c5dbf571193 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3C.9D.04128.75FBD5C5; Fri, 8 Feb 2019 17:41:43 +0000 (GMT) Received: from [106.120.53.102] (unknown [106.120.53.102]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190208174142eusmtip22e917b9d8c7c7be73e550e0dfdc05837~BdGAR1CEx2007920079eusmtip2L; Fri, 8 Feb 2019 17:41:42 +0000 (GMT) Subject: Re: [PATCH] fbdev: fbmem: fix memory access if logo is bigger than the screen To: Martin Kepplinger Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, daniel.vetter@ffwll.ch, manfred.schlaegl@ginzinger.com, linux-kernel@vger.kernel.org, Martin Kepplinger From: Bartlomiej Zolnierkiewicz Message-ID: <16025871-3918-e9be-e6af-de9831cdc064@samsung.com> Date: Fri, 8 Feb 2019 18:41:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20190128100435.759-1-martink@posteo.de> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsWy7djP87rh+2NjDE7strRY+PAus8WVr+/Z LE70fWC1uLxrDpvF+Su32S32r6qxuLZiIqsDu8febwtYPI72rWfxuN99nMnj12FRj8+b5AJY o7hsUlJzMstSi/TtErgy5u46wF7wkruis9G4gfE1ZxcjB4eEgInEl7dJXYxcHEICKxglZvV9 ZYNwvjBKtFxZxgzhfGaU6P20AMjhBOt48WorC0RiOaNEx6FGKOc9o8TxxhawKmGBCInpk5ay g9giApoSy/7uAytiFrjIKLFxbhNYEZuAlcTE9lWMIDavgJ3Eu+ZrYHEWARWJQ7OmMYEcKAo0 qP+MOkSJoMTJmU9YQGxOAVOJpWfawMqZBQwkjiyawwphy0tsfzsH7GwJgWXsEhMnH2WBONtF YlnDFVYIW1ji1fEt7BC2jMT/nfOZIBqmM0q8+bWUBcJZzyix5swxJogqa4nDxy9CdTtKHJ6w ggkSfHwSN94KQmzmk5i0bTozRJhXoqNNC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an phakFsH0MXFwSjUwVn3niRZ6FOc+9bMnL9MSj1W//n2y/VGzq8Nlwe/s5u5DaX11uprqr6r/ Ns02XFu9doVre8b2TWceXpDz+eO/cPXKmVMiM+fMsGlM/7Y29GrioynTttdcaO+KYJmSImuv tOL2lL9G53+7LdR8urvqp8zeCdOrIu7KsK3fEZCww8nn8JOJBgI3NyixFGckGmoxFxUnAgDd v4nItAIAAA== X-CMS-MailID: 20190208174143eucas1p2981b4b0cc0aad9a3f2099361aafbc5d3 X-Msg-Generator: CA X-RootMTR: 20190128100446epcas2p24b13ff5ae2af639b66d4bcd4d4722799 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190128100446epcas2p24b13ff5ae2af639b66d4bcd4d4722799 References: <20190128100435.759-1-martink@posteo.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/28/2019 11:04 AM, Martin Kepplinger wrote: > From: Manfred Schlaegl > > There is no clipping on the x or y axis for logos larger that the framebuffer > size. Therefore: a logo bigger than screen size leads to invalid memory access: > > [ 1.254664] Backtrace: > [ 1.254728] [] (cfb_imageblit) from [] (fb_show_logo+0x620/0x684) > [ 1.254763] r10:00000003 r9:00027fd8 r8:c6a40000 r7:c6a36e50 r6:00000000 r5:c06b81e4 > [ 1.254774] r4:c6a3e800 > [ 1.254810] [] (fb_show_logo) from [] (fbcon_switch+0x3fc/0x46c) > [ 1.254842] r10:c6a3e824 r9:c6a3e800 r8:00000000 r7:c6a0c000 r6:c070b014 r5:c6a3e800 > [ 1.254852] r4:c6808c00 > [ 1.254889] [] (fbcon_switch) from [] (redraw_screen+0xf0/0x1e8) > [ 1.254918] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:c070d5a0 r5:00000080 > [ 1.254928] r4:c6808c00 > [ 1.254961] [] (redraw_screen) from [] (do_bind_con_driver+0x194/0x2e4) > [ 1.254991] r9:00000000 r8:00000000 r7:00000014 r6:c070d5a0 r5:c070d5a0 r4:c070d5a0 > > So prevent displaying a logo bigger than screen size and avoid invalid > memory access. > > Signed-off-by: Manfred Schlaegl > Signed-off-by: Martin Kepplinger Patch queued for v5.1, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics