Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp190222lfo; Tue, 17 May 2022 21:49:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJS+3rhqSmWUVr02ZcRhTiEez5DyKaXs2mlX98XhDfpD+Elm/jpyobXJzFH+71YTD9xZuy X-Received: by 2002:a17:902:d4ce:b0:15e:90f8:216c with SMTP id o14-20020a170902d4ce00b0015e90f8216cmr26154114plg.65.1652849382578; Tue, 17 May 2022 21:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652849382; cv=none; d=google.com; s=arc-20160816; b=jZ7D08E0F90HzBZ59ZUYL7so2oGLNVm2vPO+oJukt3D2XFAFSKDHK+VuSdJzn3ycgY XR1cD25wAU0LN2tP/ETNAcVn76fjQgzcLRSL1F7CKgJRb8XtDD6gKowAkMJuvYhTkxNm qZ7p5ZBF7SyEuveVFdzNVsmNWQzafXwRK1tLFzc5aK8DzS01a3DorcWZb/TWz5YsRfSR CwD89FDodCJ/PHlKNxRSwfAy+a/Jggpa5DQqOQjnyMzEQ5PJvUjMVS2q7TScBzWdzjWr ZpkvSjqPAOp74VWieO7PVm8E2ONZmzeypHLhHXbdouQBdcOg1AItIjYvbk88C6aVc+Qh rj1A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YWZFx+J+53xOHagim3QT4Ai2gF/898LTYooA+zqI1cE=; b=X2xmNwH+ESWKy8a1H3FZ31Z7OWGdGc9B4HssOnZ+ZI234+nAxuJwfDAJk8ChyCN8or snhCdV7Lpj2bZ55zZnXkEJfOXGbIShKBy32XAwnoyms2ZjtAdi43BKii/Oap1EdIfoas wmlNE5jUDtrRcGS5oGboZDnP3LPe60NffVSYZMkMsxPjh/cZlCta+t6/xkV5+oxSOUkk JisI34ipAqiSPXHMCBpp8TKDr30+8sJ6/AUvYnlHnTyh6ijKiX4GYilVfDgd+4qfZZjF Fd0SXRBzWBnc+iQN6lezf2OhZax6Ml2Rbl5x+/2tz9Txy/i+2t/jXVb18S2Ka+UC70iZ NWfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xn2gVi05; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 196-20020a6302cd000000b003abada69f69si1251998pgc.282.2022.05.17.21.49.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:49:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xn2gVi05; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9267413FBD; Tue, 17 May 2022 21:00:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244856AbiEQJ7Z (ORCPT + 99 others); Tue, 17 May 2022 05:59:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237354AbiEQJ7X (ORCPT ); Tue, 17 May 2022 05:59:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 408BF35877; Tue, 17 May 2022 02:59:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E2C36B817FA; Tue, 17 May 2022 09:59:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63D08C385B8; Tue, 17 May 2022 09:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652781559; bh=IjTrdkC91KRp+rvEIbIDiMLZHXKC2n8pE+7UtzloPrs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xn2gVi05KA3hpbMmcoE8VN3hUgnIIdxfa2xbfWTu2M+p5r82NT70wL9ohPKO2MIkp 6NPCY7ZXgy1CoQ+CtpCd3JaHZmivUEkqY+D+em7HjxVCE6UPPpxwl07IQWb0Xuj10Z DvPzZ8d8fGgqN989RoDqKMpI+7ZidI7gD6iqlJRY= Date: Tue, 17 May 2022 11:59:13 +0200 From: Greg KH To: =?iso-8859-1?B?Suly9G1l?= Pouiller Cc: Daniel Vetter , Jason Ekstrand , Pekka Paalanen , Christian =?iso-8859-1?Q?K=F6nig?= , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] dma-buf: fix use of DMA_BUF_SET_NAME_{A,B} in userspace Message-ID: References: <20220517072708.245265-1-Jerome.Pouiller@silabs.com> <3847797.kQq0lBPeGt@pc-42> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3847797.kQq0lBPeGt@pc-42> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 17, 2022 at 10:32:15AM +0200, Jérôme Pouiller wrote: > [add stable@vger.kernel.org to the recipients] > > On Tuesday 17 May 2022 09:30:24 CEST Christian König wrote: > > Am 17.05.22 um 09:27 schrieb Jerome Pouiller: > > > From: Jérôme Pouiller > > > > > > The typedefs u32 and u64 are not available in userspace. Thus user get > > > an error he try to use DMA_BUF_SET_NAME_A or DMA_BUF_SET_NAME_B: > > > > > > $ gcc -Wall -c -MMD -c -o ioctls_list.o ioctls_list.c > > > In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1, > > > from /usr/include/linux/ioctl.h:5, > > > from /usr/include/asm-generic/ioctls.h:5, > > > from ioctls_list.c:11: > > > ioctls_list.c:463:29: error: ‘u32’ undeclared here (not in a function) > > > 463 | { "DMA_BUF_SET_NAME_A", DMA_BUF_SET_NAME_A, -1, -1 }, // linux/dma-buf.h > > > | ^~~~~~~~~~~~~~~~~~ > > > ioctls_list.c:464:29: error: ‘u64’ undeclared here (not in a function) > > > 464 | { "DMA_BUF_SET_NAME_B", DMA_BUF_SET_NAME_B, -1, -1 }, // linux/dma-buf.h > > > | ^~~~~~~~~~~~~~~~~~ > > > > > > The issue was initially reported here[1]. > > > > > > [1]: https://urldefense.com/v3/__https://nam11.safelinks.protection.outlook.com/?url=https*3A*2F*2Fgithub.com*2Fjerome-pouiller*2Fioctl*2Fpull*2F14&data=05*7C01*7Cchristian.koenig*40amd.com*7C4b665e3c2222463014ec08da37d6b3f4*7C3dd8961fe4884e608e11a82d994e183d*7C0*7C0*7C637883692533547283*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=prj*2BSOuf*2B1IWK1XKGD381LhDuL9qOoj7lYy8xMoV*2B6o*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!N30Cs7Jr!Vp-6M6kuBq4uqEHaYTbkJbN3BTkd85DAeGS7xNYLPbNMp00kBlbD0iQPjJdQ5OVCFeCp_XVrsYIhxvLlpLQDmRhK5QXhQA$ > > > > > > Signed-off-by: Jérôme Pouiller > > > > Good catch, Reviewed-by: Christian König > > > > CC: stable? > > Done This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.