Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3017961ybt; Mon, 29 Jun 2020 13:02:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweHQbv3upNmxODQKy+Y4IrRm/YxvrVa/TsVXNUGg+xpSq2nvWxFplGT6VmzFNIpKRr18DS X-Received: by 2002:aa7:cd50:: with SMTP id v16mr12901003edw.252.1593460958317; Mon, 29 Jun 2020 13:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593460958; cv=none; d=google.com; s=arc-20160816; b=UkTRSbVDFSfVmXO12f7A6HTI1ygnyJna7+wvYZiCt5sWJrDAY7VAxRj8ZY/XjDzp1q mBP0EWzmewM0NDN9gefFFaIRYV1xvzlSJQRmyUC8HWPz7ShT9KNEYlGILQ0kBQiJjc/k pLkWZamacbk+fnKforjVMc2B5mhukgRLdJKlwilPBX8gwi+zx1rYEzmV7axpCAdWc4NU L1zrVWamIuCUTGR8UO0nd3NMX2a/Fscpmm4X8DCUqwWmlkvxMd3EG/2xmzdeg6jLhpga kp8h9kSdykx1niIAkoNNWpec6R+B5jBgi3STUjpqwQnDlwdSY/4fo+mMLljZlKLRBWcn 5AxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from; bh=L1GifUNdKMl5qKkSDu5/nQrS8za0sz6xf+sXYQjoFjY=; b=EvHInql07wVHQR3g4sgw+fMuPL6HOokM6PaAbZFLCXeyWehL0dxoiCmk9DGfroWTGD qpQ1kUxkuZB4SbAq3rnFD9/hpo5Kgxy8k8Y2IBIZ7ye90S/JlYC/+vOUoaXm3f0B0ZBK uQhBeVFF8rvpq/Q+tmbkl4+k1zAJUDd45N9z53iCYVSrTXcm4Y2n0wzdP5+YR/AjO2pt gdzEu1T9rx3IfEUttRexspifuJe41ue8V3M5iMteX263jtcOJJ95/e6hxxHWj5xPtsZI qBvGDcYALwwnGlhCtmNmDp4ccS1D60UWtmEIQopldEiuu33AJXV+yX2Yk0VJrDKH176V E7gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si324307edj.310.2020.06.29.13.02.15; Mon, 29 Jun 2020 13:02:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388664AbgF2UCH (ORCPT + 99 others); Mon, 29 Jun 2020 16:02:07 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:34140 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731899AbgF2UCE (ORCPT ); Mon, 29 Jun 2020 16:02:04 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpzyc-0002sK-UK; Mon, 29 Jun 2020 14:02:03 -0600 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jpzyZ-0003Ux-3x; Mon, 29 Jun 2020 14:02:02 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Cc: David Miller , Greg Kroah-Hartman , Tetsuo Handa , Alexei Starovoitov , Kees Cook , Andrew Morton , Alexei Starovoitov , Al Viro , bpf , linux-fsdevel , Daniel Borkmann , Jakub Kicinski , Masahiro Yamada , Gary Lin , Bruno Meneguele , LSM List , Casey Schaufler , Luis Chamberlain , Linus Torvalds References: <20200625095725.GA3303921@kroah.com> <778297d2-512a-8361-cf05-42d9379e6977@i-love.sakura.ne.jp> <20200625120725.GA3493334@kroah.com> <20200625.123437.2219826613137938086.davem@davemloft.net> <87pn9mgfc2.fsf_-_@x220.int.ebiederm.org> <87y2oac50p.fsf@x220.int.ebiederm.org> <87bll17ili.fsf_-_@x220.int.ebiederm.org> Date: Mon, 29 Jun 2020 14:57:28 -0500 In-Reply-To: <87bll17ili.fsf_-_@x220.int.ebiederm.org> (Eric W. Biederman's message of "Mon, 29 Jun 2020 14:55:05 -0500") Message-ID: <87tuyt63x3.fsf_-_@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1jpzyZ-0003Ux-3x;;;mid=<87tuyt63x3.fsf_-_@x220.int.ebiederm.org>;;;hst=in02.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18RpE6R/pGcowgvRUQ2NRyV2B5nU+ocdog= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa01.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,XMSubLong autolearn=disabled version=3.4.2 X-Spam-Virus: No X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa01 0; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: ; sa01 0; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ; X-Spam-Relay-Country: X-Spam-Timing: total 1983 ms - load_scoreonly_sql: 0.21 (0.0%), signal_user_changed: 12 (0.6%), b_tie_ro: 9 (0.5%), parse: 1.84 (0.1%), extract_message_metadata: 114 (5.8%), get_uri_detail_list: 2.2 (0.1%), tests_pri_-1000: 145 (7.3%), compile_eval: 158 (8.0%), tests_pri_-950: 2.5 (0.1%), tests_pri_-900: 26 (1.3%), tests_pri_-90: 191 (9.7%), check_bayes: 176 (8.9%), b_tokenize: 33 (1.7%), b_tok_get_all: 30 (1.5%), b_comp_prob: 2.3 (0.1%), b_tok_touch_all: 99 (5.0%), b_finish: 0.98 (0.0%), tests_pri_0: 1431 (72.2%), check_dkim_signature: 0.92 (0.0%), check_dkim_adsp: 47 (2.4%), poll_dns_idle: 33 (1.7%), tests_pri_10: 2.8 (0.1%), tests_pri_500: 50 (2.5%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH v2 03/15] umh: Rename the user mode driver helpers for clarity X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the functionality of umh_setup_pipe and umh_clean_and_save_pid has changed their names are too specific and don't make much sense. Instead name them umd_setup and umd_cleanup for the functional role in setting up user mode drivers. Link: https://lkml.kernel.org/r/875zbegf82.fsf_-_@x220.int.ebiederm.org Reviewed-by: Greg Kroah-Hartman Signed-off-by: "Eric W. Biederman" --- kernel/umh.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/umh.c b/kernel/umh.c index e6b9d6636850..26c3d493f168 100644 --- a/kernel/umh.c +++ b/kernel/umh.c @@ -429,7 +429,7 @@ struct subprocess_info *call_usermodehelper_setup_file(struct file *file, return sub_info; } -static int umh_pipe_setup(struct subprocess_info *info, struct cred *new) +static int umd_setup(struct subprocess_info *info, struct cred *new) { struct umh_info *umh_info = info->data; struct file *from_umh[2]; @@ -470,11 +470,11 @@ static int umh_pipe_setup(struct subprocess_info *info, struct cred *new) return 0; } -static void umh_clean_and_save_pid(struct subprocess_info *info) +static void umd_cleanup(struct subprocess_info *info) { struct umh_info *umh_info = info->data; - /* cleanup if umh_pipe_setup() was successful but exec failed */ + /* cleanup if umh_setup() was successful but exec failed */ if (info->retval) { fput(umh_info->pipe_to_umh); fput(umh_info->pipe_from_umh); @@ -520,8 +520,8 @@ int fork_usermode_blob(void *data, size_t len, struct umh_info *info) } err = -ENOMEM; - sub_info = call_usermodehelper_setup_file(file, umh_pipe_setup, - umh_clean_and_save_pid, info); + sub_info = call_usermodehelper_setup_file(file, umd_setup, umd_cleanup, + info); if (!sub_info) goto out; -- 2.25.0