From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1451 invoked by alias); 26 Nov 2006 23:34:23 -0000 Received: (qmail 1440 invoked by uid 22791); 26 Nov 2006 23:34:22 -0000 X-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_20,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 26 Nov 2006 23:34:18 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kAQNYGvn017434 for ; Sun, 26 Nov 2006 18:34:16 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id kAQNYFMv015433 for ; Sun, 26 Nov 2006 18:34:15 -0500 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kAQNYFGq019757 for ; Sun, 26 Nov 2006 18:34:15 -0500 Received: from ton.toronto.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 3BFAC800005 for ; Sun, 26 Nov 2006 18:34:15 -0500 (EST) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id kAQNYEIU012846 for ; Sun, 26 Nov 2006 18:34:14 -0500 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id kAQNYEmR012845 for systemtap@sources.redhat.com; Sun, 26 Nov 2006 18:34:14 -0500 Date: Mon, 27 Nov 2006 16:56:00 -0000 From: "Frank Ch. Eigler" To: systemtap@sources.redhat.com Subject: translator safety improvements Message-ID: <20061126233414.GF30369@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q4/txt/msg00528.txt.bz2 Hi - I committed a small bunch of changes to the translator, in furtherance of PR 2725 and others. The changes include: - adding low-level locking functions to the blacklist, for avoidance of reentrancy. If your script depended on these, let me know. - added an available-stack-space check done at every probe handler. This could accidentally break a few currently working scripts, by blocking their function if the probes are placed into a too-deeply-nested region of kernel space-time. If your script breaks, please let me know. - added architecture/version matching at translation time to detect debuginfo/kernel mismatches. This could accidentally break a few platforms - see tapsets.cxx:2797. I'm getting good results with these changes against broad kernel probes. Doing some craa-aazy stuff with kernel.function("*") is not far away. - FChE