Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp222325ybg; Sun, 31 May 2020 22:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpxXcdn5PJuWK2rzSP4T7TaXEg1qMo/CX64psOj10osBEn/5I8sHkofauP5pBaXI//FOfg X-Received: by 2002:a17:906:4c96:: with SMTP id q22mr8710820eju.263.1590990644155; Sun, 31 May 2020 22:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590990644; cv=none; d=google.com; s=arc-20160816; b=wYoMfm7tQWZ2kQR/x68ObX0MdytT+0rq9m47BdaYImiZjLg8intMYuDAQ0LF4HMx/i 0MxQlCDqk1FT1BJRmIFk5TeUFy3pgRBCdLMA83Gz1E0GFdT9qCVwT5G2Ww2Y8w3jgbrI NLa0LpUfblvLXodyQFddSXw8iWk0Mc7dyRN8Y/zAUCIvmDPD01KQwfl1hGZNQ7mFllro rR0ZyKWTKgU8au1IAqJNIHzxU7v1J1LWyGqfPT4v4/gHy8kKpEAvt//fp8CtO47Bhftw tdKNKdEAtjAND3t3JX/Y4pfBqzdwPtSpK+oWb4/Xg0sT44y+X86cM7YjrdVnWt6ckfBT 25vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:references:cc:to:from:subject:dkim-signature; bh=UJ8g6X6vXV3igOWcO2Es4JTDaukL2Cfg9MKHLssGcWA=; b=TalrXMkhlkrcnXAz/OPoFzfp06xEJllVAOwG/+oz8P7iZQGoRofEw3oXgW0cvwIgdO yCgwEuLymJ++Ymo/0PDFWO5ceVDmFwScBVOcMBth6xosDprmDu4fHR5IWfYYy8N3EJrs iBehKB4wSD2FaAmPCrjdrTZ26IbHES9nr/TlsExNL29tF3iR/b2YSgBR4jCukBhh8P8p pkpb13FquSZytv5F0RwSrdT5BTbA/e+PHzYfIiHrrwMmhWYOuSdyoLMCVECwReSG1Yg9 lAQeuiHfdXozOWMjt13i0KTgPyzVGJD6qlEObXXIYFrcjm74uwRiunLVf8aEQamw85uG 9WfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=P8xRdqxh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si3387245eji.356.2020.05.31.22.50.21; Sun, 31 May 2020 22:50:44 -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; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=P8xRdqxh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbgFAFsR (ORCPT + 99 others); Mon, 1 Jun 2020 01:48:17 -0400 Received: from mout.web.de ([212.227.15.3]:59209 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbgFAFsP (ORCPT ); Mon, 1 Jun 2020 01:48:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590990482; bh=3NfdEOcEuVpzHL9fLwQi+w0me4LqMXjJFSJdC/uf5L8=; h=X-UI-Sender-Class:Subject:From:To:Cc:References:Date:In-Reply-To; b=P8xRdqxh7FvbjIqH42zo0uh9RUAyxSKyEWdW+qB9YcXiVLayEkeXX6lYeAJUxo3Ix IHwWu9A9H7+iUO28kcQlqC9e2a3jtV486zB4QElI/R+t7lejocYzB+NzQaDcW1Ehbv XcpdBVWUfTtqi6leL94kDoNDdE3OgNJjlTFXEfwU= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([78.49.133.32]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MYw31-1jTLNp0J8t-00VgDQ; Mon, 01 Jun 2020 07:48:02 +0200 Subject: Re: [2/2] Coccinelle: memdup_user: Extending data processing for special tokens From: Markus Elfring To: Denis Efremov , Gilles Muller , Julia Lawall , Masahiro Yamada , Michal Marek , Nicolas Palix , Coccinelle Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Joe Perches References: <02c75f13-ec79-f4c0-f28a-8a354ea1f6f0@web.de> Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nnBKHDHHYZu7MoXlOmB32ndsfPthR3GSv jN7YD4Ad724H8fhRijmC1+RpuSce7w2JLj5cYj4MlccmNb8YUxsE8brY2WkXQYS8Ivse39MX BE66MQN0r5DQ6oqgoJ4gHIVBUv/Zw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4CJ5yTpvp+Orcz5KixHQmc5tbkLWf x0n1QFc1xxJhbzN+r9djSGGN/5IBDfUqSANC8cWzHpWaHmSuU3JSAMB/N+yQjIad2ztTckZY pwT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: <6cd81cb9-7fb6-bddc-65df-c3d50677ae7d@web.de> Date: Mon, 1 Jun 2020 07:47:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <02c75f13-ec79-f4c0-f28a-8a354ea1f6f0@web.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:IqoQ5dImrO129UCFy2lJjRF+bn2zNZpg52mE0au73MyJnd+8WNb nQYKpxbfZXHbE9NMzWf6G5xZ3YM5cpZvwL8USfURxSHvMOk1OYeYPPdY2nMKI8mrxRRMurX 7n7ALMbGcm2oA5jfoaMJ6tXT4AAbD4NgNFpbeahbEml5dXcdiEFxffz+xJpUDDBwm0coEve 9bWrcjobqSA2hzRw5Xp9g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:MEQ4ZoR97/E=:89/TNEFVVwGZjvN9ZHHTDG 7pl2dFFVfDgQhkZWyGwCYghDyGUd7iF6bv8AIjUlnu2WXXZ8AC4/XJZR2iFhB3FW/YJo8Xzj3 mwoNNL3/ZDo1GuavFEhtVRBwIfsocDxDXZrAsUobfoJXDygL7lPYMcqWZk09J4opKPzboz3oD /sJ3pkYiCm8WVhL8xamOwbyOcV/JIvlyj8orLL0elAMTHhFTGzIttQbjA5WtzX9/+LDX4JZ3z xUpxjNMdQ4siLPqyW8my4Ig6kxaHESS6/y0GpezzF++W4oN/+ODXGiRnHceZuze5NXmBRx3K4 yDI5Qcd0PXdOJVKrQsZpHnyHc9Nvr9DWhw9Q9aPIU9mcUbGa3Y5jSDvYx+cE+o849CLku0eyU Vrxd9jtSlIrcopofICaq2uPnogO5yzBlhwoiKcYD2Ys8M9t9/PON6YWpU/bq3a7EEREr30QZy ETwrsbNQRulhOsTtjkuOf+EgC5nsHwsq9DyicT3Y9h4ibGKbUng9ypJEVHZbdoDKCvj1tMH/X +zoQrJB84oeR6pnnDeHt2/mj7tmj2NB7Ku8BwJf9eLS1631djYnVgJsSgPfoCxfk+rgKkMiY1 7r14y4ekWJdQuY2yN7B3CE8aIKvyDF0jmtAy/wc7cDet6E3HOC5/AbiRBKO+L2EjYiJG8TvwA Y5XeNEJ62PEpD5nG0TnyG1q6zmOU+xPwKeV3ngTDsVyTNG/TyVPo5/09GxRgvkWXBCdNS+MmA zh30G+r6gWTbY/6ikE2f4n9MV+SDDotkG9pupf3o7/O6EtF5W3FVNsU9oEoUiuPtg/+Tl4DLJ BUIIMm1JjZZvKLXYAiRt8HIeLy+XJTjb1QXE0uKPWmfAqDeva3tcmoqGIWBmgKP5rGa5E21pw zys9GOeSTKVD6jcEUznxSeo8dDnKkxyhK/pGwfccgshE/olUWHf3vMy30leur8n6lPHvZZ/DQ 3ebN8Xu1uBn5M3r+X08vATTUICmPLrCGoLe7DCWmYd6j2nK8HCbtlaDTNRac6rk7kw58eH8qL U7osNA3MHLEsdPw/yhyh8bo99RrLF/bB7YrayctLlDunag0m9INfj+BHUUcBpah2Q7Dp4yd/S QjtXshxVp3xl/jj5TYlNKk3JrdxrjBkP1BEy6Bb6R58Y4ux7rlULgbX/a0Zz/shvZ4ut6Vy7g jXb4x0qv2Y6BRV4jJ4halGA5pH7UMh/Q+rbS3Zub9mJt9tbtkRhfWN40m5dV39D3t8abtcHDa AEwK6VRcfFGjlJiuf Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Unfortunately, the Coccinelle software does not like the following > SmPL code variant so far. > > to =3D > ( > - \( kmalloc \| kzalloc \) > + memdup_user > | > - \( kvmalloc \| kvzalloc \) > + vmemdup_user > ) > ( > - size, \( GFP_KERNEL \| GFP_USER \) > + from, size > ); > > > Message: > 25: no available token to attach to I have adjusted a bit of OCaml source code. Thus I could see where such information was provided. https://github.com/coccinelle/coccinelle/blob/7cf2c23e64066d5249a64a316cc5= 347831f7a63f/parsing_cocci/insert_plus.ml#L1041 =E2=80=A6 | (((infop,count,pcode) as p) :: ps) as all -> (* =E2=80=A6 modifications. for the moment, we thus give an error, asking the user to rewrite the semantic patch. *) if greater_than_end infop infom1 || is_minus m1 || !empty_isos =E2=80=A6 Will the referenced comment get any more software development attention? Regards, Markus