Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 388858 Details for
Bug 497646
sys-fs/aufs3 patch fails for hardened-sources 3.11.7 kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
aufs3 PAX patch for upstream branch aufs3.14
pax-3.14.patch (text/plain), 1.91 KB, created by
Andrea Zuccherelli
on 2014-11-08 12:05:04 UTC
(
hide
)
Description:
aufs3 PAX patch for upstream branch aufs3.14
Filename:
MIME Type:
Creator:
Andrea Zuccherelli
Created:
2014-11-08 12:05:04 UTC
Size:
1.91 KB
patch
obsolete
>--- a/fs/aufs/dynop.c 2012-10-09 15:41:32.652989534 -0400 >+++ b/fs/aufs/dynop.c 2012-10-09 15:41:58.562989820 -0400 >@@ -149,9 +149,11 @@ > #define DySet(func, dst, src, h_op, h_sb) do { \ > DyDbgInc(cnt); \ > if (h_op->func) { \ >- if (src.func) \ >- dst.func = src.func; \ >- else \ >+ if (src.func) { \ >+ pax_open_kernel(); \ >+ *(void **)&dst.func = src.func; \ >+ pax_close_kernel(); \ >+ } else \ > AuDbg("%s %s\n", au_sbtype(h_sb), #func); \ > } \ > } while (0) >@@ -159,7 +161,9 @@ > #define DySetForce(func, dst, src) do { \ > AuDebugOn(!src.func); \ > DyDbgInc(cnt); \ >- dst.func = src.func; \ >+ pax_open_kernel(); \ >+ *(void **)&dst.func = src.func; \ >+ pax_close_kernel(); \ > } while (0) > > #define DySetAop(func) \ >@@ -266,15 +270,17 @@ > */ > static void dy_adx(struct au_dyaop *dyaop, int do_dx) > { >+ pax_open_kernel(); > if (!do_dx) { >- dyaop->da_op.direct_IO = NULL; >- dyaop->da_op.get_xip_mem = NULL; >+ *(void **)&dyaop->da_op.direct_IO = NULL; >+ *(void **)&dyaop->da_op.get_xip_mem = NULL; > } else { >- dyaop->da_op.direct_IO = aufs_aop.direct_IO; >- dyaop->da_op.get_xip_mem = aufs_aop.get_xip_mem; >+ *(void **)&dyaop->da_op.direct_IO = aufs_aop.direct_IO; >+ *(void **)&dyaop->da_op.get_xip_mem = aufs_aop.get_xip_mem; > if (!dyaop->da_get_xip_mem) >- dyaop->da_op.get_xip_mem = NULL; >+ *(void **)&dyaop->da_op.get_xip_mem = NULL; > } >+ pax_close_kernel(); > } > > static struct au_dyaop *dy_aget(struct au_branch *br, >--- a/fs/aufs/sysfs.c 2013-10-20 17:08:37.000000000 -0400 >+++ b/fs/aufs/sysfs.c 2013-10-19 17:08:29.000000000 -0400 >@@ -233,8 +233,10 @@ > for (i = 0; i < ARRAY_SIZE(br->br_sysfs); i++) { > attr = &br_sysfs->attr; > sysfs_attr_init(attr); >- attr->name = br_sysfs->name; >- attr->mode = S_IRUGO; >+ pax_open_kernel(); >+ *(void **)&attr->name = br_sysfs->name; >+ *(void **)&attr->mode = S_IRUGO; >+ pax_close_kernel(); > br_sysfs++; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 497646
:
367804
|
367808
|
373978
|
373980
|
381388
|
381556
|
388648
|
388850
|
388852
|
388854
|
388856
| 388858