On Mon, 5 Mar 2018, Alexey Dobriyan wrote: > struct kmem_cache_order_objects is for mixing order and number of objects, > and orders aren't bit enough to warrant 64-bit width. > > Propagate unsignedness down so that everything fits. > > !!! Patch assumes that "PAGE_SIZE << order" doesn't overflow. !!! PAGE_SIZE could be a couple of megs on some platforms (256 or so on Itanium/PowerPC???) . So what are the worst case scenarios here? I think both order and # object should fit in a 32 bit number. A page with 256M size and 4 byte objects would have 64M objects. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>