Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
features/utime: Don't access frame after stack-wind
Problem: frame is accessed after stack-wind. This can lead to crash if the cbk frees the frame. Fix: Use new frame for the wind instead. Updates: #832 Change-Id: I64754609f1114b0bbd4d1336fa81a56f2cca6e03 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
- Loading branch information
1 parent
4d6f1be
commit 09d03c7
Showing
2 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
. $(dirname $0)/../../include.rc | ||
. $(dirname $0)/../../volume.rc | ||
. $(dirname $0)/../../traps.rc | ||
|
||
#Trigger trusted.glusterfs.mdata setting codepath and see things work as expected | ||
cleanup | ||
|
||
TEST_USER=test-ctime-user | ||
TEST_UID=27341 | ||
|
||
TEST useradd -o -M -u ${TEST_UID} ${TEST_USER} | ||
push_trapfunc "userdel --force ${TEST_USER}" | ||
|
||
TEST glusterd | ||
TEST pidof glusterd | ||
|
||
TEST $CLI volume create $V0 $H0:$B0/$V0 | ||
TEST $CLI volume start $V0 | ||
|
||
$GFS --volfile-id=/$V0 --volfile-server=$H0 $M0; | ||
echo abc > $M0/test | ||
TEST chmod 755 $M0/ | ||
TEST chmod 744 $M0/test | ||
TEST setfattr -x trusted.glusterfs.mdata $B0/$V0/test | ||
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0 | ||
$GFS --volfile-id=/$V0 --volfile-server=$H0 $M0; | ||
su ${TEST_USER} -c "cat $M0/test" | ||
TEST getfattr -n trusted.glusterfs.mdata $B0/$V0/test | ||
|
||
cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters