[Users] kernel: ioctl32(mount:326): Unknown cmd
Stanichenko Marat
mstanichenko at openvz.org
Thu Jan 8 12:51:39 EST 2009
Dietmar Maurer wrote on 08.01.2009 15:53:
> Ok, this is not kernel related. Seems to be related to my init-logger
> vzctl patch.
>
> Anyways, can some developer explain the content of this debug message?
>
> It seem to be related to a mount command used inside a container.
>
>
>> Jan 8 10:43:12 oahu kernel: ioctl32(mount:886): Unknown cmd fd(4)
>> cmd(80041272){t:12;sz:4} arg(bfaf9f48) on /
>>
>
> - Dietmar
>
>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>
>
Hello Dietmar,
Have you found the reason?
It seems strange from my point of view.
cmd =80041272 should be BLKGETSIZE64_32
Seems in your case the call chain is:
compat_sys_ioctl - > compat_ioctl_error -> compat_printk("ioctl32 ...")
But IMHO it should be
---8<---
compat_sys_ioctl:
....
if (filp->f_op && filp->f_op->compat_ioctl) {
error = filp->f_op->compat_ioctl(filp, cmd, arg);
....
--->8---
flip->f_op->compat_ioctl is compat_blkdev_ioctl
---8<---
const struct file_operations def_blk_fops = {
...
#ifdef CONFIG_COMPAT
.compat_ioctl = compat_blkdev_ioctl,
#endif
...
};
--->8---
You have CONFIG_COMPAT enabled, haven't you?
More information about the Users
mailing list