| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH]segmentation fault in xfs_io mwrite command #2 |
| From: | Utako Kusaka <utako@xxxxxxxxxxxxxx> |
| Date: | Mon, 22 Jan 2007 16:54:30 +0900 |
| Sender: | xfs-bounce@xxxxxxxxxxx |
Hi,
My previous patch is not enough.
If mmap offset is not 0, segmentation fault occurs in mwrite.
This patch fixes it.
Example:
# xfs_io -f file7 -c "mmap 4096 4096" -c "mwrite"
Segmentation fault
Signed-off-by: Utako Kusaka <utako@xxxxxxxxxxxxxx>
---
--- xfsprogs-2.8.18-orgn/io/mmap.c 2006-12-13 13:57:22.000000000 +0900
+++ xfsprogs-2.8.18/io/mmap.c 2007-01-19 16:29:44.000000000 +0900
@@ -562,6 +562,7 @@ mwrite_f(
if (!start)
return 0;
+ offset -= mapping->offset;
if (rflag) {
for (tmp = offset + length -1; tmp >= offset; tmp--)
((char *)mapping->addr)[tmp] = seed;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: [PATCH] fix extent length in xfs_io bmap, Barry Naujok |
|---|---|
| Next by Date: | Memory allocation in xfs, Jean Delvare |
| Previous by Thread: | 2.6.20-rc5: cp 18gb 18gb.2 = OOM killer, reproducible just like 2.16.19.2, Justin Piszcz |
| Next by Thread: | Memory allocation in xfs, Jean Delvare |
| Indexes: | [Date] [Thread] [Top] [All Lists] |