--- linux-work/arch/x86_64/ia32/ia32_ioctl.c~ 2003-08-20 11:11:41.000000000 +0200 +++ linux-work/arch/x86_64/ia32/ia32_ioctl.c 2003-08-20 11:11:41.000000000 +0200 @@ -2392,7 +2392,8 @@ return NULL; } if (ptr1) { - if (l->lv_allocated_le > 2*PAGE_SIZE/sizeof(pe_t)) { + /* Root only - disable check */ + if (0 && l->lv_allocated_le > 64*PAGE_SIZE/sizeof(pe_t)) { kfree(l); *errp = -EINVAL; return NULL; @@ -2405,7 +2406,8 @@ if (!err && ptr2) { /* small limit */ /* just verify area it? */ - if (l->lv_remap_end > 256*PAGE_SIZE/sizeof(lv_block_exception_t)) { + /* char dev is root only - don't check */ + if (0 && l->lv_remap_end > 256*PAGE_SIZE/sizeof(lv_block_exception_t)) { put_lv_t(l); *errp = -EINVAL; return NULL;