* [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls.
@ 2009-02-10 15:25 Bill Nottingham
2009-02-11 13:41 ` Jiri Kosina
0 siblings, 1 reply; 7+ messages in thread
From: Bill Nottingham @ 2009-02-10 15:25 UTC (permalink / raw)
To: linux-kernel, trivial; +Cc: Bill Nottingham
Otherwise, these don't work when called from 32-bit userspace on 64-bit kernels.
---
fs/compat_ioctl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 5235c67..9ee71a0 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -1937,6 +1937,8 @@ ULONG_IOCTL(SET_BITMAP_FILE)
/* Big K */
COMPATIBLE_IOCTL(PIO_FONT)
COMPATIBLE_IOCTL(GIO_FONT)
+COMPATIBLE_IOCTL(PIO_CMAP)
+COMPATIBLE_IOCTL(GIO_CMAP)
ULONG_IOCTL(KDSIGACCEPT)
COMPATIBLE_IOCTL(KDGETKEYCODE)
COMPATIBLE_IOCTL(KDSETKEYCODE)
--
1.6.1.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls.
2009-02-10 15:25 [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls Bill Nottingham
@ 2009-02-11 13:41 ` Jiri Kosina
2009-02-15 21:41 ` Andrew Morton
0 siblings, 1 reply; 7+ messages in thread
From: Jiri Kosina @ 2009-02-11 13:41 UTC (permalink / raw)
To: Bill Nottingham, Alan Cox; +Cc: linux-kernel, trivial
On Tue, 10 Feb 2009, Bill Nottingham wrote:
> Otherwise, these don't work when called from 32-bit userspace on 64-bit kernels.
> ---
> fs/compat_ioctl.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
> index 5235c67..9ee71a0 100644
> --- a/fs/compat_ioctl.c
> +++ b/fs/compat_ioctl.c
> @@ -1937,6 +1937,8 @@ ULONG_IOCTL(SET_BITMAP_FILE)
> /* Big K */
> COMPATIBLE_IOCTL(PIO_FONT)
> COMPATIBLE_IOCTL(GIO_FONT)
> +COMPATIBLE_IOCTL(PIO_CMAP)
> +COMPATIBLE_IOCTL(GIO_CMAP)
> ULONG_IOCTL(KDSIGACCEPT)
> COMPATIBLE_IOCTL(KDGETKEYCODE)
> COMPATIBLE_IOCTL(KDSETKEYCODE)
> --
> 1.6.1.2
Alan, I am hesitant to consider this material implicitly applicable for
trivial tree. Could you please give your Acked-by for it so that I can
merge, or take it through your tree completely?
Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls.
2009-02-11 13:41 ` Jiri Kosina
@ 2009-02-15 21:41 ` Andrew Morton
2009-02-16 17:23 ` Bill Nottingham
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2009-02-15 21:41 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Bill Nottingham, Alan Cox, linux-kernel, trivial, stable
On Wed, 11 Feb 2009 14:41:25 +0100 (CET) Jiri Kosina <jkosina@suse.cz> wrote:
> On Tue, 10 Feb 2009, Bill Nottingham wrote:
>
> > Otherwise, these don't work when called from 32-bit userspace on 64-bit kernels.
Bill, please remember to add signoffs? This should all be scripted.
> > ---
> > fs/compat_ioctl.c | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
> > index 5235c67..9ee71a0 100644
> > --- a/fs/compat_ioctl.c
> > +++ b/fs/compat_ioctl.c
> > @@ -1937,6 +1937,8 @@ ULONG_IOCTL(SET_BITMAP_FILE)
> > /* Big K */
> > COMPATIBLE_IOCTL(PIO_FONT)
> > COMPATIBLE_IOCTL(GIO_FONT)
> > +COMPATIBLE_IOCTL(PIO_CMAP)
> > +COMPATIBLE_IOCTL(GIO_CMAP)
> > ULONG_IOCTL(KDSIGACCEPT)
> > COMPATIBLE_IOCTL(KDGETKEYCODE)
> > COMPATIBLE_IOCTL(KDSETKEYCODE)
> > --
> > 1.6.1.2
>
> Alan, I am hesitant to consider this material implicitly applicable for
> trivial tree.
No, it isn't appropriate for the trivial tree.
> Could you please give your Acked-by for it so that I can
> merge, or take it through your tree completely?
afaict this fix is needed all the way back to 2.6.tiny. I merged it
with 2.6.29 intentions. Also tagged as needed in 2.6.25.x and later.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls.
2009-02-15 21:41 ` Andrew Morton
@ 2009-02-16 17:23 ` Bill Nottingham
2009-02-16 20:04 ` Andrew Morton
0 siblings, 1 reply; 7+ messages in thread
From: Bill Nottingham @ 2009-02-16 17:23 UTC (permalink / raw)
To: Andrew Morton; +Cc: Jiri Kosina, Alan Cox, linux-kernel
(dropping trivial@ and stable@ cc's)
Andrew Morton (akpm@linux-foundation.org) said:
> On Wed, 11 Feb 2009 14:41:25 +0100 (CET) Jiri Kosina <jkosina@suse.cz> wrote:
>
> > On Tue, 10 Feb 2009, Bill Nottingham wrote:
> >
> > > Otherwise, these don't work when called from 32-bit userspace on 64-bit kernels.
>
> Bill, please remember to add signoffs? This should all be scripted.
I would have expected that that would be the default in 'git format-patch'.
Will keep note of that for the future.
> > Could you please give your Acked-by for it so that I can
> > merge, or take it through your tree completely?
>
> afaict this fix is needed all the way back to 2.6.tiny. I merged it
> with 2.6.29 intentions. Also tagged as needed in 2.6.25.x and later.
So, is there some way to do static analysis on the kernel source to
find *all* ioctls that aren't marked as compatible, and don't have
specific compat handlers?
Bill
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls.
2009-02-16 17:23 ` Bill Nottingham
@ 2009-02-16 20:04 ` Andrew Morton
0 siblings, 0 replies; 7+ messages in thread
From: Andrew Morton @ 2009-02-16 20:04 UTC (permalink / raw)
To: Bill Nottingham; +Cc: Jiri Kosina, Alan Cox, linux-kernel
On Mon, 16 Feb 2009 12:23:18 -0500 Bill Nottingham <notting@redhat.com> wrote:
> > > Could you please give your Acked-by for it so that I can
> > > merge, or take it through your tree completely?
> >
> > afaict this fix is needed all the way back to 2.6.tiny. I merged it
> > with 2.6.29 intentions. Also tagged as needed in 2.6.25.x and later.
>
> So, is there some way to do static analysis on the kernel source to
> find *all* ioctls that aren't marked as compatible, and don't have
> specific compat handlers?
Not that I am aware of. Julia Lawall might be able to cook up such
a thing.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] Add a 'wait-scan' command to /proc/scsi/scsi.
@ 2009-03-25 19:00 Bill Nottingham
2009-03-25 19:00 ` [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls Bill Nottingham
0 siblings, 1 reply; 7+ messages in thread
From: Bill Nottingham @ 2009-03-25 19:00 UTC (permalink / raw)
To: linux-kernel, linux-scsi; +Cc: Bill Nottingham
scsi_wait_scan.ko is a bad interface for a variety of reasons:
- once you load it, it stays in memory doing nothing
- if you need to call it again, you first need to check for the module
and unload it first
- waiting for scsi scans shouldn't require module loading privleges in
any case
This creates a simpler interface that doesn't require as much
scaffolding in userspace.
Signed-off-by: Bill Nottingham <notting@redhat.com>
---
drivers/scsi/scsi_proc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c
index 82f7b2d..c9f9e0c 100644
--- a/drivers/scsi/scsi_proc.c
+++ b/drivers/scsi/scsi_proc.c
@@ -370,6 +370,8 @@ static ssize_t proc_scsi_write(struct file *file, const char __user *buf,
lun = simple_strtoul(p + 1, &p, 0);
err = scsi_remove_single_device(host, channel, id, lun);
+ } else if (!strncmp("scsi wait-scan", buffer, 14)) {
+ err = scsi_complete_async_scans();
}
/*
--
1.6.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-03-25 19:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-10 15:25 [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls Bill Nottingham
2009-02-11 13:41 ` Jiri Kosina
2009-02-15 21:41 ` Andrew Morton
2009-02-16 17:23 ` Bill Nottingham
2009-02-16 20:04 ` Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2009-03-25 19:00 [PATCH] Add a 'wait-scan' command to /proc/scsi/scsi Bill Nottingham
2009-03-25 19:00 ` [PATCH] Declare PIO_CMAP/GIO_CMAP as compatbile ioctls Bill Nottingham
2009-03-25 19:02 ` Bill Nottingham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox