From: Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>
To: zaitcev@redhat.com
Cc: linux-kernel@vger.kernel.org, uweigand@de.ibm.com
Subject: Re: Patch for kernel.real-root-dev on s390
Date: Sat, 10 Nov 2001 03:48:33 +0100 (MET) [thread overview]
Message-ID: <200111100248.DAA00341@faui11.informatik.uni-erlangen.de> (raw)
Pete Zaitcev wrote:
>what do you think about the attached patch. Without it,
>a sysctl to kernel.real-root-dev corrupts adjacent memory.
I agree that this looks broken, but I don't see why it
would be s390 specific. The clobber of adjacent memory
happens on all architectures, and on all big endian systems
the value read is incorrect even if adjacent memory happens
to be 0.
However, I'm not convinced the patch is a proper fix; it
will cause the MAJOR and MINOR macros to be applied to a
variable not of type kdev_t, which happens to work now but will
break if the definition of kdev_t is changed to a structure
or pointer type (as it probably will at some point in the
future, if I recall the various discussions correctly).
What about either
- adding support for kdev_t values to procfs
or
- keeping two int variables real_root_major and
real_root_minor ?
Bye,
Ulrich
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de
next reply other threads:[~2001-11-10 2:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-10 2:48 Ulrich Weigand [this message]
2001-11-10 17:58 ` Pete Zaitcev
-- strict thread matches above, loose matches on Subject: below --
2001-11-07 22:11 Pete Zaitcev
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=200111100248.DAA00341@faui11.informatik.uni-erlangen.de \
--to=weigand@immd1.informatik.uni-erlangen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=uweigand@de.ibm.com \
--cc=zaitcev@redhat.com \
/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
all inboxes | Powered by JetHome®