Xiaosen, > signed integer overflow happened in the following multiplication, > ext_cyl*(end_head+1)*end_sector = 0x41040*(0xff+1)*0x3f = 0xffffc000, > the overflow was caught by UBSAN and caused crash to the system, > use unsigned int instead of signed int to avoid integer overflow. This patch is against a very old kernel. Please see commit a10183d744fb ("scsi: simplify scsi_partsize") which was merged back in 2020. -- Martin K. Petersen Oracle Linux Engineering