From owner-freebsd-dtrace@freebsd.org Tue Nov 5 11:04:47 2019 Return-Path: Delivered-To: freebsd-dtrace@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0E5581A29EF for ; Tue, 5 Nov 2019 11:04:47 +0000 (UTC) (envelope-from return-to@mail.rfidprelam.com) Received: from dmd138.mail15220.pmta.cn (dmd138.mail15220.pmta.cn [58.220.15.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 476myd0SYMz49Kd for ; Tue, 5 Nov 2019 11:04:39 +0000 (UTC) (envelope-from return-to@mail.rfidprelam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.rfidprelam.com; s=dmddkim; t=1572951868; bh=sbNEMNwAjVvMzVD7K+l+3SvYUKNeQrMPqPmFktkAyPw=; h=Date:Message-Id:To:From:Subject:Content-Type; b=gcwVwdau5n7avijwAt2+GZJAmcCdJ0K9pq4qV+zez6Qi+vQNnNj6VDMSLjG/yHG31 Klv+LN7KWdAw6TABGUURgquw5gNxyB6xKFPEICZ97j/gCiHcTEEJ4+oT9Pd9gkP5O4 q5h+c0EoYRbx9Z/fuo9C6zPc0O0xtTxWGoTvo8F0= Date: Tue, 05 Nov 2019 19:04:28 +0800 MIME-Version: 1.0 Message-Id: To: freebsd-dtrace@freebsd.org From: "Dear Purchasing Manager" Reply-To: "Dear Purchasing Manager" Subject: RFID label, card, keyfob, wristband, reader etcfreebsd-dtrace@freebsd.orgfreebsd-dtrace@freebsd.orgfreebsd-dtrace@freebsd.org X-Mailer: DMD-MTA X-Hash: S7Y1.J9ra2Tyv8jWzNjYwPJ.jq2Rwf8M29zEzBy9orTMlIKi1JzEXL3k.Nz.mSm2IJHkxKIUAAA15 Feedback-ID: mail.rfidprelam.com:1:24:webpower List-Unsubscribe-Post: List-Unsubscribe=One-Click X-Rspamd-Queue-Id: 476myd0SYMz49Kd X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mail.rfidprelam.com header.s=dmddkim header.b=gcwVwdau; dmarc=pass (policy=none) header.from=mail.rfidprelam.com; spf=pass (mx1.freebsd.org: domain of return-to@mail.rfidprelam.com designates 58.220.15.138 as permitted sender) smtp.mailfrom=return-to@mail.rfidprelam.com X-Spamd-Result: default: False [-1.58 / 15.00]; HAS_REPLYTO(0.00)[rfidcard@mail.rfidprelam.com]; XM_UA_NO_VERSION(0.01)[]; R_SPF_ALLOW(-0.20)[+ip4:58.220.15.0/24]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[mail.rfidprelam.com:+]; DMARC_POLICY_ALLOW(-0.50)[mail.rfidprelam.com,none]; FORGED_SENDER(0.30)[rfidcard@mail.rfidprelam.com,return-to@mail.rfidprelam.com]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(0.00)[country: CN(0.02)]; ASN(0.00)[asn:137697, ipnet:58.220.15.0/24, country:CN]; FROM_NEQ_ENVFROM(0.00)[rfidcard@mail.rfidprelam.com,return-to@mail.rfidprelam.com]; MID_RHS_MATCH_FROM(0.00)[]; R_PARTS_DIFFER(0.86)[93.0%]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.90)[-0.896,0]; R_DKIM_ALLOW(-0.20)[mail.rfidprelam.com:s=dmddkim]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.90)[-0.901,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; MANY_INVISIBLE_PARTS(0.05)[1]; RCVD_IN_DNSWL_NONE(0.00)[138.15.220.58.list.dnswl.org : 127.0.15.0] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2019 11:04:47 -0000 RFID label, card, keyfob, wristband, reader etcfreebsd-dtrace@freebsd.orgfr= eebsd-dtrace@freebsd.orgfreebsd-dtrace@freebsd.org Hello freebsd-dtrace@freebsd.org, =E7=9C=8B=E4=B8=8A=E5=8E=BB=E4=BC=BC=E4=B9=8E=E6=82=A8=E7=9A=84e-mail=E8=BD= =AF=E4=BB=B6=E4=B8=8D=E6=94=AF=E6=8C=81HTML=E3=80=82 =E8=AF=B7=E8=AE=BF=E9=97=AE=E4=B8=8B=E9=9D=A2=E7=9A=84=E7=BD=91=E9=A1=B5=E4= =BD=BF=E6=82=A8=E8=83=BD=E5=A4=9F=E5=9C=A8=E7=BD=91=E9=A1=B5=E6=B5=8F=E8=A7= =88=E5=85=B6=E4=B8=AD=E9=98=85=E8=AF=BB=E8=BF=99=E6=9D=A1=E4=BF=A1=E6=81=AF= =EF=BC=9A http://mail.rfidprelam.com/x/?S7Y1.J9ra2Tyv8jWzNjYwPJ.jq2RAQAA50 From owner-freebsd-dtrace@freebsd.org Tue Nov 5 11:23:40 2019 Return-Path: Delivered-To: freebsd-dtrace@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 72C581A3335 for ; Tue, 5 Nov 2019 11:23:40 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 476nNV4rhxz4BCc for ; Tue, 5 Nov 2019 11:23:38 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id F21818D4A129 for ; Tue, 5 Nov 2019 11:23:30 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 821C2E707B8 for ; Tue, 5 Nov 2019 11:23:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id X95Yp8Pzykcu for ; Tue, 5 Nov 2019 11:23:29 +0000 (UTC) Received: from [192.168.2.110] (unknown [IPv6:fde9:577b:c1a9:31:1977:6dad:fb4e:d644]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 15E48E707AF for ; Tue, 5 Nov 2019 11:23:28 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-dtrace@freebsd.org Subject: dtrace script matching lot of probes simply resets on i386 Date: Tue, 05 Nov 2019 11:23:28 +0000 X-Mailer: MailMate (2.0BETAr6142) Message-ID: <71FB27F2-31DD-4646-BAA8-69E686D811DE@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 476nNV4rhxz4BCc X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-5.09 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; IP_SCORE(-2.79)[ip: (-8.67), ipnet: 195.201.0.0/16(-3.58), asn: 24940(-1.69), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2019 11:23:40 -0000 Hi, I had an i386 kernel (amd64 machine) simply going to POST. After a lot of “doh” I realised that it was a dtrace script which was matching a lot of probes running as part of some automated stuff. The problematic part from the middle of that script was a section which I can reduce to fbt:kernel::entry # or simply ::: /self->foo == 1/ { printf(“Hello\n”); } Anyone wants to investigate this or should I open a PR? /bz From owner-freebsd-dtrace@freebsd.org Tue Nov 5 20:20:23 2019 Return-Path: Delivered-To: freebsd-dtrace@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E8D371B3417 for ; Tue, 5 Nov 2019 20:20:23 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4771Hq16ysz404k for ; Tue, 5 Nov 2019 20:20:22 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lj1-f193.google.com with SMTP id k15so11269127lja.3 for ; Tue, 05 Nov 2019 12:20:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=01WSgAS/id5IeI+PzIZHXbItgaN/0gnIxMlNrS0SlOA=; b=m/zzNiz0++/RlLf0Ir8uaUotc6IfcHMotACepFvXDwjVvJqac8LMiW1jUQK4jX+3zI 2cpkYzhh0q7e2q9dAwkrrmhImecb8inUIohA9e0UGbwLIjtw7lTgyiSCVu3+uR06U0Tu wtnXlBr7UV4hKkpMEA8jSnLDBh0u5W5IFTdpEYOMTknErLXZqGJZw4ALdBK2m7LYciZ2 FrEebmdJtaM06qfi0DwizqpKe3CrwykXEcJPc6UFEc2AVdj7+mSA3TfuF8UGRDv8l3KZ j+oOA/xIOaYqjS9404ut78CNC0GDtTqJkhgZHOgfddzvH9TdnwvT/zRcEzRVxETLewzG hUFw== X-Gm-Message-State: APjAAAVRFAiq/P7Pwm+cZskpbRBpf7lbhu7V2q1xrvLnOEReentfovFd Bg42ad3FnDB4xHp2awxxo98XC14M/oA= X-Google-Smtp-Source: APXvYqy0ey/qLxvPw//Wm65HtpX231tLgo2L9cnPABLENUvXRESU36Op/vcZFRr0kmxJ3MNVKlMMYA== X-Received: by 2002:a2e:9dd5:: with SMTP id x21mr6550691ljj.232.1572985220804; Tue, 05 Nov 2019 12:20:20 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id v2sm1198537lfb.50.2019.11.05.12.20.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Nov 2019 12:20:19 -0800 (PST) Subject: Re: dtrace script matching lot of probes simply resets on i386 To: "Bjoern A. Zeeb" , freebsd-dtrace@freebsd.org References: <71FB27F2-31DD-4646-BAA8-69E686D811DE@lists.zabbadoz.net> From: Andriy Gapon Openpgp: preference=signencrypt Autocrypt: addr=avg@FreeBSD.org; prefer-encrypt=mutual; keydata= mQINBFm4LIgBEADNB/3lT7f15UKeQ52xCFQx/GqHkSxEdVyLFZTmY3KyNPQGBtyvVyBfprJ7 mAeXZWfhat6cKNRAGZcL5EmewdQuUfQfBdYmKjbw3a9GFDsDNuhDA2QwFt8BmkiVMRYyvI7l N0eVzszWCUgdc3qqM6qqcgBaqsVmJluwpvwp4ZBXmch5BgDDDb1MPO8AZ2QZfIQmplkj8Y6Z AiNMknkmgaekIINSJX8IzRzKD5WwMsin70psE8dpL/iBsA2cpJGzWMObVTtCxeDKlBCNqM1i gTXta1ukdUT7JgLEFZk9ceYQQMJJtUwzWu1UHfZn0Fs29HTqawfWPSZVbulbrnu5q55R4PlQ /xURkWQUTyDpqUvb4JK371zhepXiXDwrrpnyyZABm3SFLkk2bHlheeKU6Yql4pcmSVym1AS4 dV8y0oHAfdlSCF6tpOPf2+K9nW1CFA8b/tw4oJBTtfZ1kxXOMdyZU5fiG7xb1qDgpQKgHUX8 7Rd2T1UVLVeuhYlXNw2F+a2ucY+cMoqz3LtpksUiBppJhw099gEXehcN2JbUZ2TueJd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r7sbWbhPVCQFrH3r26mpmy841ym dwQnNcsbIGiBASBSKksOvIDYKa2Wy8htPmWFTEOPRpFXdGQ27awcjjnB42nngyCK5ukZDHi6 w0qK5DNQQCkiweevCIC6wc3p67jl1EMFY5+z+zdTPb3h7LeVnGqW0qBQl99vVFgzLxchKcl0 R/paSFgwqXCZhAKMuUHncJuynDOP7z5LirUeFI8qsBAJi1rXpQoLJTVcW72swZ42IdPiboqx NbTMiNOiE36GqMcTPfKylCbF45JNX4nF9ElM0E+Y8gi4cizJYBRr2FBJgay0b9Cp Message-ID: Date: Tue, 5 Nov 2019 22:20:18 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <71FB27F2-31DD-4646-BAA8-69E686D811DE@lists.zabbadoz.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4771Hq16ysz404k X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of agapon@gmail.com designates 209.85.208.193 as permitted sender) smtp.mailfrom=agapon@gmail.com X-Spamd-Result: default: False [-3.13 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[193.208.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.13)[ip: (-0.37), ipnet: 209.85.128.0/17(-3.20), asn: 15169(-2.02), country: US(-0.05)]; FORGED_SENDER(0.30)[avg@FreeBSD.org,agapon@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[193.208.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[avg@FreeBSD.org,agapon@gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[96.151.72.93.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2019 20:20:24 -0000 On 05/11/2019 13:23, Bjoern A. Zeeb wrote: > Hi, > > I had an i386 kernel (amd64 machine) simply going to POST.  After a lot of “doh” > I realised that it was a dtrace script which was matching a lot of probes > running as part of some automated stuff. > > The problematic part from the middle of that script was a section which I can > reduce to > > fbt:kernel::entry        # or simply ::: > /self->foo == 1/ > { > >    printf(“Hello\n”); > } > > Anyone wants to investigate this or should I open a PR? My first suspicion is that something in dtrace internals is not excluded and gets matched by the probe resulting in a recursion. But I am not sure how to approach finding that something. Looking through dtrace -l -P fbt for something that stands out is not going to be easy. -- Andriy Gapon From owner-freebsd-dtrace@freebsd.org Wed Nov 6 15:36:34 2019 Return-Path: Delivered-To: freebsd-dtrace@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 897D11B8E65 for ; Wed, 6 Nov 2019 15:36:34 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477Vxs45yGz4GfY for ; Wed, 6 Nov 2019 15:36:33 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x741.google.com with SMTP id h15so15237066qka.13 for ; Wed, 06 Nov 2019 07:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=dygdajoKchBIWd8iq+2s+/qhGOQtCNkQH7qRadXzvNQ=; b=iJiJH95KmZ0FCf2Zr29Yvgmyml1ai/tOpTq+gB/eNd4pO2yWVfGJgw98Ok8Vi7jgxz wpuYbJRCvGfPizurEA4cjvmPfwjAa0DCOCGjJWOLgpX2vTymk6fpItNh7ZcS39fwdPKi QYX+C2U54tgScYM+ZOqUvGcjUwZVAEw2YCCwFqxRmlPzmqGHQMsSWhCSUvl2kLubgcXN Uv+L8VqMLGt58MM1qvqciseLJyt/WE1g7/lbZD9gaPHu5edJLUV3wwZTaZ5BPjK+Rtu3 LsWREfJcBxGVXMACif0k/qJhZVVNn6HAkdvFhYHXNYZE/tuxd0F6sFKAIinnqcqXELqa pEcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=dygdajoKchBIWd8iq+2s+/qhGOQtCNkQH7qRadXzvNQ=; b=jAxpbjVRUApWudaln8oNRPzOP/qUMI13OFuKIdQjMY8oYaa3qhJeJF5bH3S51fvkkd qguc8tr6YH3TO6RX3KvMSq4UIChx5KEoxS89vN1MlTd3HJ8M/ICr1EJALygNwsHLc4Sg xXYnZa28C1stPv77WYUZMQoVsF/AZrXHmEGuuVMbvLIZ6VVAAX7rVP5++lOSqyaBTxP6 17eSpQRxm/gA2Z7lAE5u0nxIxdyg3f1YsJmb7g/EsSJDbexjN7sWanudiUQgjjz9nU9E RHHjZ1xcFR6moOCzj7t0Q7kb8V7/aU1GA9CwF+NTtm97JYKKyZAyfOHcG1AgjVefa/GM oSUg== X-Gm-Message-State: APjAAAX1Ub2cJabYB/SCq8zZkkLUTvn0iVWj5IKqXoHtRRPQiNiI6+EH anajyiqjzUHHeLdu6Mq4Gm43G0lTTN4= X-Google-Smtp-Source: APXvYqzGq6T4Dt/odDIM1hjllMbYXsGAvH2JSPCqGVc/KHr2YPHtanmrG7sB16San3JEYhCLItvBbw== X-Received: by 2002:a37:4f4e:: with SMTP id d75mr2628669qkb.490.1573054592120; Wed, 06 Nov 2019 07:36:32 -0800 (PST) Received: from raichu (toroon0560w-lp130-05-69-158-183-252.dsl.bell.ca. [69.158.183.252]) by smtp.gmail.com with ESMTPSA id z17sm3667137qtq.69.2019.11.06.07.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 07:36:31 -0800 (PST) Sender: Mark Johnston Date: Wed, 6 Nov 2019 10:36:29 -0500 From: Mark Johnston To: "Bjoern A. Zeeb" Cc: freebsd-dtrace@freebsd.org Subject: Re: dtrace script matching lot of probes simply resets on i386 Message-ID: <20191106153629.GC65703@raichu> References: <71FB27F2-31DD-4646-BAA8-69E686D811DE@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <71FB27F2-31DD-4646-BAA8-69E686D811DE@lists.zabbadoz.net> User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 477Vxs45yGz4GfY X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=iJiJH95K; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::741 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.09 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.39)[ip: (2.45), ipnet: 2607:f8b0::/32(-2.35), asn: 15169(-2.01), country: US(-0.05)]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2019 15:36:34 -0000 On Tue, Nov 05, 2019 at 11:23:28AM +0000, Bjoern A. Zeeb wrote: > Hi, > > I had an i386 kernel (amd64 machine) simply going to POST. After a lot > of “doh” I realised that it was a dtrace script which was matching a > lot of probes running as part of some automated stuff. > > The problematic part from the middle of that script was a section which > I can reduce to > > fbt:kernel::entry # or simply ::: > /self->foo == 1/ > { > > printf(“Hello\n”); > } > > Anyone wants to investigate this or should I open a PR? Can you test this patch? I only tried to compile it. Basically, we must handle FBT probes before calling trap(). diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s index b288543dafe1..8a8de5fb1d09 100644 --- a/sys/i386/i386/exception.s +++ b/sys/i386/i386/exception.s @@ -175,7 +175,7 @@ alltraps_with_regs_pushed: FAKE_MCOUNT(TF_EIP(%esp)) calltrap: pushl %esp - movl $trap,%eax + movl $trap_check,%eax call *%eax add $4, %esp @@ -317,7 +317,7 @@ dbg_user: movl $handle_ibrs_entry,%eax call *%eax pushl %esp - movl $trap,%eax + movl $trap_check,%eax call *%eax add $4, %esp movl $T_RESERVED, TF_TRAPNO(%esp) diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index bb71317de000..83ac97887feb 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -112,6 +112,7 @@ PMC_SOFT_DEFINE( , , page_fault, write); #endif void trap(struct trapframe *frame); +void trap_check(struct trapframe *frame); void syscall(struct trapframe *frame); static int trap_pfault(struct trapframe *, bool, vm_offset_t, int *, int *); @@ -186,6 +187,21 @@ SYSCTL_INT(_machdep, OID_AUTO, uprintf_signal, CTLFLAG_RW, &uprintf_signal, 0, "Print debugging information on trap signal to ctty"); +/* + * Ensure that we ignore any DTrace-induced faults. This function cannot + * be instrumented, so it cannot generate such faults itself. + */ +void +trap_check(struct trapframe *frame) +{ +#ifdef KDTRACE_HOOKS + if (dtrace_trap_func != NULL && + (*dtrace_trap_func)(frame, frame->tf_trapno)) + return; +#endif + trap(frame); +} + /* * Exception, fault, and trap interface to the FreeBSD kernel. * This common code is called from assembly language IDT gate entry @@ -260,19 +276,6 @@ trap(struct trapframe *frame) return; } -#ifdef KDTRACE_HOOKS - /* - * A trap can occur while DTrace executes a probe. Before - * executing the probe, DTrace blocks re-scheduling and sets - * a flag in its per-cpu flags to indicate that it doesn't - * want to fault. On returning from the probe, the no-fault - * flag is cleared and finally re-scheduling is enabled. - */ - if ((type == T_PROTFLT || type == T_PAGEFLT) && - dtrace_trap_func != NULL && (*dtrace_trap_func)(frame, type)) - return; -#endif - /* * We must not allow context switches until %cr2 is read. * Also, for some Cyrix CPUs, %cr2 is clobbered by interrupts.