Kyle Bader | 2 Sep 01:25 2009
Picon

Compile fails with aufs2-standalone fails on 2.6.29-rc6 when combined with grsecurity

Compile fails with aufs2-standalone fails on 2.6.29-rc6 when combined
with grsecurity. Patrick Lane told me to contact you about this (we both
work on kernels at our shop).

Sources (patches applied in order of appearance):

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2
http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.29.6.bz2
aufs2-standalone.patch sha1: 8feb9ed859c239cda93863c8a965b3a13c563f71
http://grsecurity.net/test/grsecurity-2.1.14-2.6.29.6-200908252018.patch

Config:

http://blackprecipice.com/kconfig

Error while compiling (make -j4 bzImage):

fs/aufs/vfsub.c: In function ‘vfsub_lookup_hash’:
fs/aufs/vfsub.c:105: error: implicit declaration of function
‘lookup_hash’
fs/aufs/vfsub.c:105: warning: assignment makes pointer from integer
without a cast
fs/aufs/vfsub.c: In function ‘vfsub_splice_to’:
fs/aufs/vfsub.c:474: error: implicit declaration of function
‘do_splice_to’
fs/aufs/vfsub.c: In function ‘vfsub_splice_from’:
fs/aufs/vfsub.c:487: error: implicit declaration of function
‘do_splice_from’
make[2]: *** [fs/aufs/vfsub.o] Error 1
make[1]: *** [fs/aufs] Error 2
(Continue reading)

sfjro | 2 Sep 04:56 2009
Picon
Picon

Re: Compile fails with aufs2-standalone fails on 2.6.29-rc6 when combined with grsecurity


Hello Kyle,

Kyle Bader:
> Compile fails with aufs2-standalone fails on 2.6.29-rc6 when combined
> with grsecurity. Patrick Lane told me to contact you about this (we both
> work on kernels at our shop).

Did he tell you that you should read the aufs README file?

> Sources (patches applied in order of appearance):
> 
> http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2
> http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.29.6.bz2
> aufs2-standalone.patch sha1: 8feb9ed859c239cda93863c8a965b3a13c563f71
> http://grsecurity.net/test/grsecurity-2.1.14-2.6.29.6-200908252018.patch

Which version of aufs are you using? In other words, when and how did
you get it?
You might just forget to apply aufs2-base.patch.

J. R. Okajima

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

(Continue reading)

Ed W | 2 Sep 19:43 2009

Re: Compile fails with aufs2-standalone fails on 2.6.29-rc6 when combined with grsecurity

Kyle Bader wrote:
> Compile fails with aufs2-standalone fails on 2.6.29-rc6 when combined
> with grsecurity. 

I can confirm that 2.6.29.5 ish and 2.6.30.latest both work fine with 
grsec (latest) and aufs2.  The former I also have compiled on amd64 and 
32bit.

Note, the very latest grsec patch is not for the latest kernel (or 
wasn't 5 days ago), but it's easy enough to massage forward and fix the 
conflicts.

I think you likely don't want an rc6 kernel when there are much newer 
releases to be had...

Good luck

Ed W

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

Rexter Devaras | 3 Sep 07:47 2009
Picon

NFS-Export

Thank you for creating aufs!

I got pxe/web boot running on puppylinux with aufs as the root filesystem on
my local network,
i have 2 branches on my aufs a writable one on top (/aufs/rw) and the read
only branch (/aufs/ro) as required.
I am using NFS so i can get the real root which is a squashfs  file on the
puppy server. Kernel is compiled
with NFS-export enabled. My question is NFS-share  created can only be
mounted if its on the writable branch (/aufs/rw/nfs-share)
and not on the read only branch . Am i missing something so i can mount
NFS-share whether its in the writable and read only branch?
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
sfjro | 3 Sep 08:00 2009
Picon
Picon

Re: NFS-Export


Hello Rexter,

Rexter Devaras:
> with NFS-export enabled. My question is NFS-share  created can only be
> mounted if its on the writable branch (/aufs/rw/nfs-share)
> and not on the read only branch . Am i missing something so i can mount
> NFS-share whether its in the writable and read only branch?

You can use NFS as an aufs readonly branch.
How did you configure and build aufs?
And please provide these infromation.

(from the aufs README)
When you have any problems or strange behaviour in aufs, please let me
know with:
- /proc/mounts (instead of the output of mount(8))
- /sys/module/aufs/*
- /sys/fs/aufs/* (if you have them)
- /debug/aufs/* (if you have them)
- linux kernel version
  if your kernel is not plain, for example modified by distributor,
  the url where i can download its source is necessary too.
- aufs version which was printed at loading the module or booting the
  system, instead of the date you downloaded.
- configuration (define/undefine CONFIG_AUFS_xxx)
- kernel configuration or /proc/config.gz (if you have it)
- behaviour which you think to be incorrect
- actual operation, reproducible one is better

(Continue reading)

Rexter Devaras | 3 Sep 11:43 2009
Picon

Re: NFS-Export

Hello J. R. Okajima,

I really appreciate your fast response to my query.

Being new to aufs, the following are the info i have running aufs as root
filesystem:

Kernel:
Linux puppypc 2.6.28.9 #1 SMP Thu Aug 27 20:39:59 GMT-8 2009 i686 GNU/Linux

lsmod:

aufs                 135036  1
quashfs               44036  1
sqlzma                 4100  1 squashfs
unlzma                 5376  1 sqlzma

dot config from the source kernel:

CONFIG_AUFS_FS=m
CONFIG_AUFS_BRANCH_MAX_127=y
CONFIG_AUFS_HINOTIFY=y
CONFIG_AUFS_EXPORT=y
CONFIG_AUFS_BDEV_LOOP=y

CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
(Continue reading)

Rexter Devaras | 3 Sep 14:55 2009
Picon

Re: NFS-Export

Hello J. R. Okajima,

I really appreciate your fast response to my query.

Being new to aufs, the following are the info i have running aufs as root
filesystem:

Kernel:
Linux puppypc 2.6.28.9 #1 SMP Thu Aug 27 20:39:59 GMT-8 2009 i686 GNU/Linux

lsmod:

aufs                 135036  1
quashfs               44036  1
sqlzma                 4100  1 squashfs
unlzma                 5376  1 sqlzma

dot config from the source kernel:

CONFIG_AUFS_FS=m
CONFIG_AUFS_BRANCH_MAX_127=y
CONFIG_AUFS_HINOTIFY=y
CONFIG_AUFS_EXPORT=y
CONFIG_AUFS_BDEV_LOOP=y

CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
(Continue reading)

sfjro | 3 Sep 15:29 2009
Picon
Picon

Re: NFS-Export


Rexter Devaras:
> Lines from my init script (initrd.gz) at first stage booting:
> 
> mount -t tmpfs -o size=75% tmpfs /tmpfs/aufs/rw
> udhcpc -i eth0
> mount -t nfs 192.168.5.100:/fatdog /nfs -o nolock,ro
> mount -t squashfs /nfs/pup_112.sfs /tmpfs/aufs/ro -o loop
> 
> mount -t aufs -o br:/tmpfs/aufs/rw=rw:/tmpfs/aufs/ro=ro aufs /tmpfs/rootfs
> 
> mkdir -p /tmpfs/rootfs/aufs /tmpfs/rootfs/aufs/ro /tmpfs/rootfs/aufs/rw
> mount -o move /tmpfs/aufs/rw /tmpfs/rootfs/aufs/rw
> mount -o move /tmpfs/aufs/ro /tmpfs/rootfs/aufs/ro
> exec switch_root /tmpfs/rootfs /sbin/init

I don't understand your problem.
Do you mean 
	mount -t aufs -o br:/tmpfs/aufs/rw=rw:/tmpfs/aufs/ro=ro aufs /tmpfs/rootfs
returned an error?
Will you describe it in easy English?

J. R. Okajima

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

(Continue reading)

Rexter Devaras | 3 Sep 16:46 2009
Picon

Re: NFS-Export

> I don't understand your problem.
> Do you mean
>         mount -t aufs -o br:/tmpfs/aufs/rw=rw:/tmpfs/aufs/ro=ro aufs
> /tmpfs/rootfs
> returned an error?/
> Will you describe it in easy English?
>
>
> J. R. Okajima
>

No errors on aufs line i included my init script just to show how i made my
aufs root filesystem,
my question was about nfs-export that i cannot mount exported directories if
its being created on the root (/fatdog) filesystem. The only way mounting
works if my exported directories is inside /aufs/rw/fatdog which is my
writable branch.

/aufs/rw = my writable branch
/aufs/ro = my read only branch

In my aufs root filesystem (/ readonly) if i export say /fatdog directory
nfs client will not be able to mount it
whereas if i export it using /aufs/rw/fatdog (writable) nfs client can mount
them.

Any examples how to use nfs-export if my root filesystem is using aufs?
------------------------------------------------------------------------------
(Continue reading)

sfjro | 3 Sep 16:55 2009
Picon
Picon

Re: NFS-Export


Rexter Devaras:
> my question was about nfs-export that i cannot mount exported directories if
> its being created on the root (/fatdog) filesystem. The only way mounting
> works if my exported directories is inside /aufs/rw/fatdog which is my
> writable branch.

Ok.
What will happen if you enable CONFIG_EXPORTFS?
It seemed to be disabled in your previous mail.

Also have you read the aufs manual which describes some notes about
nfs-exporting?
Your readonly branch (loopback squashfs) has to support nfs-export too.

And these information are still necessary.
- /proc/mounts (instead of the output of mount(8))
- /sys/module/aufs/*
- /sys/fs/aufs/* (if you have them)
- /debug/aufs/* (if you have them)
- aufs version which was printed at loading the module or booting the
  system, instead of the date you downloaded.

J. R. Okajima

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
(Continue reading)


Gmane