Junxiao Bi
9e13f1f9de
ocfs2: o2hb: fix double free bug
This is a regression issue and caused the following kernel panic when do
ocfs2 multiple test.
BUG: unable to handle kernel paging request at 00000002000800c0
IP: [<ffffffff81192978>] kmem_cache_alloc+0x78/0x160
PGD 7bbe5067 PUD 0
Oops: 0000 [#1] SMP
Modules linked in: ocfs2_dlmfs ocfs2_stack_o2cb ocfs2_dlm ocfs2_nodemanager ocfs2_stackglue iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi xen_kbdfront xen_netfront xen_fbfront xen_blkfront
CPU: 2 PID: 4044 Comm: mpirun Not tainted 4.5.0-rc5-next-20160225 #1
Hardware name: Xen HVM domU, BIOS 4.3.1OVM 05/14/2014
task: ffff88007a521a80 ti: ffff88007aed0000 task.ti: ffff88007aed0000
RIP: 0010:[<ffffffff81192978>] [<ffffffff81192978>] kmem_cache_alloc+0x78/0x160
RSP: 0018:ffff88007aed3a48 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000001991
RDX: 0000000000001990 RSI: 00000000024000c0 RDI: 000000000001b330
RBP: ffff88007aed3a98 R08: ffff88007d29b330 R09: 00000002000800c0
R10: 0000000c51376d87 R11: ffff8800792cac38 R12: ffff88007cc30f00
R13: 00000000024000c0 R14: ffffffff811b053f R15: ffff88007aed3ce7
FS: 0000000000000000(0000) GS:ffff88007d280000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000002000800c0 CR3: 000000007aeb2000 CR4: 00000000000406e0
Call Trace:
__d_alloc+0x2f/0x1a0
d_alloc+0x17/0x80
lookup_dcache+0x8a/0xc0
path_openat+0x3c3/0x1210
do_filp_open+0x80/0xe0
do_sys_open+0x110/0x200
SyS_open+0x19/0x20
do_syscall_64+0x72/0x230
entry_SYSCALL64_slow_path+0x25/0x25
Code: 05 e6 77 e7 7e 4d 8b 08 49 8b 40 10 4d 85 c9 0f 84 dd 00 00 00 48 85 c0 0f 84 d4 00 00 00 49 63 44 24 20 49 8b 3c 24 48 8d 4a 01 <49> 8b 1c 01 4c 89 c8 65 48 0f c7 0f 0f 94 c0 3c 01 75 b6 49 63
RIP kmem_cache_alloc+0x78/0x160
CR2: 00000002000800c0
---[ end trace 823969e602e4aaac ]---
Fixes: a4a1dfa4bb8b("ocfs2/cluster: fix memory leak in o2hb_region_release")
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-03-25 16:37:42 -07:00
..
2016-01-22 18:04:28 -05:00
2016-01-20 17:09:18 -08:00
2016-02-20 00:15:51 -05:00
2016-01-22 18:04:28 -05:00
2016-03-19 18:52:29 -07:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-03-21 18:12:42 -07:00
2016-02-01 12:30:10 -05:00
2016-03-19 18:52:29 -07:00
2016-03-19 18:52:29 -07:00
2016-01-23 12:24:56 -08:00
2016-03-19 18:52:29 -07:00
2015-12-08 22:41:36 -05:00
2016-03-21 11:03:02 -07:00
2016-01-22 18:04:28 -05:00
2016-02-06 23:45:46 -08:00
2016-03-17 16:38:36 -07:00
2016-03-23 06:12:39 -07:00
2016-02-10 16:25:52 +00:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-03-17 16:31:18 -07:00
2016-03-22 15:36:02 -07:00
2016-03-17 21:19:47 -07:00
2016-03-22 15:36:02 -07:00
2015-12-08 22:41:36 -05:00
2015-11-11 02:11:02 -05:00
2016-03-16 14:38:31 +01:00
2016-03-17 16:51:32 -07:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-02-27 19:15:51 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-03-13 17:38:20 -04:00
2016-03-24 19:57:15 -07:00
2016-01-22 18:04:28 -05:00
2016-03-21 10:05:13 -07:00
2016-01-07 10:10:50 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-03-07 22:25:16 -05:00
2016-03-24 19:50:32 -07:00
2015-08-13 10:22:06 -04:00
2016-03-24 19:50:32 -07:00
2016-03-17 15:09:34 -07:00
2016-02-18 16:23:24 -08:00
2016-01-22 18:04:28 -05:00
2016-03-25 16:37:42 -07:00
2016-01-14 16:00:49 -08:00
2016-03-21 17:31:46 +01:00
2016-03-21 10:05:13 -07:00
2016-03-10 09:43:36 -08:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-03-21 12:22:37 -07:00
2015-12-08 22:41:36 -05:00
2016-02-09 13:05:23 +01:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2015-11-13 21:53:18 -08:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-03-20 21:37:46 +01:00
2016-02-09 13:05:23 +01:00
2016-01-14 16:00:49 -08:00
2016-03-24 19:50:32 -07:00
2015-09-04 16:54:41 -07:00
2016-01-22 18:04:28 -05:00
2015-12-06 21:17:14 -05:00
2015-11-10 12:07:22 -08:00
2016-02-27 10:28:52 -08:00
2016-01-22 18:04:28 -05:00
2016-03-18 16:43:11 -07:00
2016-03-15 16:55:16 -07:00
2015-08-05 13:49:35 -07:00
2016-02-14 14:25:59 -08:00
2016-01-04 10:28:32 -05:00
2016-03-22 15:36:02 -07:00
2016-03-21 11:53:05 -07:00
2016-03-14 00:17:38 -04:00
2016-03-21 11:53:05 -07:00
2015-08-17 18:39:46 -04:00
2016-03-22 15:36:02 -07:00
2016-03-17 15:09:34 -07:00
2016-03-20 19:08:56 -07:00
2016-01-09 02:55:37 -05:00
2016-03-22 15:36:02 -07:00
2015-08-07 04:39:40 +03:00
2016-01-14 16:00:49 -08:00
2016-01-19 12:02:23 -05:00
2016-03-20 09:44:20 -06:00
2016-02-16 14:57:21 -07:00
2016-01-08 21:20:11 -05:00
2016-01-22 18:04:28 -05:00
2016-03-17 21:19:33 -07:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-03-17 21:19:33 -07:00
2016-02-22 22:44:04 -05:00
2015-06-30 19:44:56 -07:00
2016-03-15 16:55:16 -07:00
2016-03-14 00:16:33 -04:00
2016-01-22 18:04:28 -05:00
2015-09-11 15:21:34 -07:00
2016-03-22 15:36:02 -07:00
2016-01-19 19:25:21 -05:00
2016-02-20 00:15:52 -05:00
2015-07-22 20:33:27 -05:00
2015-12-13 19:46:12 -05:00
2016-03-16 13:09:08 -04:00
2016-03-18 16:07:38 -04:00
2016-01-22 18:04:28 -05:00
2016-03-17 15:09:34 -07:00
2015-11-06 17:50:42 -08:00
2015-08-07 04:39:40 +03:00
2016-03-18 16:07:38 -04:00
2016-01-16 11:17:23 -08:00
2016-03-03 14:42:50 -07:00
2015-11-06 17:50:42 -08:00
2016-01-17 11:13:55 +01:00
2016-03-02 09:03:18 -08:00
2016-01-22 18:04:28 -05:00
2016-02-20 00:15:51 -05:00