All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: Joshua Kwan <joshk@triplehelix.org>
Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [2.6] busybox EFAULT on sparc64
Date: Thu, 19 Aug 2004 01:43:03 +0000	[thread overview]
Message-ID: <20040818184303.1ae13c98.davem@redhat.com> (raw)
In-Reply-To: <20040818235528.GA8070@triplehelix.org>


Oops, it's possible that the bug fixed by this patch
might fix your problem...

=== include/asm-sparc64/pgtable.h 1.42 vs edited ==--- 1.42/include/asm-sparc64/pgtable.h	2004-08-14 22:20:36 -07:00
+++ edited/include/asm-sparc64/pgtable.h	2004-08-18 18:29:17 -07:00
@@ -335,7 +335,7 @@
 	pte_t orig = *ptep;
 
 	*ptep = pte;
-	if (pte_present(orig))
+	if (pte_val(orig) & _PAGE_VALID)
 		tlb_batch_add(mm, addr, ptep, orig);
 }
 

WARNING: multiple messages have this Message-ID (diff)
From: "David S. Miller" <davem@redhat.com>
To: joshk@triplehelix.org (Joshua Kwan)
Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [2.6] busybox EFAULT on sparc64
Date: Wed, 18 Aug 2004 18:43:03 -0700	[thread overview]
Message-ID: <20040818184303.1ae13c98.davem@redhat.com> (raw)
In-Reply-To: <20040818235528.GA8070@triplehelix.org>


Oops, it's possible that the bug fixed by this patch
might fix your problem...

===== include/asm-sparc64/pgtable.h 1.42 vs edited =====
--- 1.42/include/asm-sparc64/pgtable.h	2004-08-14 22:20:36 -07:00
+++ edited/include/asm-sparc64/pgtable.h	2004-08-18 18:29:17 -07:00
@@ -335,7 +335,7 @@
 	pte_t orig = *ptep;
 
 	*ptep = pte;
-	if (pte_present(orig))
+	if (pte_val(orig) & _PAGE_VALID)
 		tlb_batch_add(mm, addr, ptep, orig);
 }
 

  parent reply	other threads:[~2004-08-19  1:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-18 23:55 [2.6] busybox EFAULT on sparc64 Joshua Kwan
2004-08-18 23:55 ` Joshua Kwan
2004-08-19  0:04 ` Joshua Kwan
2004-08-19  0:04   ` Joshua Kwan
2004-08-19  0:06 ` David S. Miller
2004-08-19  0:06   ` David S. Miller
2004-08-19  0:07 ` David S. Miller
2004-08-19  0:07   ` David S. Miller
2004-08-19  1:43 ` David S. Miller [this message]
2004-08-19  1:43   ` David S. Miller
2004-08-19  9:09   ` Joshua Kwan
2004-08-19  9:09     ` Joshua Kwan
2004-08-19 16:52 ` David S. Miller
2004-08-19 16:52   ` David S. Miller
2004-08-20  5:02   ` David S. Miller
2004-08-20  5:02     ` David S. Miller
2004-08-27  0:57 ` Joshua Kwan
2004-08-27  1:06 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040818184303.1ae13c98.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=joshk@triplehelix.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.