Received: by 10.192.165.148 with SMTP id m20csp1992724imm; Thu, 26 Apr 2018 05:06:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx49uj6yKVjBPSYysVCKk/9HUZroH9yrFU8ok2WMirkev8sEoblFV1Rbib1JsaD54pPX46NYw X-Received: by 2002:a17:902:be06:: with SMTP id r6-v6mr27847425pls.158.1524744419036; Thu, 26 Apr 2018 05:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524744418; cv=none; d=google.com; s=arc-20160816; b=waZI3DyyGsBvh3elqErZc8y1u4qjxHrTBivU8hPnxLC3TUFhPFCipUyQDP4PB2n2TU ScO7QDyaLG2A0WnsRyjIeiYShzigqqvmUEQSvi2LBXz8fLRiFwu5K48ipZPxHi0HJdRQ 7hrVd+RpR6gDmtrTVmEjUdCArGDhSyZu3lKDn+jdt/8jQQ1yjt8SN6/N4wbURrKYNYPY /mZTbetj6bnyR11Z39D/HsJscHuQw4p3OOtbyrg4COIXTKi0DnVXMHzhMnOqnvpK+JKp vociTirGrZ4O8oWkwWnJ/36w+/ksT93xEmd/V2PIzTHNJAPJt5gNO+yptJ3LDRCN4THv 1Btg== 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:openpgp:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=qBKLwO+5g0mH1LGvOEx+Ey0tNpfMu3aLitDM3g+sRAk=; b=KlL0XXNHHbF7E5rveiG7/Xcc+tbIcbD1n/op0U/iOWsA+gtzhBjd8p4ecN+0DytWJm 3DJI9bTIn44sQ9IlAJsOJKMKFvBnkAvDtX+tIhuOvFkwkdc8rYWT2cu841as6z1Db9Wn Ui4AbKYt4/F1TFeDH3jV1a4fA9vMczXCRqAfvG1rXleWJptI5M+eDUBkGTSyimaL1X8b gMKF09J7CofV5CD1C6QC5bUb2HU8LWitq44UGfWgA58lFNHVxEeOr1FbPLb5QqUyPImp D9Rd1SrCA+XhOc4sW/WaE+9hhCvJHxSgwyMjeQ4mptxEZOg+8ENsmfc8xj+JDwLh/H+W cYlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SfLf+Hev; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o186si5886334pga.350.2018.04.26.05.06.43; Thu, 26 Apr 2018 05:06:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SfLf+Hev; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755561AbeDZMEg (ORCPT + 99 others); Thu, 26 Apr 2018 08:04:36 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:46669 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754559AbeDZMEb (ORCPT ); Thu, 26 Apr 2018 08:04:31 -0400 Received: by mail-wr0-f196.google.com with SMTP id d1-v6so56480603wrj.13; Thu, 26 Apr 2018 05:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qBKLwO+5g0mH1LGvOEx+Ey0tNpfMu3aLitDM3g+sRAk=; b=SfLf+HevlJrU/K+/cvQV0by953z6jy216hdJ73d8+i78al0HUh1q2XiLe+0wEcME9R AAAm9Qb2LPyHBmV8LOA6InS6IigglK7w6ACf/aTRLdHi1dKeFmgttMm65hLzUGvOlmcr T648Sx1R282M4bekBffqCy96GHJQg74WjebiW79gd01DvWNjRY5EFBJawTdvNzXPieTv gqUufsYYqYFHvp/PrJNHhd9jujdoioukyaKYJV36oDrpQ/G8QSYu8Oi6qFdtos512KnL DKNEVwjzngKx1Rt3GgbjTO8J5yIrqwVpn8paLHBNBOkyIGoHXEI2zac26YJoDAgzOm1J vuMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=qBKLwO+5g0mH1LGvOEx+Ey0tNpfMu3aLitDM3g+sRAk=; b=M242UKSygnAVhZ4nqRAgAjJM7DmZsH1JgRC80w1QKoDyySofLvi8FrGNUShluWEGRG D82j/N37HQfexSvQFItIpeYKaJ8ydp1XlCo/Vw//ApOAHdT+Y1JmfnDyrTjaA9P47XJV hyK4uN0zzqFInnObmRSQJ4dAvd4FBiBv+kVr+6gLZPgz3U57NLgoIyzEAdX0T61Q+m5s Jvuwrad/X3LoJL74xo8vkjmiDK6JurD5oR+uDgDQnEGjHo7ZUxrROXg+tT6vk6mmMoNj xCknnCXeKQqe1T2ViXf0q6XjnT4E9kpY6VL1dqm541Nd8YdFljij0hchwwXwfpwZFbR9 HzoQ== X-Gm-Message-State: ALQs6tC5g+N4HQEJwKZMrpgpNS8QHs+mnRZwluioVYfCdt0L19XBWcIr 7jCCSBL6yyp/HzkA5tn5/QI4gis= X-Received: by 2002:adf:a0b8:: with SMTP id m53-v6mr5451865wrm.269.1524744270302; Thu, 26 Apr 2018 05:04:30 -0700 (PDT) Received: from [192.168.1.187] ([46.33.201.6]) by smtp.googlemail.com with ESMTPSA id e11-v6sm5392405wrm.37.2018.04.26.05.04.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 05:04:29 -0700 (PDT) Subject: Re: [PATCH] connector: add parent pid and tgid to coredump and exit events To: Jesper Derehag , David Miller , "zbr@ioremap.net" Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "xe-linux-external@cisco.com" , "matt.helsley@gmail.com" References: <20180329141247.20943-1-sstrogin@cisco.com> <20180330.125921.653839794312978457.davem@davemloft.net> <7d976488-6375-b3a8-e9d7-dc86b4c51b86@cisco.com> From: Stefan Strogin Openpgp: preference=signencrypt Autocrypt: addr=stefan.strogin@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFh60cEBEAC4niku0HBaKxgZ3GQ/KUHDh7x02CWF7VkeKUA4daLK/35KRqLlZzuEo4u/ DZz9+bt6AF2h89u5PVQA4d+A5BelWc/9+VF1pQZKYYFp0gSoL807SHQwqmMNuxfqcIRC3IRn YBkEAXKqmSzfhiLmM7tC8nFfyYAZQHSbFg/OujKsm48rL1YfoCQMXKbY0dy7IoBNy79VJj9Y R/ZPL6SEPpinnHcoxlxp9czzaq8ze7V40xeWaE2eVWWY6KYL4wapvOEUF/JaHLSNLNpvnt+i dQpM+c5TBznhRZ0NciiNzGPx1UF8wGrzKPfxuPuYjS1JaIMGpU9SqRyzx8qDBU7wYSH6LPQE /FbSHIjVj7Ts5GUuroy+QMH0ws8VnOTWgqq11wi9T/U5Cg8dWWcki5HCdDN4ymTqzjPzb+pq XD1mO9pgFtOGHJlUWGFYYs6z++adCboll2cI+c5j2NvRI9qXCHG92h9dR1NTqA8yj1NIbfIO jDCbBn4mHbRekVzaFbrPDy8JkHm5NIFIy48q9vmZHTWjgpgduyNsaAeIZ2/O064g27ueF6wZ S91TRThyPsw9LBMM2ap2Y1/cXgEvoEtHnlDtjHCKkENQquRvj44EsSB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3l0q2eubgk4x0Z8jaQbZ5F+e2k6EWXaBR/BbNM4 BD0sxHt/Z5q7m54JwaQJd1SqQTxBoS/bl0oLArzT+HNxPayWTKuEfqorRrPB/EfRyitEFOlg 9jc6ziv/2X46k16uDhkNhH7enWcewzVkmUbj85Iq4BxYROWVkdcH46Sowo4TJ21PIsWBhez6 GTiydQ9neKkX1nBOeiPxoxDJsB0Fj0fltv7bnV9tD9FcK/FlMUkvptXh877m2mD/Xdo= Message-ID: <32f14672-5715-3e21-ba85-b27dc8d2c6b0@gmail.com> Date: Thu, 26 Apr 2018 15:04:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, Evgeniy, Sorry to bother you, but could you please comment about the UAPI change and the patch? Thanks, Jesper. -- Stefan On 05/04/18 12:07, Jesper Derehag wrote: > Unless David comes back with something I have (also) missed regarding uapi breakage, this looks good to me. > > /Jesper > > ________________________________________ > Från: Stefan Strogin > Skickat: den 2 april 2018 17:18 > Till: David Miller > Kopia: zbr@ioremap.net; netdev@vger.kernel.org; linux-kernel@vger.kernel.org; xe-linux-external@cisco.com; jderehag@hotmail.com; matt.helsley@gmail.com; minipli@googlemail.com > Ämne: Re: [PATCH] connector: add parent pid and tgid to coredump and exit events > > Hi David, > > I don't see how it breaks UAPI. The point is that structures > coredump_proc_event and exit_proc_event are members of *union* > event_data, thus position of the existing data in the structure is > unchanged. Furthermore, this change won't increase size of struct > proc_event, because comm_proc_event (also a member of event_data) is > of bigger size than the changed structures. > > If I'm wrong, could you please explain what exactly will the change > break in UAPI? > > > On 30/03/18 19:59, David Miller wrote: >> From: Stefan Strogin >> Date: Thu, 29 Mar 2018 17:12:47 +0300 >> >>> diff --git a/include/uapi/linux/cn_proc.h b/include/uapi/linux/cn_proc.h >>> index 68ff25414700..db210625cee8 100644 >>> --- a/include/uapi/linux/cn_proc.h >>> +++ b/include/uapi/linux/cn_proc.h >>> @@ -116,12 +116,16 @@ struct proc_event { >>> struct coredump_proc_event { >>> __kernel_pid_t process_pid; >>> __kernel_pid_t process_tgid; >>> + __kernel_pid_t parent_pid; >>> + __kernel_pid_t parent_tgid; >>> } coredump; >>> >>> struct exit_proc_event { >>> __kernel_pid_t process_pid; >>> __kernel_pid_t process_tgid; >>> __u32 exit_code, exit_signal; >>> + __kernel_pid_t parent_pid; >>> + __kernel_pid_t parent_tgid; >>> } exit; >>> >>> } event_data; >> >> I don't think you can add these members without breaking UAPI. >> >