Hi Tetsuo, On Tue, 10 Dec 2019 19:21:08 +0900 Tetsuo Handa wrote: > > On 2019/12/10 6:37, James Morris wrote: > > On Wed, 4 Dec 2019, Tetsuo Handa wrote: > > > >> > >> I decided to drop tomoyo_get_socket_name(). Will you pick up the following commit? > >> > >> commit c39593ab0500fcd6db290b311c120349927ddc04 > >> Author: Tetsuo Handa > >> Date: Mon Nov 25 10:46:51 2019 +0900 > >> > >> tomoyo: Don't use nifty names on sockets. > >> > > > >>From where? > > > > Please send a patch. > > > > Patch is at https://scm.osdn.net/gitroot/tomoyo/tomoyo-test1 and was tested on linux-next.git . > But if you pick up c39593ab0500, what do I need to do (in order to avoid trying to apply the same > patch) ? Could you explain me (using command line) how I can send only c39593ab0500 to linux.git ? > https://osdn.net/projects/tomoyo/scm/git/tomoyo-test1/commits has only master branch. > > c39593ab0500 (HEAD -> master, origin/master) tomoyo: Don't use nifty names on sockets. > cbf8353d474c Merge branch 'master' of https://scm.osdn.net/gitroot/tomoyo/tomoyo-test1 > fd46afeac605 Revert "tomoyo: Don't check open/getattr permission on sockets." > 19768fdc4025 Revert "printk: Monitor change of console loglevel." > 07fca3f339d7 printk: Monitor change of console loglevel. > df8aec8cd8b2 tomoyo: Don't check open/getattr permission on sockets. > 219d54332a09 (tag: v5.4, upstream/master) Linux 5.4 You should start by cleaning up your tree: remove fd46afeac605 Revert "tomoyo: Don't check open/getattr permission on sockets." 19768fdc4025 Revert "printk: Monitor change of console loglevel." 07fca3f339d7 printk: Monitor change of console loglevel. df8aec8cd8b2 tomoyo: Don't check open/getattr permission on sockets. since they end up cancelling each other out cbf8353d474c Merge branch 'master' of https://scm.osdn.net/gitroot/tomoyo/tomoyo-test1 only introduces these commits: 79c8ca578dbf Revert "printk: Monitor change of console loglevel." 23641a048089 printk: Monitor change of console loglevel. a5f9bda81cb4 tomoyo: Don't check open/getattr permission on sockets. and the first 2 above cancel each other out. so you are left with these: c39593ab0500 tomoyo: Don't use nifty names on sockets. a5f9bda81cb4 tomoyo: Don't check open/getattr permission on sockets. you should rebase these onto v5.5-rc1. If you want James to just take the first of these, then the easiest way is probably to just send him a patch that you generate using "git format-patch" and then remove it from your tree. Since there are no other changes to the only file affected by that commit since v5.4, you could just do this: $ git format-patch -o -1 c39593ab0500 and then to James using your email client. Having done that, you should just do this (and forget the cleanups above): $ git checkout master $ git remote update upstream $ git reset --hard upstream/master $ git cherry-pick a5f9bda81cb4 $ git push -f origin master After that you will have a nice clean tree (based on Linus' tree) to continue development on that just contains the one patch "tomoyo: Don't check open/getattr permission on sockets." If, however, you intend to only send patche via James tree, then you should be using his tree (git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git branch next-testing) as your upstream tree, not Linus' tree. Then you can ask him to merge your tree before the merge window opens during each cycle. You may want to rebase your tree on top of James tree after he applies your patch from above. -- Cheers, Stephen Rothwell