Ohad Ben-Cohen
87997aaa1b
iommu/omap: fix NULL pointer dereference
Fix this:
root@omap4430-panda:~# cat /debug/iommu/ducati/mem
[ 62.725708] Unable to handle kernel NULL pointer dereference at virtual addre
ss 0000001c
[ 62.725708] pgd = e6240000
[ 62.737091] [0000001c] *pgd=a7168831, *pte=00000000, *ppte=00000000
[ 62.743682] Internal error: Oops: 17 [#1] SMP
[ 62.743682] Modules linked in: omap_iommu_debug omap_iovmm virtio_rpmsg_bus o
map_remoteproc remoteproc virtio_ring virtio mailbox_mach mailbox
[ 62.743682] CPU: 0 Not tainted (3.3.0-rc1-00265-g382f84e-dirty #682)
[ 62.743682] PC is at debug_read_mem+0x5c/0xac [omap_iommu_debug]
[ 62.743682] LR is at 0x1004
[ 62.777832] pc : [<bf033178>] lr : [<00001004>] psr: 60000013
[ 62.777832] sp : e72c7f40 ip : c0763c00 fp : 00000001
[ 62.777832] r10: 00000000 r9 : 00000000 r8 : e72c7f80
[ 62.777832] r7 : e6ffdc08 r6 : bed1ac78 r5 : 00001000 r4 : e7276000
[ 62.777832] r3 : e60f3460 r2 : 00000000 r1 : e60f38c0 r0 : 00000000
[ 62.777832] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 62.816375] Control: 10c53c7d Table: a624004a DAC: 00000015
[ 62.816375] Process cat (pid: 1176, stack limit = 0xe72c62f8)
[ 62.828369] Stack: (0xe72c7f40 to 0xe72c8000)
...
[ 62.884185] [<bf033178>] (debug_read_mem+0x5c/0xac [omap_iommu_debug]) from [<c010e354>] (vfs_read+0xac/0x130)
[ 62.884185] [<c010e354>] (vfs_read+0xac/0x130) from [<c010e4a8>] (sys_read+0x40/0x70)
[ 62.884185] [<c010e4a8>] (sys_read+0x40/0x70) from [<c0014a00>] (ret_fast_syscall+0x0/0x3c)
Fix also its 'echo bla > /debug/iommu/ducati/mem' Oops sibling, too.
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Hiroshi Doyu <hdoyu@nvidia.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Joerg Roedel <Joerg.Roedel@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
2012-02-24 14:10:54 +01:00
..
2012-01-13 09:32:20 +10:30
2012-01-18 15:51:48 -08:00
2012-01-08 13:10:57 -08:00
2012-01-17 20:50:53 -05:00
2012-01-13 09:32:20 +10:30
2012-01-16 15:02:30 -08:00
2012-01-17 09:54:08 -05:00
2012-01-18 15:41:27 -08:00
2012-01-13 09:32:20 +10:30
2012-01-14 15:07:24 -08:00
2012-01-18 15:50:17 -08:00
2011-12-28 21:35:06 +08:00
2012-01-06 18:15:25 -08:00
2012-01-11 18:53:33 -08:00
2011-12-21 14:29:42 -08:00
2012-01-10 22:01:27 -08:00
2011-12-21 09:51:23 +01:00
2012-01-17 18:40:24 -08:00
2012-01-13 09:32:20 +10:30
2012-01-13 09:32:20 +10:30
2012-01-12 11:53:55 -05:00
2012-01-18 13:48:43 -07:00
2012-01-13 09:09:15 +00:00
2012-01-13 09:32:20 +10:30
2012-01-09 12:09:47 -08:00
2012-01-16 22:51:48 +01:00
2012-01-17 23:30:41 +00:00
2012-01-14 15:07:24 -08:00
2012-01-18 01:15:54 -05:00
2012-01-18 16:29:42 -08:00
2012-01-14 12:32:16 -08:00
2012-02-24 14:10:54 +01:00
2012-01-14 12:32:16 -08:00
2012-01-14 12:32:16 -08:00
2012-01-12 15:44:47 +10:30
2012-01-13 09:32:20 +10:30
2012-01-15 12:24:45 -08:00
2012-01-18 12:53:54 -08:00
2012-01-13 09:32:20 +10:30
2012-01-10 10:36:08 -08:00
2012-01-14 12:32:16 -08:00
2012-01-17 18:40:24 -08:00
2012-01-17 18:40:24 -08:00
2012-01-17 18:40:24 -08:00
2012-01-17 22:26:41 -08:00
2012-01-07 12:03:30 -08:00
2012-01-14 13:25:55 -08:00
2012-01-06 08:02:58 -08:00
2012-01-11 18:50:26 -08:00
2012-01-14 12:32:16 -08:00
2012-01-14 18:36:33 -08:00
2012-01-14 13:05:21 -08:00
2012-01-03 09:10:09 +01:00
2012-01-13 09:32:20 +10:30
2012-01-06 12:11:20 -08:00
2012-01-13 09:32:20 +10:30
2011-12-09 07:50:29 -08:00
2012-01-13 20:43:32 -08:00
2012-01-13 20:43:32 -08:00
2012-01-13 09:32:20 +10:30
2012-01-18 12:35:17 -08:00
2012-01-11 23:29:20 -08:00
2012-01-17 18:40:24 -08:00
2011-12-14 14:35:41 -05:00
2012-01-15 12:49:56 -08:00
2011-12-16 06:29:04 +00:00
2012-01-17 18:40:24 -08:00
2012-01-11 18:50:26 -08:00
2012-01-17 18:40:24 -08:00
2012-01-09 12:09:47 -08:00
2012-01-13 10:12:23 -08:00
2012-01-17 18:40:24 -08:00
2012-01-12 15:44:47 +10:30
2011-12-09 19:19:18 -08:00
2012-01-13 09:32:20 +10:30
2012-01-18 15:37:49 -08:00
2012-01-02 13:04:55 +01:00
2012-01-11 23:58:47 -05:00