From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D0E13858C52; Wed, 20 Jul 2022 01:41:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D0E13858C52 From: "jeffliu.js.1999 at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/29388] New: Support using systemtap with overlayfs Date: Wed, 20 Jul 2022 01:41:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jeffliu.js.1999 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2022 01:41:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29388 Bug ID: 29388 Summary: Support using systemtap with overlayfs Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: jeffliu.js.1999 at gmail dot com Target Milestone: --- When using systemtap with overlay filesystem, we need to get real inode and pass it into uprobe_register function. Otherwise, there will be an inode er= ror. To fix the problem, we need to modify 4 places in runtime/linux/uprobes-ino= de.c file to let systemtap get the real inode value. The following is the way to support this feature. 733c733 --- inode =3D vm_file->f_path.dentry->d_inode; +++ inode =3D d_real_inode(vm_file->f_path.dentry); 915c915 --- p->inode =3D dentry->d_inode; +++ p->inode =3D d_real_inode(dentry); 928c928 --- offset, vm_flags, dentry->d_inode); +++ offset, vm_flags, d_real_inode(dentry)); 938c938 --- rc =3D stapiu_change_semaphore_plus(c, task, addr, dentry->d_inode); +++ rc =3D stapiu_change_semaphore_plus(c, task, addr, d_real_inode(dentr= y)); --=20 You are receiving this mail because: You are the assignee for the bug.=