hi,
here is the result of patching:
HOST:root: patch --dry-run -p1 < patch-4.1.35-vs2.3.8.5.2.diff |egrep -B 1 '(Hunk|Fuzz)'
checking file fs/attr.c
Hunk #1 succeeded at 15 with fuzz 1.
Hunk #2 succeeded at 93 with fuzz 1 (offset 13 lines).
Hunk #3 succeeded at 167 (offset 13 lines).
Hunk #4 succeeded at 219 (offset 13 lines).
-- checking file fs/dcache.c Hunk #8 succeeded at 1561 (offset 3 lines). Hunk #9 succeeded at 1602 (offset 3 lines). Hunk #10 succeeded at 2336 (offset 3 lines). Hunk #11 succeeded at 3354 (offset 3 lines). -- checking file fs/ext4/ext4.h Hunk #1 succeeded at 378 (offset 1 line). Hunk #2 succeeded at 677 (offset 1 line). Hunk #3 succeeded at 797 (offset 1 line). Hunk #4 succeeded at 1037 (offset 2 lines). Hunk #5 succeeded at 2319 (offset 2 lines). -- checking file fs/ext4/super.c Hunk #1 succeeded at 1147 with fuzz 1 (offset 1 line). Hunk #2 succeeded at 1234 (offset 2 lines). Hunk #3 succeeded at 1480 (offset 3 lines). Hunk #4 succeeded at 3704 (offset 8 lines). Hunk #5 succeeded at 5037 (offset 20 lines). -- checking file fs/mount.h Hunk #1 succeeded at 67 (offset 2 lines). -- checking file fs/namespace.c Hunk #2 succeeded at 962 (offset 30 lines). Hunk #3 succeeded at 1041 (offset 30 lines). Hunk #4 succeeded at 1616 (offset 35 lines). Hunk #5 succeeded at 2110 (offset 69 lines). Hunk #6 succeeded at 2139 (offset 69 lines). Hunk #7 succeeded at 2226 (offset 69 lines). Hunk #8 succeeded at 2734 (offset 69 lines). Hunk #9 succeeded at 2760 (offset 69 lines). Hunk #10 succeeded at 2790 (offset 69 lines). Hunk #11 succeeded at 2920 (offset 72 lines). Hunk #12 succeeded at 3096 (offset 73 lines). Hunk #13 succeeded at 3237 (offset 73 lines). -- checking file include/linux/netdevice.h Hunk #1 succeeded at 2223 (offset 22 lines). -- checking file include/linux/sched.h Hunk #1 succeeded at 1504 (offset 1 line). Hunk #2 succeeded at 1818 (offset 1 line). Hunk #3 succeeded at 1836 (offset 1 line). Hunk #4 succeeded at 1850 (offset 1 line). -- checking file kernel/ptrace.c Hunk #1 succeeded at 24 (offset 1 line). Hunk #2 succeeded at 312 (offset 30 lines). -- checking file kernel/sysctl.c Hunk #1 succeeded at 86 (offset 1 line). Hunk #2 succeeded at 279 (offset 1 line). Hunk #3 succeeded at 1351 (offset 1 line). -- checking file net/sunrpc/clnt.c Hunk #2 succeeded at 478 (offset 5 lines). then apply delta mem fix 09 and 10 then HOST:root@aqueos100:[/vservers/kernel/linux-4.1.39]: diff -Naur kernel/vserver/inode.c.orig kernel/vserver/inode.c --- kernel/vserver/inode.c.orig 2017-04-04 10:51:46.478860945 +0200 +++ kernel/vserver/inode.c 2017-04-04 10:53:41.799085647 +0200 @@ -225,7 +225,8 @@ if (in->i_op && in->i_op->setattr) error = in->i_op->setattr(de, &attr); else { - error = inode_change_ok(in, &attr); + //error = inode_change_ok(in, &attr); + error = setattr_prepare(de, &attr); if (!error) { setattr_copy(in, &attr); mark_inode_dirty(in); from http://irc.13thfloor.at/LOG/2017-01/LOG_2017-01-04.txt and https://github.com/torvalds/linux/commit/31051c8 Kernel boot and here are the tests: ------------------------------------------------------------------ HOST:root@58386hd51145:[~]: bash testme.sh Linux-VServer Test [V0.17] Copyright (C) 2003-2006 H.Poetzl chcontext is working. chbind is working. Linux 4.1.39-vs2.3.8.5.2aq #1 SMP Tue Apr 4 12:08:47 CEST 2017 x86_64 Ea 0.30.216 236/glibc (DSa) <compat,v11,fscompat,v13,net,v21,v22,v23,netv2> VCI: 0002:0308 236 13113f11 (TbsPWD) --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. -------------------------------------------------------- [~]: ./testfs.sh -v -D /dev/md/jessieguest2 -M /mnt/ -x -y -z -F ext4 Linux-VServer FS Test [V0.23] Copyright (C) 2005-2009 H.Poetzl Linux 4.1.39-vs2.3.8.5.2aq x86_64/0.30.216 VCI: 0002:0308 236 13113f11 (ID24) --- testing ext4 filesystem ... mke2fs 1.42.12 (29-Aug-2014) [000]# succeeded. [001]# succeeded. mount: /mnt not mounted or bad option In some cases useful info is found in syslog - try dmesg | tail or so. [002]# succeeded. tag related tests ... [011]# succeeded. [012]# succeeded. [014]# succeeded. cat: /mnt//file_2: Permission denied cat: /mnt//file_3: Permission denied [015]# succeeded. [019]# succeeded. [020]# succeeded. [021]# succeeded. [022]# succeeded. [023]# succeeded. [024]# succeeded. cat: /mnt//file_2: Permission denied cat: /mnt//file_3: Permission denied [025]# succeeded. [026]# succeeded. tee: /mnt//file_2: Permission denied tee: /mnt//file_3: Permission denied [027]# succeeded. [028]# succeeded. [033]# succeeded. [034]# succeeded. cat: /mnt//file_1: Permission denied [035]# succeeded. tee: /mnt//file_1: Permission denied tee: /mnt//file_2: Permission denied [037]# succeeded. [045]# succeeded. [047]# succeeded. xattr related tests ... [101]# succeeded. [103]# succeeded. [104]# succeeded. [106]# succeeded. [107]# succeeded. [109]# succeeded. [112]# succeeded. [113]# succeeded. [114]# succeeded. chattr: Permission denied while reading flags on /mnt//dir_10703 [115]# succeeded. chmod: changing permissions of ‘/mnt//dir_10703’: Permission denied [116]# succeeded. [118]# succeeded. [119]# succeeded. [122]# succeeded. [123]# succeeded. [124]# succeeded. [125]# succeeded. [127]# succeeded. [128]# succeeded. [129]# succeeded. [131]# succeeded. [132]# succeeded. [133]# succeeded. [134]# succeeded. [135]# succeeded. [138]# succeeded. [139]# succeeded. [148]# succeeded. [149]# succeeded. disk limit related tests ... [201]# succeeded. 16+0 records in 16+0 records out 16384 bytes (16 kB) copied, 0.000102219 s, 160 MB/s [202]# succeeded. ./testfs.sh: line 313: [: -: integer expression expected verify 300: - ~ 16 [203]# failed. [204]# succeeded. ./testfs.sh: line 313: [: -: integer expression expected verify 300: - ~ 0 [205]# failed. dd: error writing ‘/mnt//space-300’: No space left on device 33+0 records in 32+0 records out 32768 bytes (33 kB) copied, 0.295654 s, 111 kB/s [206]# succeeded. touch: cannot touch ‘/mnt//inodes-300-5’: No space left on device [207]# succeeded. ./testfs.sh: line 313: [: -: integer expression expected verify 300: - ~ 16 [208]# failed. [211]# succeeded. 5+0 records in 5+0 records out 5120 bytes (5.1 kB) copied, 8.856e-05 s, 57.8 MB/s [212]# succeeded. ./testfs.sh: line 313: [: -: integer expression expected verify 300: - ~ 80 [213]# failed. 43+0 records in 43+0 records out 44032 bytes (44 kB) copied, 0.000138946 s, 317 MB/s touch: cannot touch ‘/mnt//cow-300-1’: No space left on device [222]# succeeded. ./testfs.sh: line 313: [: -: integer expression expected verify 300: - ~ 8 [223]# failed. ./testfs.sh: line 313: [: -: integer expression expected verify 300: - ~ -80 [231]# failed. 3+0 records in 3+0 records out 3072 bytes (3.1 kB) copied, 8.1806e-05 s, 37.6 MB/s touch: cannot touch ‘/mnt//cow-300-9’: No space left on device [232]# succeeded. ./testfs.sh: line 313: [: -: integer expression expected verify 300: - ~ -40 [233]# failed. [239]# succeeded. [999]# succeeded. ------------------------------------------ regards, Ghislain.Received on Tue Apr 4 18:57:26 2017