You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/12/23 10:04:15 UTC

[GitHub] [nuttx] pussuw opened a new pull request, #7966: group/addrenv: Fix the removal of address environments when a process exits

pussuw opened a new pull request, #7966:
URL: https://github.com/apache/nuttx/pull/7966

   ## Summary
   Highlights are in commit messages, but as a summary this fixes several issues with group and address environment handling when a process exits or is being killed:
   - Group becomes NULL, when nxtask_exithook is called the first time. This is not done in a critical section and a context change or IRQ can happen afterwards -> the address environment selector does not know what to do any more when restoring the (new?) context
   - Address environment is released before the system is done using it. The kernel mappings exist inside each process's address environment, and if these are destroyed, the kernel is left without mappings. This might not cause an immediate crash as the physical memory might not be re-used, but _if it is, the system crashes at once because of a corrupt page directory_
   
   This commit fixes both issues by:
   - Adding a safe copy reference to the group into TCB, which is used to determine the group structure whose mappings are in use.
   - Adding a reference counter to protect the mappings from removal, if someone is using them
   
   Kernel processes continue to "lend" the address environment from the user processes, but this time they inform the user process (group) that the address environment is in use (via the ref. counter) which ensures that the address environment (nor the group) are NOT freed when the kernel still needs them.
   
   Also added a work queue to do the heavy lifting when an address environment is destroyed, otherwise this work would be done during a context switch which is IMO a very bad idea.
   
   ## Impact
   Significant, but only affects builds with CONFIG_ARCH_ADDRENV=y (i.e. kernel build)
   
   ## Testing
   icicle:knsh
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1060821906


##########
sched/group/group_addrenv.c:
##########
@@ -98,11 +161,11 @@ int group_addrenv(FAR struct tcb_s *tcb)
     }
 
   DEBUGASSERT(tcb && tcb->group);

Review Comment:
   This DEBUGASSERT() still causes a crash as tcb->group can be NULL here. I will do the fix tomorrow.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1385239056

   Ok, time to abandon this. I realize that this patch is incomplete and the alternate approach is needed instead:
   
   > Another option would be to store the address environment only here but that gets a bit dirty IMO. It would require changing group->tg_addrenv into a pointer and allocating it from kheap.
   
   There are several issues with usage of the pair `up_addrenv_select(&newenv, &oldenv)` and `up_addrenv_restore(&oldenv)` . If a context switch happens between those, the system crashes when the context restore is attempted, because the wrong address environment is instantiated. The process thinks it is using "newenv" but the context restore procedure restores "oldenv". "oldenv" in this case is the process's own address environment (group->tg_addrenv).
   
   This same issue can be found in several other places too.
   
   So I will create patches that decouple storing the address environment from group to its own container and fix all related errors.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1059963499


##########
include/nuttx/sched.h:
##########
@@ -1054,6 +1058,30 @@ FAR struct task_tcb_s *nxtask_setup_vfork(start_t retaddr);
 pid_t nxtask_start_vfork(FAR struct task_tcb_s *child);
 void nxtask_abort_vfork(FAR struct task_tcb_s *child, int errcode);
 
+/****************************************************************************
+ * Name: group_addrenv_attach
+ *
+ * Description:
+ *   Attach address environment to a newly created group. Called by exec()
+ *   right before injecting the new process into the system.
+ *
+ * Input Parameters:
+ *   tcb     - The tcb of the newly loaded task.
+ *   addrenv - The address environment that is attached.
+ *
+ * Returned Value:
+ *   This is a NuttX internal function so it follows the convention that
+ *   0 (OK) is returned on success and a negated errno is returned on
+ *   failure.
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_ARCH_ADDRENV
+struct group_addrenv_s;

Review Comment:
   don't need?



##########
include/nuttx/sched.h:
##########
@@ -525,6 +526,9 @@ struct tcb_s
 
   /* Task Group *************************************************************/
 
+#ifdef CONFIG_ARCH_ADDRENV
+  FAR struct task_group_s *mm_group;   /* Active memory mappings group      */

Review Comment:
   why need mm_group and group?



##########
sched/group/group_leave.c:
##########
@@ -408,3 +376,66 @@ void group_leave(FAR struct tcb_s *tcb)
 }
 
 #endif /* HAVE_GROUP_MEMBERS */
+
+/****************************************************************************
+ * Name: group_drop
+ *
+ * Description:
+ *   Release the group's memory. This function is called whenever a reference
+ *   to the group structure is released. It is not dependent on member count,
+ *   but rather external references, which include:
+ *   - Waiter list for waitpid()
+ *   - Users of the group's address environment, which can be the group's
+ *     members themselves, as well as kernel tasks whom do not have their own
+ *     address environment.
+ *
+ * Input Parameters:
+ *   group - The group that is to be dropped
+ *
+ * Returned Value:
+ *   None.
+ *
+ * Assumptions:
+ *   Called during task deletion or context switch in a safe context.  No
+ *   special precautions are required here.
+ *
+ ****************************************************************************/
+
+void group_drop(FAR struct task_group_s *group)
+{
+  /* Dummy initial condition */
+
+  if (0)

Review Comment:
   let's remove the dummy if:
   ```
   #if defined(CONFIG_SCHED_WAITPID) && !defined(CONFIG_SCHED_HAVE_PARENT)
     if (group->tg_nwaiters > 0)
       {
       }
     else
   #endif
   #if defined(CONFIG_ARCH_ADDRENV)
     /* If someone needs this address environment, cannot drop it yet */
     if (group->tg_addrenv_refs > 0)
       {
       }
     else
   #endif
     /* Finally, if no one needs the group and it has been deleted, remove it */
     if (group->tg_flags & GROUP_FLAG_DELETED)
       {
       }
   ```



##########
sched/group/group.h:
##########
@@ -80,6 +69,7 @@ int  group_bind(FAR struct pthread_tcb_s *tcb);
 int  group_join(FAR struct pthread_tcb_s *tcb);
 #endif
 void group_leave(FAR struct tcb_s *tcb);
+void group_drop(FAR struct task_group_s *group);

Review Comment:
   why we have both group_drop and group_addrenv_drop



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1363967660

   I tried quickly with qemu but I have very limited experience using that, but It seems there might be some issue with cache handling, since the SW crashes and the call stack would indicate instruction / data fetch page fault.
   
   I will be OoO until next year, so I will continue debugging then.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1059981767


##########
sched/group/group.h:
##########
@@ -80,6 +69,7 @@ int  group_bind(FAR struct pthread_tcb_s *tcb);
 int  group_join(FAR struct pthread_tcb_s *tcb);
 #endif
 void group_leave(FAR struct tcb_s *tcb);
+void group_drop(FAR struct task_group_s *group);

Review Comment:
   Because the address environment is needed even if the group is destroyed. The kernel uses mappings from user processes i.e. the kernel page directory is copied to each user process, and when the kernel is running it "lends" the mappings from the user process. Sometimes this is called "lazy tlb", the reason is that no TLB flush is needed when switching from user -> kernel.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1062614254


##########
sched/group/group_leave.c:
##########
@@ -408,3 +376,66 @@ void group_leave(FAR struct tcb_s *tcb)
 }
 
 #endif /* HAVE_GROUP_MEMBERS */
+
+/****************************************************************************
+ * Name: group_drop
+ *
+ * Description:
+ *   Release the group's memory. This function is called whenever a reference
+ *   to the group structure is released. It is not dependent on member count,
+ *   but rather external references, which include:
+ *   - Waiter list for waitpid()
+ *   - Users of the group's address environment, which can be the group's
+ *     members themselves, as well as kernel tasks whom do not have their own
+ *     address environment.
+ *
+ * Input Parameters:
+ *   group - The group that is to be dropped
+ *
+ * Returned Value:
+ *   None.
+ *
+ * Assumptions:
+ *   Called during task deletion or context switch in a safe context.  No
+ *   special precautions are required here.
+ *
+ ****************************************************************************/
+
+void group_drop(FAR struct task_group_s *group)
+{
+  /* Dummy initial condition */
+
+  if (0)

Review Comment:
   I did not realize, but I tested and fixed it like you suggested! Thanks for the tip!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1062614254


##########
sched/group/group_leave.c:
##########
@@ -408,3 +376,66 @@ void group_leave(FAR struct tcb_s *tcb)
 }
 
 #endif /* HAVE_GROUP_MEMBERS */
+
+/****************************************************************************
+ * Name: group_drop
+ *
+ * Description:
+ *   Release the group's memory. This function is called whenever a reference
+ *   to the group structure is released. It is not dependent on member count,
+ *   but rather external references, which include:
+ *   - Waiter list for waitpid()
+ *   - Users of the group's address environment, which can be the group's
+ *     members themselves, as well as kernel tasks whom do not have their own
+ *     address environment.
+ *
+ * Input Parameters:
+ *   group - The group that is to be dropped
+ *
+ * Returned Value:
+ *   None.
+ *
+ * Assumptions:
+ *   Called during task deletion or context switch in a safe context.  No
+ *   special precautions are required here.
+ *
+ ****************************************************************************/
+
+void group_drop(FAR struct task_group_s *group)
+{
+  /* Dummy initial condition */
+
+  if (0)

Review Comment:
   I did not realize, but I tested and fixed it like you suggested!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1059984109


##########
include/nuttx/sched.h:
##########
@@ -525,6 +526,9 @@ struct tcb_s
 
   /* Task Group *************************************************************/
 
+#ifdef CONFIG_ARCH_ADDRENV
+  FAR struct task_group_s *mm_group;   /* Active memory mappings group      */

Review Comment:
   Another option would be to store the address environment only here but that gets a bit dirty IMO. It would require changing group->addrenv into a pointer and allocating the addrenv from kheap. 
   
   My reason for not doing this is that each group needs the address environment, so why try allocating it separately from heap ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1059982065


##########
sched/group/group.h:
##########
@@ -80,6 +69,7 @@ int  group_bind(FAR struct pthread_tcb_s *tcb);
 int  group_join(FAR struct pthread_tcb_s *tcb);
 #endif
 void group_leave(FAR struct tcb_s *tcb);
+void group_drop(FAR struct task_group_s *group);

Review Comment:
   Also, as kernel threads to not have an address environment of their own, mm_group is NULL for them.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1368913793

   I changed HPWORK -> LPWORK because releasing the address environment that is no longer in use is not that timing critical.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1062612671


##########
sched/group/group_leave.c:
##########
@@ -408,3 +376,66 @@ void group_leave(FAR struct tcb_s *tcb)
 }
 
 #endif /* HAVE_GROUP_MEMBERS */
+
+/****************************************************************************
+ * Name: group_drop
+ *
+ * Description:
+ *   Release the group's memory. This function is called whenever a reference
+ *   to the group structure is released. It is not dependent on member count,
+ *   but rather external references, which include:
+ *   - Waiter list for waitpid()
+ *   - Users of the group's address environment, which can be the group's
+ *     members themselves, as well as kernel tasks whom do not have their own
+ *     address environment.
+ *
+ * Input Parameters:
+ *   group - The group that is to be dropped
+ *
+ * Returned Value:
+ *   None.
+ *
+ * Assumptions:
+ *   Called during task deletion or context switch in a safe context.  No
+ *   special precautions are required here.
+ *
+ ****************************************************************************/
+
+void group_drop(FAR struct task_group_s *group)
+{
+  /* Dummy initial condition */
+
+  if (0)

Review Comment:
   why not work? there are many places use this trick like this:
   https://github.com/apache/nuttx/blob/ec93385dfa5bda50b6175567d0949fd2ea8aa16e/fs/vfs/fs_unlink.c#L148-L152



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] masayuki2009 commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1363922744

   @pussuw 
   
   >Can you please help me test this, I do not have ARM HW with MMU to test this change with. I have verified that with RISC-V the change works as expected.
   
   You can test this PR with sabre-6quad:knsh on QEMU.
   However, I will try this PR tomorrow.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1363956100

   > @pussuw
   > 
   > Please update `sabre-6quad/configs/netknsh_smp/defconfig`
   > 
   > ```
   > /github/workspace/sources/apps /github/workspace/sources/nuttx
   > /github/workspace/sources/nuttx
   >   Normalize sabre-6quad/netknsh_smp
   > 109d108
   > < CONFIG_SCHED_HPWORK=y
   > Saving the new configuration file
   > HEAD detached at pull/7966/merge
   > Changes not staged for commit:
   > ```
   
   Thanks, I did not realize that adding "select XXX" will cause such an issue. I did depends SCHED_HPWORK instead. Not sure what is the proper way of handling this...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1385291702

   So, we have to forbid the task switch between up_addrenv_select and up_addrenv_restore?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] masayuki2009 commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1363952352

   @pussuw 
   
   Please update `sabre-6quad/configs/netknsh_smp/defconfig`
   
   ```
   /github/workspace/sources/apps /github/workspace/sources/nuttx
   /github/workspace/sources/nuttx
     Normalize sabre-6quad/netknsh_smp
   109d108
   < CONFIG_SCHED_HPWORK=y
   Saving the new configuration file
   HEAD detached at pull/7966/merge
   Changes not staged for commit:
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1363997568

   I think I made a mistake with qemu, It seems to partially work with these instructions:
   
   ```
       This is a configuration of testing the BUILD_KERNEL configuration.
   
       $ cd nuttx
       $ ./tools/configure.sh sabre-6quad:knsh
       $ make V=1 -j7
       $ make export V=1
       $ cd ../apps
       $ ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-*.tar.gz
       $ make import V=1
       $ cd ../nuttx
       $ qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -nographic -kernel ./nuttx
   ```
   ```
   ville@ville-ThinkPad-T14s-Gen-1:~/wpc_toolchain/workspace/nuttx-bare/nuttx$ qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -nographic -kernel ./nuttx
   ABDGHIJKNOPQ
   
   NuttShell (NSH) NuttX-10.4.0
   nsh> ps
     PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK   USED  FILLED COMMAND
       0     0   0 FIFO     Kthread N-- Ready              00000000 002024 000816  40.3%  Idle Task
       1     1 224 RR       Kthread --- Waiting  Semaphore 00000000 001992 000416  20.8%  hpwork 0x10815a34
       2     2 100 RR       Task    --- Running            00000000 003016 001116  37.0%  /system/bin/init
   nsh> 
   
   ```
   But then 
   ```
   
   nsh> /system/bin/getprime
   Set thread priority to 10
   Set thread policy to SCHED_RR
   Start thread #0
   [   77.590000] arm_dataabort: Data abort. PC: 108012d2 DFAR: 00000098 DFSR: 0000080d
   [   77.590000] _assert: Assertion failed at file: armv7-a/arm_dataabort.c:161 task: /system/bin/getprime 0x80000765
   [   77.590000] arm_registerdump: R0: 00000000 R1: 00000000 R2: 600000df  R3: 00000001
   [   77.590000] arm_registerdump: R4: 108195f0 R5: 00000000 R6: 000000df  FP: 108152dc
   [   77.590000] arm_registerdump: R8: 108153c8 SB: 80202798 SL: 8020279c R11: 00000000
   [   77.590000] arm_registerdump: IP: 00000080 SP: 108150b0 LR: 1080136f  PC: 108012d2
   [   77.590000] arm_registerdump: CPSR: 000000ff
   [   77.590000] dump_stack: IRQ Stack:
   [   77.590000] dump_stack: sp:     10814f30
   [   77.590000] dump_stack:   base: 108148d8
   [   77.590000] dump_stack:   size: 00002048
   [   77.590000] stackdump: 10814f20: 00000304 00000001 80000765 108053c9 10814f68 00000000 000000df 108152dc
   [   77.590000] stackdump: 10814f40: 108153c8 80202798 8020279c 10804411 108122cf 10800901 00000098 0000080d
   [   77.590000] stackdump: 10814f60: 0000080d 108001a4 00000000 00000000 00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10814f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10814fa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10814fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10814fe0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10815000: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10815020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10815040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10815060: 00000000 00000000 00000000 108150b0 1080136f 00000000 00000000 600000df
   [   77.590000] stackdump: 10815080: 00000001 108195f0 00000000 000000df 108152dc 108153c8 80202798 8020279c
   [   77.590000] stackdump: 108150a0: 00000000 00000080 108012d2 000000ff 802046b8 1081b270 108152d8 00000002
   [   77.590000] dump_stack: User Stack:
   [   77.590000] dump_stack: sp:     108150b0
   [   77.590000] dump_stack:   base: 80202038
   [   77.590000] dump_stack:   size: 00001992
   [   77.590000] dump_stack: ERROR: User Stack pointer is not within the stack
   [   77.590000] dump_stack: Kernel Stack:
   [   77.590000] dump_stack: sp:     108150b0
   [   77.590000] dump_stack:   base: 1081a810
   [   77.590000] dump_stack:   size: 00003072
   [   77.590000] dump_stack: ERROR: Kernel Stack pointer is not within the stack
   [   77.590000] showtasks:    PID    PRI     STACK      USED   FILLED    COMMAND
   [   77.590000] showtasks:   ----   ----      2048       796    38.8%    irq
   [   77.590000] dump_task:      0      0      2024       816    40.3%    Idle Task
   [   77.590000] dump_task:      1    224      1992       416    20.8%    hpwork 0x10815a34
   [   77.590000] dump_task:      2    100      3016      1116    37.0%    /system/bin/init
   [   77.590000] dump_task:      3    100      1992       780    39.1%    /system/bin/getprime
   [   77.590000] dump_task:      4    100      2024       328    16.2%    <pthread> 0x8000077d 0x80202798
   ```
   
   :(


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1059980713


##########
include/nuttx/sched.h:
##########
@@ -1054,6 +1058,30 @@ FAR struct task_tcb_s *nxtask_setup_vfork(start_t retaddr);
 pid_t nxtask_start_vfork(FAR struct task_tcb_s *child);
 void nxtask_abort_vfork(FAR struct task_tcb_s *child, int errcode);
 
+/****************************************************************************
+ * Name: group_addrenv_attach
+ *
+ * Description:
+ *   Attach address environment to a newly created group. Called by exec()
+ *   right before injecting the new process into the system.
+ *
+ * Input Parameters:
+ *   tcb     - The tcb of the newly loaded task.
+ *   addrenv - The address environment that is attached.
+ *
+ * Returned Value:
+ *   This is a NuttX internal function so it follows the convention that
+ *   0 (OK) is returned on success and a negated errno is returned on
+ *   failure.
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_ARCH_ADDRENV
+struct group_addrenv_s;

Review Comment:
   You are right, I assumed there would not be visibility to arch/arch but I was wrong. Will remove



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1060147291


##########
include/nuttx/sched.h:
##########
@@ -525,6 +526,9 @@ struct tcb_s
 
   /* Task Group *************************************************************/
 
+#ifdef CONFIG_ARCH_ADDRENV
+  FAR struct task_group_s *mm_group;   /* Active memory mappings group      */

Review Comment:
   I think one of my comments got lost, the reason we need mm_group and group separately, is that when a process is destroyed it detaches the group from tcb->group in group_leave.c 
   ```
   
   void group_leave(FAR struct tcb_s *tcb)
   {
   ...
         /* In any event, we can detach the group from the TCB so that we won't
          * do this again.
          */
         tcb->group = NULL;
       }
   }
   ```
   
   The address environment however might still be needed:
   - The process itself needs it if it is running (and it always is in this case). If a context switch (or IRQ!) happens after this, group_addrenv() crashes when the process is re-scheduled, because the ready-to-run head does not have a valid tcb->group any more.
   - If the next thread is a kernel thread, it will need this process's address environment to run
   
   The functionality of group_leave() is good and I would not modify it. So I added a safe reference "mm_group" that will contain the group whose address environment is in use. 
   - For user processes this is always its own group.
   - For kernel threads this is NULL, if the thread is not running, and contains the last user process's group if it is running



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1060147291


##########
include/nuttx/sched.h:
##########
@@ -525,6 +526,9 @@ struct tcb_s
 
   /* Task Group *************************************************************/
 
+#ifdef CONFIG_ARCH_ADDRENV
+  FAR struct task_group_s *mm_group;   /* Active memory mappings group      */

Review Comment:
   I think one of my comments got lost, the reason we need mm_group and group separately, is that when a process is destroyed it detaches the group from tcb->group in group_leave.c 
   ```
   
   void group_leave(FAR struct tcb_s *tcb)
   {
   ...
         /* In any event, we can detach the group from the TCB so that we won't
          * do this again.
          */
         tcb->group = NULL;
       }
   }
   ```
   
   This code is good and I would not modify it. So I added a safe reference "mm_group" that will contain the group whose address environment is in use. 
   - For user processes this is always its own group.
   - For kernel threads this is NULL, if the thread is not running, and contains the last user process's group if it is running



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1385294661

   > So, we have to forbid the task switch between up_addrenv_select and up_addrenv_restore?
   
   It is not enough, the logic / implementation of group_addrenv() is incomplete. Even running an IRQ between those will cause a crash.
   
   Also, if the code uses semaphores between up_addrenv_select and up_addrenv_restore won't this cause a deadlock ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1363808100

   @masayuki2009 Can you please help me test this, I do not have ARM HW with MMU to test this change with. I have verified that with RISC-V the change works as expected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] masayuki2009 commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1368845626

   @pussuw 
   Happy New Year!
   And, thanks for fixing the crash with sabre-6quad on QEMU.
   I've just confirmed the PR works with both sabre-6quad (ARMv7-A) and rv-virt (RISC-V RV64).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1059984109


##########
include/nuttx/sched.h:
##########
@@ -525,6 +526,9 @@ struct tcb_s
 
   /* Task Group *************************************************************/
 
+#ifdef CONFIG_ARCH_ADDRENV
+  FAR struct task_group_s *mm_group;   /* Active memory mappings group      */

Review Comment:
   Another option would be to store the address environment only here but that gets a bit dirty IMO. It would require changing group->tg_addrenv into a pointer and allocating it from kheap. 
   
   My reason for not doing this is that each group needs the address environment, so why try allocating it separately from heap ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1060147291


##########
include/nuttx/sched.h:
##########
@@ -525,6 +526,9 @@ struct tcb_s
 
   /* Task Group *************************************************************/
 
+#ifdef CONFIG_ARCH_ADDRENV
+  FAR struct task_group_s *mm_group;   /* Active memory mappings group      */

Review Comment:
   I think one of my comments got lost, the reason we need mm_group and group separately, is that when a process is destroyed it detaches the group from tcb->group in group_leave.c 
   ```
   
   void group_leave(FAR struct tcb_s *tcb)
   {
   ...
         /* In any event, we can detach the group from the TCB so that we won't
          * do this again.
          */
         tcb->group = NULL;
       }
   }
   ```
   
   The address environment however might still be needed:
   - The process itself needs it if it is running (and it always is in this case). If a context switch (or IRQ!) happens after this, group_addrenv() crashes when the process is re-scheduled, because the ready-to-run head does not have a valid tcb->group any more.
   - If the next thread is a kernel thread, it will need this process's address environment to run
   
   This code is good and I would not modify it. So I added a safe reference "mm_group" that will contain the group whose address environment is in use. 
   - For user processes this is always its own group.
   - For kernel threads this is NULL, if the thread is not running, and contains the last user process's group if it is running



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1060147291


##########
include/nuttx/sched.h:
##########
@@ -525,6 +526,9 @@ struct tcb_s
 
   /* Task Group *************************************************************/
 
+#ifdef CONFIG_ARCH_ADDRENV
+  FAR struct task_group_s *mm_group;   /* Active memory mappings group      */

Review Comment:
   I think one of my comments got lost, the reason we need mm_group and group separately, is that when a process is destroyed it detaches the group from tcb->group in group_leave.c 
   ```
   
   void group_leave(FAR struct tcb_s *tcb)
   {
   ...
         /* In any event, we can detach the group from the TCB so that we won't
          * do this again.
          */
         tcb->group = NULL;
       }
   }
   ```
   
   This code is good and I would not modify it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1062612671


##########
sched/group/group_leave.c:
##########
@@ -408,3 +376,66 @@ void group_leave(FAR struct tcb_s *tcb)
 }
 
 #endif /* HAVE_GROUP_MEMBERS */
+
+/****************************************************************************
+ * Name: group_drop
+ *
+ * Description:
+ *   Release the group's memory. This function is called whenever a reference
+ *   to the group structure is released. It is not dependent on member count,
+ *   but rather external references, which include:
+ *   - Waiter list for waitpid()
+ *   - Users of the group's address environment, which can be the group's
+ *     members themselves, as well as kernel tasks whom do not have their own
+ *     address environment.
+ *
+ * Input Parameters:
+ *   group - The group that is to be dropped
+ *
+ * Returned Value:
+ *   None.
+ *
+ * Assumptions:
+ *   Called during task deletion or context switch in a safe context.  No
+ *   special precautions are required here.
+ *
+ ****************************************************************************/
+
+void group_drop(FAR struct task_group_s *group)
+{
+  /* Dummy initial condition */
+
+  if (0)

Review Comment:
   why not work? there are many places use this trick.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1059982843


##########
sched/group/group_leave.c:
##########
@@ -408,3 +376,66 @@ void group_leave(FAR struct tcb_s *tcb)
 }
 
 #endif /* HAVE_GROUP_MEMBERS */
+
+/****************************************************************************
+ * Name: group_drop
+ *
+ * Description:
+ *   Release the group's memory. This function is called whenever a reference
+ *   to the group structure is released. It is not dependent on member count,
+ *   but rather external references, which include:
+ *   - Waiter list for waitpid()
+ *   - Users of the group's address environment, which can be the group's
+ *     members themselves, as well as kernel tasks whom do not have their own
+ *     address environment.
+ *
+ * Input Parameters:
+ *   group - The group that is to be dropped
+ *
+ * Returned Value:
+ *   None.
+ *
+ * Assumptions:
+ *   Called during task deletion or context switch in a safe context.  No
+ *   special precautions are required here.
+ *
+ ****************************************************************************/
+
+void group_drop(FAR struct task_group_s *group)
+{
+  /* Dummy initial condition */
+
+  if (0)

Review Comment:
   Does this actually work, so the compiler knows to combine the else+if in these cases ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1368803076

   @masayuki2009 hello and happy new year! I have been testing with qemu / sabre-6quad and can not see any more issues. The test is obviously very limited i.e. manually running getprime() which does not cover a whole lot. If you can help test this on actual hardware that would be very much appreciated!
   
   The code is also ready for review from my part


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw closed pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw closed pull request #7966: group/addrenv: Fix the removal of address environments when a process exits
URL: https://github.com/apache/nuttx/pull/7966


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1062612671


##########
sched/group/group_leave.c:
##########
@@ -408,3 +376,66 @@ void group_leave(FAR struct tcb_s *tcb)
 }
 
 #endif /* HAVE_GROUP_MEMBERS */
+
+/****************************************************************************
+ * Name: group_drop
+ *
+ * Description:
+ *   Release the group's memory. This function is called whenever a reference
+ *   to the group structure is released. It is not dependent on member count,
+ *   but rather external references, which include:
+ *   - Waiter list for waitpid()
+ *   - Users of the group's address environment, which can be the group's
+ *     members themselves, as well as kernel tasks whom do not have their own
+ *     address environment.
+ *
+ * Input Parameters:
+ *   group - The group that is to be dropped
+ *
+ * Returned Value:
+ *   None.
+ *
+ * Assumptions:
+ *   Called during task deletion or context switch in a safe context.  No
+ *   special precautions are required here.
+ *
+ ****************************************************************************/
+
+void group_drop(FAR struct task_group_s *group)
+{
+  /* Dummy initial condition */
+
+  if (0)

Review Comment:
   why not work? there are many places use this trick like this:
   https://github.com/apache/nuttx/blob/ec93385dfa5bda50b6175567d0949fd2ea8aa16e/fs/vfs/fs_unlink.c#L136-L159



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on a diff in pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on code in PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#discussion_r1062699518


##########
sched/group/group_leave.c:
##########
@@ -408,3 +376,66 @@ void group_leave(FAR struct tcb_s *tcb)
 }
 
 #endif /* HAVE_GROUP_MEMBERS */
+
+/****************************************************************************
+ * Name: group_drop
+ *
+ * Description:
+ *   Release the group's memory. This function is called whenever a reference
+ *   to the group structure is released. It is not dependent on member count,
+ *   but rather external references, which include:
+ *   - Waiter list for waitpid()
+ *   - Users of the group's address environment, which can be the group's
+ *     members themselves, as well as kernel tasks whom do not have their own
+ *     address environment.
+ *
+ * Input Parameters:
+ *   group - The group that is to be dropped
+ *
+ * Returned Value:
+ *   None.
+ *
+ * Assumptions:
+ *   Called during task deletion or context switch in a safe context.  No
+ *   special precautions are required here.
+ *
+ ****************************************************************************/
+
+void group_drop(FAR struct task_group_s *group)
+{
+  /* Dummy initial condition */
+
+  if (0)

Review Comment:
   To clarify the thing I did not know is that the compiler knows to parse several lines for the first significant character.
   
   Compare the example you provided to this:
   ```
   
     else
   #endif
   #if defined(CONFIG_ARCH_ADDRENV)
     /* If someone needs this address environment, cannot drop it yet */
     if (group->tg_addrenv_refs > 0)
   ```
   
   I simply did not realize the compiler knows to ignore the pre-processor directives and the comment line, to combine the else+if. Thus, thank you for the tip!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1364031140

   Status now
   
   ```
   ville@ville-ThinkPad-T14s-Gen-1:~/wpc_toolchain/workspace/nuttx-bare/nuttx$ qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -nographic -kernel ./nuttx
   ABDGHIJKNOPQ
   
   NuttShell (NSH) NuttX-10.4.0
   nsh> ps
     PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK   USED  FILLED COMMAND
       0     0   0 FIFO     Kthread N-- Ready              00000000 002024 000816  40.3%  Idle Task
       1     1 224 RR       Kthread --- Waiting  Semaphore 00000000 001992 000416  20.8%  hpwork 0x10815a3c
       2     2 100 RR       Task    --- Running            00000000 003016 001116  37.0%  /system/bin/init
   nsh> /system/bin/getprime
   Set thread priority to 10
   Set thread policy to SCHED_RR
   Start thread #0
   thread #0 started, looking for primes < 10000, doing 10 run(s)
   thread #0 finished, found 1230 primes, last one was 9973
   Done
   /system/bin/getprime took 1780 msec
   nsh> 
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] pussuw commented on pull request #7966: group/addrenv: Fix the removal of address environments when a process exits

Posted by GitBox <gi...@apache.org>.
pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1364043002

   Marking as draft, needs more testing


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org