[PATCH][STABLE 2.6.18] dm snapshot: fix freeing pending exception

[PATCH][STABLE 2.6.18] dm snapshot: fix freeing pending exception

Post by Milan Bro » Thu, 07 Dec 2006 00:20:07


Fix oops when removing full snapshot
kernel bugzilla bug 7040

If a snapshot became invalid (full) while there is outstanding
pending_exception, pending_complete() forgets to remove
the corresponding exception from its exception table before freeing it.

Already fixed in 2.6.19.

Signed-off-by: Milan Broz < XXXX@XXXXX.COM >

Index: linux-2.6.18.5/drivers/md/dm-snap.c
===================================================================
--- linux-2.6.18.5.orig/drivers/md/dm-snap.c 2006-12-02 01:13:05.000000000 +0100
+++ linux-2.6.18.5/drivers/md/dm-snap.c 2006-12-04 17:55:28.000000000 +0100
@@ -691,6 +691,7 @@ static void pending_complete(struct pend

free_exception(e);

+ remove_exception(&pe->e);
error_snapshot_bios(pe);
goto out;
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

1. [stable] [patch 00/18] 2.6.18-stable review

2. [PATCH 2.6.18-rc4 0/5] drivers/ieee1394/sbp2: fixes for 2.6.18-rc

There are a few bug fixes for sbp2 in -mm. Here is a selection of those
which I consider important enough and/or simple enough for inclusion
into 2.6.18-rc:

1/5 ieee1394: sbp2: workaround for write protect bit of Initio firmware
fix bug #6947 (workaround for a device bug, not a Linux bug per se)

2/5 ieee1394: sbp2: safer agent reset in error handlers
simple and obvious improvement

3/5 ieee1394: sbp2: safer last_orb and next_ORB handling
prerequisite for patch 5/5, and more

4/5 ieee1394: sbp2: discard return value of sbp2_link_orb_command
prerequisite for patch 5/5

5/5 ieee1394: sbp2: handle "sbp2util_node_write_no_wait failed"
fix bug #6948

combined diffstat:
drivers/ieee1394/sbp2.c | 186 +++++++++++++++++++++++++++-------------
drivers/ieee1394/sbp2.h | 15 +--
2 files changed, 133 insertions(+), 68 deletions(-)
--
Stefan Richter
-=====-=-==- =--- ==-==
http://www.yqcomputer.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/

3. [stable] [patch 00/67] 2.6.18-stable review

4. [patch 00/18] 2.6.18-stable review

5. [patch 00/67] 2.6.18-stable review

6. [PATCH for 2.6.18] [7/8] i386: Fix up backtrace fallback patch

7. 2.6.18-rc1-mm2 and 2.6.18-rc3 (bttv: NULL pointer derefernce)

8. 2.6.18 regression: cpufreq broken since 2.6.18-rc1 on pentium4

9. 2.6.18-rc1-git4 and 2.6.18-rc1-mm1 OOM's on boot

10. Panic in pci_call_probe from 2.6.18-mm2 and 2.6.18-mm3

11. 2.6.18-rc5-mm1, make oldconfig from 2.6.18-rc5 destroys LVM

12. 2.6.18-rc6-mm1 2.6.18-rc5-mm1 Kernel Panic on X60s

13. 2.6.18 hdrinstall ( 2.6.18 -mm merge plans)

14. [2.6.18-mm1] slow boot (was: [2.6.18-rc7-mm1] slow boot)

15. [PATCH] 2.6.18-rc1-mm1: fix stub version of module_get_kallsym()