FreeBSD Bugzilla – Attachment 15800 Details for
Bug 29194
read from raw device might corrupt nearby data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.69 KB, created by
tegge
on 2001-07-24 18:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tegge
Created:
2001-07-24 18:30:00 UTC
Size:
2.69 KB
patch
obsolete
>Index: sys/alpha/alpha/vm_machdep.c >=================================================================== >RCS file: /home/ncvs/src/sys/alpha/alpha/vm_machdep.c,v >retrieving revision 1.56 >diff -u -r1.56 vm_machdep.c >--- sys/alpha/alpha/vm_machdep.c 2001/07/14 21:37:57 1.56 >+++ sys/alpha/alpha/vm_machdep.c 2001/07/24 16:45:13 >@@ -344,7 +344,7 @@ > * Do the vm_fault if needed; do the copy-on-write thing > * when reading stuff off device into memory. > */ >- vm_fault_quick(addr, >+ vm_fault_quick((addr >= bp->b_data) ? addr : bp->b_data, > (bp->b_iocmd == BIO_READ)?(VM_PROT_READ|VM_PROT_WRITE):VM_PROT_READ); > pa = trunc_page(pmap_kextract((vm_offset_t) addr)); > if (pa == 0) >Index: sys/i386/i386/vm_machdep.c >=================================================================== >RCS file: /home/ncvs/src/sys/i386/i386/vm_machdep.c,v >retrieving revision 1.167 >diff -u -r1.167 vm_machdep.c >--- sys/i386/i386/vm_machdep.c 2001/07/12 06:32:50 1.167 >+++ sys/i386/i386/vm_machdep.c 2001/07/24 16:45:13 >@@ -389,7 +389,7 @@ > * Do the vm_fault if needed; do the copy-on-write thing > * when reading stuff off device into memory. > */ >- vm_fault_quick(addr, >+ vm_fault_quick((addr >= bp->b_data) ? addr : bp->b_data, > (bp->b_iocmd == BIO_READ)?(VM_PROT_READ|VM_PROT_WRITE):VM_PROT_READ); > pa = trunc_page(pmap_kextract((vm_offset_t) addr)); > if (pa == 0) >Index: sys/ia64/ia64/vm_machdep.c >=================================================================== >RCS file: /home/ncvs/src/sys/ia64/ia64/vm_machdep.c,v >retrieving revision 1.23 >diff -u -r1.23 vm_machdep.c >--- sys/ia64/ia64/vm_machdep.c 2001/07/05 01:32:41 1.23 >+++ sys/ia64/ia64/vm_machdep.c 2001/07/24 16:45:13 >@@ -380,7 +380,7 @@ > * Do the vm_fault if needed; do the copy-on-write thing > * when reading stuff off device into memory. > */ >- vm_fault_quick(addr, >+ vm_fault_quick((addr >= bp->b_data) ? addr : bp->b_data, > (bp->b_iocmd == BIO_READ)?(VM_PROT_READ|VM_PROT_WRITE):VM_PROT_READ); > pa = trunc_page(pmap_kextract((vm_offset_t) addr)); > if (pa == 0) >Index: sys/powerpc/powerpc/vm_machdep.c >=================================================================== >RCS file: /home/ncvs/src/sys/powerpc/powerpc/vm_machdep.c,v >retrieving revision 1.56 >diff -u -r1.56 vm_machdep.c >--- sys/powerpc/powerpc/vm_machdep.c 2001/07/05 01:32:42 1.56 >+++ sys/powerpc/powerpc/vm_machdep.c 2001/07/24 16:45:13 >@@ -252,7 +252,7 @@ > * Do the vm_fault if needed; do the copy-on-write thing > * when reading stuff off device into memory. > */ >- vm_fault_quick(addr, >+ vm_fault_quick((addr >= bp->b_data) ? addr : bp->b_data, > (bp->b_iocmd == BIO_READ)?(VM_PROT_READ|VM_PROT_WRITE):VM_PROT_READ); > pa = trunc_page(pmap_kextract((vm_offset_t) addr)); > if (pa == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29194
: 15800