From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
To: linux-ia64@vger.kernel.org
Subject: RE: [patch 1/2] remove per-cpu ia64_phys_stacked_size_p8
Date: Fri, 24 Feb 2006 18:58:27 +0000 [thread overview]
Message-ID: <200602241858.k1OIwSg15658@unix-os.sc.intel.com> (raw)
In-Reply-To: <200602240233.k1O2Xeg05945@unix-os.sc.intel.com>
Christian Hildner wrote on Friday, February 24, 2006 2:08 AM
> self-modifing code isn't the straight forward way of programming. So
> wouldn't it be an idea to let the code crash instead of silently work
> with a potentially wrong number of registers here, if by any reason the
> patch mechanism doesn't work.
This argument is very biased. A bug is a bug, regardless where the
origin or through which mechanism. Programming error like wrongly
initialize a value has the same severity compare to patching wrong code.
It's just way too biased to say bug in patching mechanism is more sever
than any other buggy code.
Plus, self-modifying code in the kernel is everywhere: look at the core
of the core kernel:
(1) low level vhpt handlers: vhpt_miss and nested_dtlb_miss
(2) fsyscall table
(3) fsys bubble down
(4) mckinley_e9
All does instruction patching. I don't suppose you would recommend all
instances listed above to be changed?
> I suppose the usage of a break instruction
> (with non_syscall number) to indicate failing/missing patch here. That
> would add another level of security here.
This argument is equally flawed. If you don't have any trust in patching
mechanism in previous argument, why would you trust that patch out a break
instruction is going to be any better?
- Ken
next prev parent reply other threads:[~2006-02-24 18:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-24 2:33 [patch 1/2] remove per-cpu ia64_phys_stacked_size_p8 Chen, Kenneth W
2006-02-24 10:08 ` Christian Hildner
2006-02-24 18:58 ` Chen, Kenneth W [this message]
2006-02-24 19:13 ` Chen, Kenneth W
2006-02-27 8:15 ` Christian Hildner
2006-02-27 19:26 ` Chen, Kenneth W
2006-10-13 17:05 ` Chen, Kenneth W
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=200602241858.k1OIwSg15658@unix-os.sc.intel.com \
--to=kenneth.w.chen@intel.com \
--cc=linux-ia64@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox