From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90A2AC433E0 for ; Fri, 22 Jan 2021 11:41:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 374D2235F7 for ; Fri, 22 Jan 2021 11:41:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727325AbhAVLlU (ORCPT ); Fri, 22 Jan 2021 06:41:20 -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