From: Anjali Kulkarni <anjali.k.kulkarni@oracle.com>
To: Oleg Nesterov <oleg@redhat.com>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
Liam Howlett <liam.howlett@oracle.com>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"axboe@kernel.dk" <axboe@kernel.dk>,
"brauner@kernel.org" <brauner@kernel.org>,
"mhocko@suse.com" <mhocko@suse.com>,
"alexjlzheng@tencent.com" <alexjlzheng@tencent.com>,
"willy@infradead.org" <willy@infradead.org>,
Michael Christie <michael.christie@oracle.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"shuah@kernel.org" <shuah@kernel.org>,
"linux-kselftest@vger.kernel.org"
<linux-kselftest@vger.kernel.org>, Pei Li <peili.io@oracle.com>,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: [PATCH net-next 1/2] connector/cn_proc: Handle threads for proc connector
Date: Fri, 20 Sep 2024 19:39:02 +0000 [thread overview]
Message-ID: <6D9B4443-4293-4EC8-A64A-1CDDB2CE4E4E@oracle.com> (raw)
In-Reply-To: <20240920184430.GB20847@redhat.com>
> On Sep 20, 2024, at 11:44 AM, Oleg Nesterov <oleg@redhat.com> wrote:
>
> On 09/20, Anjali Kulkarni wrote:
>>
>>> On Sep 20, 2024, at 4:00 AM, Oleg Nesterov <oleg@redhat.com> wrote:
>>>
>>> I don't think you can use task_struct->exit_code. If this task is ptraced,
>>> it can be changed/cleared in, say, ptrace_stop() after PROC_CN_MCAST_NOTIFY.
>>>
>>
>> Thank you, that’s a good point! However, the use case of ptrace, which I assume
>> is for mostly debug and tracing, is exclusive of the use case I am using it for
>
> Well. I don't understand your use-case. Or any other use-case for drivers/connector/
> that I know nothing about. But this is irrelevant.
>
> The new PROC_CN_MCAST_NOTIFY functionality you propose should work regardless of
Yes, agreed.
> whether this task is ptraced or not. But it doesn't because the usage of ->exit_code
> in your patch conflicts with the current usage of this field.
>
Ok, I see that ptrace_stop() seems to be using it in much the same way I want to use it - as a temporary place to store some values. Since in do_exit(), exit_code is overwritten, I didn’t think anyone was using it.
Could I add a new field in the task_struct to store my value? (I don’t think there is any other unused/field I can use temporarily)
Anjali
> So, NACK, sorry.
>
> Oleg.
>
next prev parent reply other threads:[~2024-09-20 19:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 0:09 [PATCH net-next 0/2] Threads extension for process connector Anjali Kulkarni
2024-09-20 0:09 ` [PATCH net-next 1/2] connector/cn_proc: Handle threads for proc connector Anjali Kulkarni
2024-09-20 11:00 ` Oleg Nesterov
2024-09-20 15:42 ` Anjali Kulkarni
2024-09-20 18:44 ` Oleg Nesterov
2024-09-20 19:39 ` Anjali Kulkarni [this message]
2024-09-20 0:09 ` [PATCH net-next 2/2] connector/cn_proc: Selftest for threads case Anjali Kulkarni
2024-09-22 1:23 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6D9B4443-4293-4EC8-A64A-1CDDB2CE4E4E@oracle.com \
--to=anjali.k.kulkarni@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=alexjlzheng@tencent.com \
--cc=axboe@kernel.dk \
--cc=brauner@kernel.org \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=liam.howlett@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mhocko@suse.com \
--cc=michael.christie@oracle.com \
--cc=netdev@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=pabeni@redhat.com \
--cc=peili.io@oracle.com \
--cc=shuah@kernel.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®