Peter Robinson
de55acd100
watchdog: omap_wdt: fix null pointer dereference
Fix issue from two patches overlapping causing a kernel oops
[ 3569.297449] Unable to handle kernel NULL pointer dereference at virtual address 00000088
[ 3569.306272] pgd = dc894000
[ 3569.309287] [00000088] *pgd=00000000
[ 3569.313104] Internal error: Oops: 5 [#1] SMP ARM
[ 3569.317986] Modules linked in: ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_security ip6table_raw ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_filter ip6_tables iptable_security iptable_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle musb_dsps cppi41 musb_hdrc phy_am335x udc_core phy_generic phy_am335x_control omap_sham omap_aes omap_rng omap_hwspinlock omap_mailbox hwspinlock_core musb_am335x omap_wdt at24 8250_omap leds_gpio cpufreq_dt smsc davinci_mdio mmc_block ti_cpsw cpsw_common ptp pps_core cpsw_ale davinci_cpdma omap_hsmmc omap_dma mmc_core i2c_dev
[ 3569.386293] CPU: 0 PID: 1429 Comm: wdctl Not tainted 4.3.0-0.rc7.git0.1.fc24.armv7hl #1
[ 3569.394740] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 3569.401179] task: dbd11a00 ti: dbaac000 task.ti: dbaac000
[ 3569.406917] PC is at omap_wdt_get_timeleft+0xc/0x20 [omap_wdt]
[ 3569.413106] LR is at watchdog_ioctl+0x3cc/0x42c
[ 3569.417902] pc : [<bf0ab138>] lr : [<c0739c54>] psr: 600f0013
[ 3569.417902] sp : dbaadf18 ip : 00000003 fp : 7f5d3bbe
[ 3569.430014] r10: 00000000 r9 : 00000003 r8 : bef21ab8
[ 3569.435535] r7 : dbbc0f7c r6 : dbbc0f18 r5 : bef21ab8 r4 : 00000000
[ 3569.442427] r3 : 00000000 r2 : 00000000 r1 : 8004570a r0 : dbbc0f18
[ 3569.449323] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 3569.456858] Control: 10c5387d Table: 9c894019 DAC: 00000051
[ 3569.462927] Process wdctl (pid: 1429, stack limit = 0xdbaac220)
[ 3569.469179] Stack: (0xdbaadf18 to 0xdbaae000)
[ 3569.473790] df00: bef21ab8 dbf60e38
[ 3569.482441] df20: dc91b840 8004570a bef21ab8 c03988a4 dbaadf48 dc854000 00000000 dd313850
[ 3569.491092] df40: ddf033b8 0000570a dc91b80b dbaadf3c dbf60e38 00000020 c0df9250 c0df6c48
[ 3569.499741] df60: dc91b840 8004570a 00000000 dc91b840 dc91b840 8004570a bef21ab8 00000003
[ 3569.508389] df80: 00000000 c03989d4 bef21b74 7f5d3bad 00000003 00000036 c020fcc4 dbaac000
[ 3569.517037] dfa0: 00000000 c020fb00 bef21b74 7f5d3bad 00000003 8004570a bef21ab8 00000001
[ 3569.525685] dfc0: bef21b74 7f5d3bad 00000003 00000036 00000001 00000000 7f5e4eb0 7f5d3bbe
[ 3569.534334] dfe0: 7f5e4f10 bef21a3c 7f5d0a54 b6e97e0c a00f0010 00000003 00000000 00000000
[ 3569.543038] [<bf0ab138>] (omap_wdt_get_timeleft [omap_wdt]) from [<c0739c54>] (watchdog_ioctl+0x3cc/0x42c)
[ 3569.553266] [<c0739c54>] (watchdog_ioctl) from [<c03988a4>] (do_vfs_ioctl+0x5bc/0x698)
[ 3569.561648] [<c03988a4>] (do_vfs_ioctl) from [<c03989d4>] (SyS_ioctl+0x54/0x7c)
[ 3569.569400] [<c03989d4>] (SyS_ioctl) from [<c020fb00>] (ret_fast_syscall+0x0/0x3c)
[ 3569.577413] Code: e12fff1e e52de004 e8bd4000 e5903060 (e5933088)
[ 3569.584089] ---[ end trace cec3039bd3ae610a ]---
Cc: <stable@vger.kernel.org> # v4.2+
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Acked-by: Lars Poeschel <poeschel@lemonage.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2015-11-23 08:58:21 +01:00
..
2014-10-20 16:21:56 +02:00
2014-10-20 16:21:56 +02:00
2014-01-28 19:07:07 +01:00
2014-09-26 00:00:32 -07:00
2014-10-20 16:21:56 +02:00
2014-10-20 16:21:56 +02:00
2015-09-11 15:12:59 -07:00
2015-09-09 21:38:52 +02:00
2015-09-09 21:38:29 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2015-09-28 10:56:05 +02:00
2015-10-27 16:12:02 +01:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:34:34 +02:00
2015-01-21 14:52:34 +01:00
2015-09-09 21:39:22 +02:00
2014-03-31 13:22:45 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-10-14 14:32:06 +02:00
2015-09-09 21:39:22 +02:00
2015-06-22 15:54:31 +02:00
2015-09-09 21:39:22 +02:00
2013-11-17 19:38:13 +01:00
2012-07-23 12:46:38 +02:00
2015-09-28 10:56:01 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2015-06-22 15:54:36 +02:00
2014-03-31 13:22:45 +02:00
2014-10-20 16:21:56 +02:00
2014-03-31 13:31:06 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:33:41 +02:00
2015-10-28 22:57:17 +01:00
2014-03-31 13:26:31 +02:00
2014-03-31 13:26:56 +02:00
2012-03-27 19:59:26 +02:00
2015-10-28 22:58:32 +01:00
2013-11-17 19:38:13 +01:00
2015-02-17 21:32:08 +01:00
2013-11-17 19:38:13 +01:00
2012-05-09 17:20:09 +02:00
2012-05-09 17:20:09 +02:00
2015-08-11 15:03:52 +01:00
2013-11-17 19:38:13 +01:00
2015-09-09 21:39:22 +02:00
2015-10-27 16:12:02 +01:00
2014-10-20 16:21:56 +02:00
2015-08-05 10:35:49 -07:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:36:17 +02:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2015-10-27 16:12:02 +01:00
2015-06-29 11:50:53 +02:00
2015-09-28 10:56:01 +02:00
2015-09-09 21:39:22 +02:00
2015-01-21 14:52:34 +01:00
2013-11-17 19:38:13 +01:00
2015-09-28 10:56:01 +02:00
2015-09-09 21:37:51 +02:00
2015-09-09 21:34:02 +02:00
2014-03-31 13:22:45 +02:00
2014-10-20 16:21:56 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:34:24 +02:00
2011-01-12 13:51:23 +00:00
2015-04-22 15:28:40 +02:00
2010-08-05 13:26:22 +01:00
2014-10-20 20:43:42 +02:00
2015-11-23 08:58:21 +01:00
2015-06-22 15:54:35 +02:00
2015-09-09 21:39:22 +02:00
2014-03-31 13:31:06 +02:00
2014-01-28 19:07:07 +01:00
2014-03-31 13:23:19 +02:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2013-11-17 19:38:13 +01:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2014-10-20 20:55:02 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2013-11-17 19:38:13 +01:00
2015-09-09 21:38:29 +02:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2014-03-31 13:27:34 +02:00
2013-12-10 08:48:15 +01:00
2014-10-20 16:21:56 +02:00
2013-11-17 19:38:13 +01:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2013-11-17 19:38:13 +01:00
2014-03-31 13:31:06 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2013-03-22 23:21:55 +01:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:34:14 +02:00
2015-09-09 21:39:22 +02:00
2015-08-05 10:35:49 -07:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-02-17 21:33:37 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2015-10-27 16:49:57 +01:00
2012-05-30 07:54:25 +02:00
2015-11-03 14:36:14 +01:00
2013-11-17 19:38:13 +01:00
2014-03-31 13:28:20 +02:00
2013-11-17 19:38:13 +01:00
2014-03-31 13:22:45 +02:00
2013-11-17 19:38:13 +01:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00