"Flesh" by David Szalay seems like it steals all its plot points from Kubrick's "Barry Lyndon"
The locales and time period in Szalay's novel are obviously different, but aside from this, it has all the main plot beats of the film (not the novel, which differs significantly from Kubrick's self-written screenplay).
by Wetness_Pensive