Lachlan McIlroy
e1f5dbd707
[XFS] Fix use-after-free with buffers
...
We have a use-after-free issue where log completions access buffers via
the buffer log item and the buffer has already been freed. Fix this by
taking a reference on the buffer when attaching the buffer log item and
release the hold when the buffer log item is detached and we no longer
need the buffer. Also create a new function xfs_buf_item_free() to combine
some common code.
SGI-PV: 985757
SGI-Modid: xfs-linux-melb:xfs-kern:32025a
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com >
Signed-off-by: Christoph Hellwig <hch@infradead.org >
2008-09-17 16:52:13 +10:00
..
2008-09-17 16:50:14 +10:00
2008-08-13 16:51:57 +10:00
2008-07-28 16:59:25 +10:00
2008-04-29 16:07:48 +10:00
2008-07-28 16:58:49 +10:00
2008-08-13 16:22:40 +10:00
2008-08-13 16:22:40 +10:00
2008-02-07 16:46:39 +11:00
2008-02-13 16:21:19 -08:00
2008-04-18 12:03:02 +10:00
2008-08-13 16:07:53 +10:00
2008-08-13 16:05:49 +10:00
2008-08-13 16:05:49 +10:00
2008-07-28 16:58:35 +10:00
2008-08-13 16:05:49 +10:00
2008-08-13 16:03:35 +10:00
2008-08-13 15:41:12 +10:00
2008-08-13 15:41:12 +10:00
2008-07-28 16:59:13 +10:00
2008-04-10 16:24:45 +10:00
2008-08-13 16:52:25 +10:00
2008-07-28 16:59:11 +10:00
2008-08-13 16:25:27 +10:00
2008-08-13 16:25:27 +10:00
2008-09-17 16:52:13 +10:00
2008-02-07 18:14:38 +11:00
2008-07-28 16:58:05 +10:00
2008-07-28 16:59:25 +10:00
2008-07-28 16:58:40 +10:00
2008-09-17 16:51:21 +10:00
2008-02-07 18:19:24 +11:00
2008-07-28 16:58:40 +10:00
2008-07-28 16:58:36 +10:00
2008-07-28 16:59:06 +10:00
2008-07-28 16:59:01 +10:00
2008-07-28 16:58:40 +10:00
2008-07-28 16:58:50 +10:00
2008-07-28 16:58:37 +10:00
2008-07-28 16:58:46 +10:00
2008-07-28 16:58:40 +10:00
2008-08-23 12:14:12 -07:00
2008-08-13 16:17:37 +10:00
2008-08-13 16:17:37 +10:00
2008-07-28 16:58:07 +10:00
2008-08-13 16:51:57 +10:00
2008-07-28 16:59:09 +10:00
2008-07-28 16:58:42 +10:00
2008-08-13 16:25:27 +10:00
2008-02-07 18:12:41 +11:00
2008-04-29 15:58:56 +10:00
2008-08-13 16:41:16 +10:00
2008-08-13 16:41:16 +10:00
2008-04-18 11:37:51 +10:00
2008-08-14 09:35:23 +10:00
2008-08-13 16:44:15 +10:00
2008-07-28 16:59:10 +10:00
2008-02-07 16:44:14 +11:00
2008-08-13 16:22:09 +10:00
2008-09-17 16:45:37 +10:00
2008-08-13 16:49:32 +10:00
2008-09-17 16:50:50 +10:00
2008-08-13 16:49:32 +10:00
2008-08-13 16:51:29 +10:00
2008-08-13 16:49:57 +10:00
2008-07-28 16:59:25 +10:00
2008-02-07 16:47:15 +11:00
2008-07-28 16:59:14 +10:00
2008-08-13 15:41:12 +10:00
2008-02-07 18:16:43 +11:00
2008-08-13 16:36:11 +10:00
2008-02-07 18:16:43 +11:00
2008-07-28 16:58:42 +10:00
2008-04-18 11:51:26 +10:00
2008-08-13 16:10:52 +10:00
2008-07-28 16:58:07 +10:00
2008-08-13 16:10:52 +10:00
2008-02-07 18:22:51 +11:00
2008-08-13 16:10:52 +10:00
2008-08-13 16:10:52 +10:00
2008-04-18 12:00:12 +10:00
2008-08-13 15:45:15 +10:00
2008-08-13 16:13:45 +10:00
2008-08-13 16:22:40 +10:00
2008-07-28 16:58:21 +10:00
2008-09-17 16:51:21 +10:00
2008-07-28 16:59:37 +10:00
2008-04-29 15:57:49 +10:00