[PATCH 5.10 096/199] printk: fix kmsg_dump_get_buffer length calulations