[09:12] <apw> fling, the focal:linux kernel is a 5.4 kernel and has shiftfs applied; they are fairly discrete iirc so you should be able to find them there
[09:39] <fling> apw: how to figure out which commits do I need?
[09:40] <fling> apw: if I extract only patches affecting shiftfs.c then I can successfully apply them on kernels up to 5.4.48
[09:40] <fling> apw: but it produces warning with 5.4.49+
[09:50] <fling> apw: is not there a branch or something with all the needed commits?
[11:21] <apw> fling, i don't track it that closely, sorry
[11:25] <fling> apw: who should I ask about this?
[11:26] <apw> fling, sforshee _may_ have more information
[11:57] <fling> sforshee: Hello.
[12:06] <sforshee> fling: there is no separate tree for shiftfs, just the commits to shiftfs.c should be enough. There are a also a handful of commits to overlayfs to support mounting over shiftfs, I think that's all of it
[12:07] <fling> sforshee: should I somehow filter out overlayfs commits too?
[12:08] <sforshee> fling: you don't need the overlayfs commits unless you want that functionality, but you also likely need to include the patches for mounting overlayfs in user namespaces
[12:09] <fling> so how do I distinguish these commits?
[12:09] <fling> if I use commits affecting shiftfs.c on 5.4.49 or later it produces a warning
[12:10] <sforshee> what warning?
[12:11] <sforshee> 1
[12:20] <fling>  * Applying 5401-UBUNTU-SAUCE-shiftfs-uid-gid-shifting-bind-mount.patch ...
[12:20] <fling> Hunk #1 succeeded at 96 with fuzz 1 (offset 1 line).
[12:24] <sforshee> fling: almost certainly just some contest difference in kconfig or makefile, just check that the result looks the same as in the patch and everything should be fine
[12:25] <sforshee> *context difference
[13:13] <fling> sforshee: shiftfs.c you mean?
[13:14] <fling> thanks!
[13:15] <fling> sforshee: also how do I figure out which overlayfs commits are not from upstream?
[13:53] <sforshee> fling: any non-upstream patches should start with "UBUNTU: SAUCE:"
[14:16] <fling> oh