All of lore.kernel.org
 help / color / mirror / Atom feed
From: "John H. DuBois III" <spcecdt-E0iVtVOWpgTQT0dZR+AlfA@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Bug in console_ioctl(4)
Date: Tue, 16 Nov 2010 13:43:48 -0800	[thread overview]
Message-ID: <20101116214348.GA12414@armory.com> (raw)

Using Ubuntu 10.04 64-bit, but I see that this problem is present in the online
man pages as well.

The argp for various of the console keyboard "get" ioctls - KDGETMODE,
KDGKBMODE, KDGKBMETA - is described as "argp points to a long".

This is not correct; in the kernel it's

put_user(ucval, (int __user *)arg)

This will work with a 32-bit binary, but will leave the upper part of the word
unset with a 64-bit (LP64) binary.

	John
-- 
John DuBois  spcecdt-E0iVtVOWpgTQT0dZR+AlfA@public.gmane.org  KC6QKZ/AE  http://www.armory.com/~spcecdt/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2010-11-16 21:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20101116214348.GA12414@armory.com \
    --to=spcecdt-e0ivtvowpgtqt0dzr+alfa@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.