Commits
Ben Hutchings authored and Pavel Emelyanov committed 62c8dc47f9f
printk: Handle global log buffer reallocation Currently an increase in log_buf_len results in disaster, as ve0.log_buf is left pointing to the old log buffer. Update ve0.log_buf when the global log buffer is reallocated. Also acquire logbuf_lock before reading ve_log_buf_len, to avoid a race with reallocation. Reported-and-tested-by: Tim Small <tim@seoss.co.uk> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>