Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp957735pxb; Fri, 22 Jan 2021 03:42:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZ8UeAtg4qyRx202oongOg8Bj9usMtQLV2QUEi8K7TNPvTwAu80f+TJ/0moGVURemk5Et6 X-Received: by 2002:a17:906:3b11:: with SMTP id g17mr2641779ejf.473.1611315771175; Fri, 22 Jan 2021 03:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611315771; cv=none; d=google.com; s=arc-20160816; b=M0uug4r3BLjQ0+SGM0lA1/M3bvwdhMREO5AAILKFVBKxRU/SXAAwHpFRATcjiq+kyh Z8v5ifaJo3tq9lxCtVrExMZ03AZV+RvQWBYUzwm//6EX1Wb0HtXkmw5IY7ZLRq0tS733 lhLuO/+SWtdm9nC9QlD7DKQgdcOvKBhBxWC6tpaTjfSCZUm0RAigWQNpBhvk8XZ7QON2 qaOIfqnTzcQ4a1bhxgnADul0b3qS5doJp8GezdYagImhiaHcW4U0zDI+bUQF9HuwftNk p8UUxkKSV5Z3IH0rX0fjRCSg8K1OkU8AnkiXCbaWAYF3w7ngNmNV0BEx40BUY2vtyKcf GY3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+OHj5lB6NW2VPuu5GF8uH6YgcoUHkcSfdPrqOHr8WAE=; b=OcmDpyKjUsu8VbrUACVXTwT7H0ujjJSGEvWaK1CFX5z5pENEk2XAWujAQlf3IO/ZQc /6nksIZAu9l82qqW4+DKafkWlYwxt8K3Ohk6fRrQpc1zS8P0XJAAOkVqa+Bz+A3k04hf OYTQp1hTXGtaXkjsSD0ahZ4wUjDXl2bVsvoRK7gWmj8PtSTczQ961XfAc9+C/FF7N8Z+ ArDvJ6sufyjcis8mGk3/F7bdFM3AYTe4/CFx+Q28nH9Kl64vMNQ3lzhVLlGjtjzysWWR sLS75ciDQkS07FhBq6EXDak0kJNMRHVZHtFiypI8+MefaqV4iY5BRDd2qnl9GBiV8kOP Gx5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kzIKwYT7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si2969374ejh.270.2021.01.22.03.42.27; Fri, 22 Jan 2021 03:42:51 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kzIKwYT7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727300AbhAVLlL (ORCPT + 99 others); Fri, 22 Jan 2021 06:41:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:60350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727913AbhAVLje (ORCPT ); Fri, 22 Jan 2021 06:39:34 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BACA123106; Fri, 22 Jan 2021 11:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611315534; bh=w71kF5qhbE9BPRzz8heQopWnu1J/oTafgKsEZXhx/Dk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kzIKwYT7tzfn5AAdZIGvVoYaBNxRmBrb8T7YegQrnkqb18paH6mSAkLD4YejVz9Ja jI3cVoDCe+ESwXqWF74hxBqvJJpdbd2gs/B+IS8l4KGTaZYHtoAisXe0+iuCKK0rV8 fP33m8Jhspms5Qi8hKiF5Oz5w6PbhzkWwRmhDr24= Date: Fri, 22 Jan 2021 12:38:51 +0100 From: Greg Kroah-Hartman To: Zhou Wang Cc: Zhangfei Gao , Arnd Bergmann , linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, Sihang Chen Subject: Re: [PATCH] uacce: Add uacce_ctrl misc device Message-ID: References: <1611220154-90232-1-git-send-email-wangzhou1@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 07:33:40PM +0800, Zhou Wang wrote: > >> +struct uacce_pin_address { > >> + unsigned long addr; > >> + unsigned long size; > > > > These are not valid ioctl structure members for crossing the user/kernel > > boundry. Please make them work properly (i.e. use __u64 and friends). > > Got it, will modify this to __u64 together with other problems found by 0-day robot. Please also properly involve the mm and dma developers and, again, consider just making this a syscall instead of an ioctl. thanks, greg k-h