Maxim Patlasov <mpatla...@virtuozzo.com> writes: > Dima, > > > Just in case, does this: > > > https://bugzilla.kernel.org/show_bug.cgi?id=124651 > > > affect us? No. His testcase does not work 3.10.0-327.18.2.vz7.14.21 I've tested this like this:
signature.asc
Description: PGP signature
#! /bin/bash
#Testcase for https://bugzilla.kernel.org/show_bug.cgi?id=124651 echo Install debug info yum install -y systemtap systemtap-runtime yum install --enablerepo=virtuozzo-updates-debuginfo \ --enablerepo=virtuozzo-os-debuginfo fedora-source -y \ vzkernel-devel-$(uname -r) vzkernel-debuginfo-$(uname -r) \ vzkernel-debuginfo-common-$(uname -m)-$(uname -r) || exit 1 # Fetch source curl https://bugzilla.kernel.org/attachment.cgi?id=224251 > /tmp/test.c || exit 1 # Original stap file not detect sb by default. So i've modified it. base64 -d >/tmp/fail_ext4.stp <<EOF Z2xvYmFsIGZhaWxfc2IgPSAweDA7Cmdsb2JhbCB0ZXN0PTA7Cgpwcm9iZSBtb2R1bGUoImV4dDQi KS5mdW5jdGlvbigiZXh0NF9maWxlX29wZW4iKQp7CiAgaWYgKGlub2RlX3BhdGgoJGlub2RlKSA9 PSAiL21udC90ZXN0MSIpCiAgICB7CiAgICAgIGZhaWxfc2IgPSAkaW5vZGUtPmlfc2I7CiAgICAg IHByaW50ZigiRW5hYmxlIGZhaWwgZm9yIHNiOiVseFxuIiwgZmFpbF9zYik7CiAgICB9Cn0KCnBy b2JlIG1vZHVsZSgiZXh0NCIpLmZ1bmN0aW9uKCJleHQ0X3dyaXRlcGFnZXMiKQp7CiAgCiAgaWYo ZmFpbF9zYiA9PSAkbWFwcGluZy0+aG9zdC0+aV9zYikKICAgIHsKICAgICAgdGVzdD0xCiAgICAg IHByaW50ZigiMjA3NSBleGVjYW5hbWUgPSVzICAgICAgICBwaWQ9KCVkKSBcbiIsZXhlY25hbWUo KSwgcGlkKCkpOwogICAgICBwcmludF9iYWNrdHJhY2UoKTsKICAgIH0KfQoKcHJvYmUgbW9kdWxl KCJleHQ0IikuZnVuY3Rpb24oImV4dDRfbWFwX2Jsb2NrcyIpLnJldHVybgp7CiAgaWYoZmFpbF9z YiA9PSAkaW5vZGUtPmlfc2IpCiAgICB7CiAgICAgIAogICAgICBpZigxID09dGVzdCkKCXsKCSAg JHJldHVybiA9IC01OwoJICBwcmludGYoIjIxOTMgZXhlY2FuYW1lID0lcyAgICAgICAgcGlkPSgl ZCkgXG4iLGV4ZWNuYW1lKCksIHBpZCgpKTsKCSAgcHJpbnRfYmFja3RyYWNlKCk7CgkgIHRlc3Qg PTAgOwoJfQogICAgfQp9Cgpwcm9iZSBrZXJuZWwuZnVuY3Rpb24oImNhbmNlbF9kaXJ0eV9wYWdl IikKewogIGlmKGZhaWxfc2IgPT0gJHBhZ2UtPm1hcHBpbmctPmhvc3QtPmlfc2IpCiAgICB7CiAg ICAgIHByaW50Zigic3RhcnQgcGFnZSA9MHgleCAgICAgcGFnZS0+ZmxhZz0leCBcbiIsJHBhZ2Us JHBhZ2UtPmZsYWdzKTsKICAgICAgcHJpbnRfYmFja3RyYWNlKCk7CiAgICB9Cn0K EOF make /tmp/test truncate -s 1G /tmp/img losetup /dev/loop0 /tmp/img || exit 1 mkfs.ext4 /dev/loop0 || exit 1 mount /dev/loop0 /mnt stap -v -g /tmp/fail_ext4.stp -c /tmp/test umount /mnt losetup -d /dev/loop0
_______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel