which by itself is in a 4.12 vanilla code tree
https://github.com/torvalds/linux/commit/4c48abe91be03d191d0... (click the little '...' to expand tags it's in) or:
$ git tag --contains 4c48abe91be03d191d0c20cc755877da2cb35622 v4.13
https://elixir.free-electrons.com/linux/v4.11/source/kernel/...
The code is significantly different but I still see a lack of access_ok(), so was the checking performed somewhere else that I didn't notice (I haven't looked closely at this part of the kernel before)?
which by itself is in a 4.12 vanilla code tree