Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754232AbbGXQDt (ORCPT ); Fri, 24 Jul 2015 12:03:49 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:34781 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752674AbbGXQDr (ORCPT ); Fri, 24 Jul 2015 12:03:47 -0400 From: Pali =?utf-8?q?Roh=C3=A1r?= To: Tomi Valkeinen , "Jean-Christophe Plagniol-Villard" , Jyri Sarha Subject: omapdss: Division by zero in kernel Date: Fri, 24 Jul 2015 18:03:42 +0200 User-Agent: KMail/1.13.7 (Linux/3.13.0-58-generic; KDE/4.14.2; x86_64; ; ) Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pavel Machek , Sebastian Reichel , Aaro Koskinen , Tony Lindgren , Nishanth Menon MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1609956.yA967ILsQD"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201507241803.42891@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4016 Lines: 104 --nextPart1609956.yA967ILsQD Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, when on N900 (real HW or qemu) I run this command / # echo 0 > /sys/devices/platform/omapdss/overlay0/enabled && echo 0 > /sy= s/class/graphics/fb0/size then kernel crash with this error message / # [ 29.904113] Division by zero in kernel. ** 3375 printk messages dropped ** [ 29.963836] [] (__aeabi_uid= ivmod) from []=20 (cfb_imageblit+0xac/0x464) ** 8426 printk messages dropped ** [ 30.111083] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 8380 printk messages dropped ** [ 30.258209] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 7813 printk messages dropped ** [ 30.400054] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 7666 printk messages dropped ** [ 30.538391] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 7687 printk messages dropped ** [ 30.676544] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 7960 printk messages dropped ** [ 30.819915] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 8317 printk messages dropped ** [ 30.966979] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 8590 printk messages dropped ** [ 31.122528] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 8885 printk messages dropped ** [ 31.287658] [] (fbcon_scrol= l) from [] (scrup+0x60/0x128) ** 9408 printk messages dropped ** [ 31.461425] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 9787 printk messages dropped ** [ 31.644287] [] (fbcon_redra= w.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 10081 printk messages dropped ** [ 31.833984] [] (fbcon_redr= aw.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 10501 printk messages dropped ** [ 32.031066] [] (fbcon_redr= aw.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 10816 printk messages dropped ** [ 32.233001] [] (fbcon_redr= aw.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 10900 printk messages dropped ** [ 32.440490] [] (fbcon_redr= aw.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 10837 printk messages dropped ** [ 32.645233] [] (fbcon_redr= aw.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 10837 printk messages dropped ** [ 32.848999] [] (fbcon_redr= aw.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 10837 printk messages dropped ** [ 33.053833] [] (fbcon_redr= aw.isra.12) from []=20 (fbcon_scroll+0x6a0/0xcbc) ** 10838 printk messages dropped ** [ 33.258361] [] (fbcon_scro= ll) from [] (scrup+0x60/0x128) I suspect that problem is in omapdss. I do not know if size 0 make sense, but Maemo userspace is calling above commands and on Nokia's 2.6.28 kernel there is no crash or error message. IMHO Division by zero in kernel should not be there even if userspace call "incorrect" command. =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart1609956.yA967ILsQD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlWyYd4ACgkQi/DJPQPkQ1JDZQCgwPOH8YzfeGMxGeiagvpuVQFY ycoAn3LHUR3eQMWXDmLQfC1YY1U0AEXd =H5AP -----END PGP SIGNATURE----- --nextPart1609956.yA967ILsQD-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/