From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [PATCH 2/5] pid: use namespaced iteration on processes while using sysrq Date: Thu, 18 Dec 2008 11:12:03 -0600 Message-ID: <20081218171203.GD13188@us.ibm.com> References: <1229618553-6348-1-git-send-email-gowrishankar.m@linux.vnet.ibm.com> <1229618553-6348-3-git-send-email-gowrishankar.m@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1229618553-6348-3-git-send-email-gowrishankar.m-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Gowrishankar M Cc: Containers , Dave , Eric , Sukadev , Balbir List-Id: containers.vger.kernel.org Quoting Gowrishankar M (gowrishankar.m-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org): > From: Gowrishankar M > > At present, while signalling processes using sysrq, process iteration > goes beyond current PID namespace. > > Below patch uses one of the proposed namespace iteration macros to fix > the boundary. > > Signed-off-by: Gowrishankar M Nack, like Dave said. For hitting alt-sysrq-t on console, you want to hit the whole system, not just one ns. For echo t > /sys/sysrq-trigger, you do though. Fortunately, you can tell the difference using check_mask in __hande_sysrq(). So do that, and either always pass that on to op->handler and check it in send_sig_all(), or just filter on key there and call a custom handler. -serge