problems with xattrs/selinux

Post here if you found a bug or something really not expected in the program
Post Reply
mbiebl
Posts: 12
Joined: Sat Nov 28, 2009 8:02 pm

problems with xattrs/selinux

Post by mbiebl » Sun Jan 24, 2010 2:16 pm

Hi,

I'm using 0.6.5 on a 32bit Debian Sid, with kernel 2.6.32.5

I tried to backup a Fedora12 system, which is installed on a ext4 partition and selinux is enabled.
I get the following errors during backup:

[errno=12, Cannot allocate memory]: create.c#284,createar_item_xattr(): xattr:lgetxattr(/home/michael/.mozilla/firefox/jwk2hqq6.default/prefs.js,security.selinux)=-1
[errno=12, Cannot allocate memory]: create.c#284,createar_item_xattr(): xattr:lgetxattr(/usr/lib/locale/locale-archive.tmpl,security.selinux)=-1
[errno=12, Cannot allocate memory]: create.c#284,createar_item_xattr(): xattr:lgetxattr(/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/about.jnlp,security.selinux)=-1
Statistics for filesystem 0
* files successfully processed:....regfiles=117303, directories=14298, symlinks=12942, hardlinks=4261, specials=16
* files with errors:...............regfiles=3, directories=0, symlinks=0, hardlinks=0, specials=0

Btw, how do I have to interpret this message: Is the backup successful and could it be restored again (but with the 3 files above missing)?


At the same time, I get the following kernel error messages:
Jan 24 14:40:16 pluto kernel: [ 5617.682174] fsarchiver: page allocation failure. order:4, mode:0xd0
Jan 24 14:40:16 pluto kernel: [ 5617.682183] Pid: 22404, comm: fsarchiver Not tainted 2.6.33-rc5 #2
Jan 24 14:40:16 pluto kernel: [ 5617.682186] Call Trace:
Jan 24 14:40:16 pluto kernel: [ 5617.682203] [<c1085f8f>] ? __alloc_pages_nodemask+0x443/0x4b0
Jan 24 14:40:16 pluto kernel: [ 5617.682212] [<c10a2327>] ? cache_alloc_refill+0x246/0x406
Jan 24 14:40:16 pluto kernel: [ 5617.682217] [<c10a2644>] ? __kmalloc+0x8c/0xd5
Jan 24 14:40:16 pluto kernel: [ 5617.682222] [<c10b9773>] ? getxattr+0x6f/0xe2
Jan 24 14:40:16 pluto kernel: [ 5617.682226] [<c10b9773>] ? getxattr+0x6f/0xe2
Jan 24 14:40:16 pluto kernel: [ 5617.682233] [<c10b33cd>] ? dput+0x22/0x104
Jan 24 14:40:16 pluto kernel: [ 5617.682240] [<c10ac22a>] ? path_to_nameidata+0xe/0x26
Jan 24 14:40:16 pluto kernel: [ 5617.682245] [<c10accd2>] ? link_path_walk+0x449/0x50b
Jan 24 14:40:16 pluto kernel: [ 5617.682249] [<c10aeec4>] ? user_path_at+0x40/0x5f
Jan 24 14:40:16 pluto kernel: [ 5617.682254] [<c10b6c70>] ? mntput_no_expire+0x17/0xb6
Jan 24 14:40:16 pluto kernel: [ 5617.682258] [<c10aeec4>] ? user_path_at+0x40/0x5f
Jan 24 14:40:16 pluto kernel: [ 5617.682264] [<c110a00d>] ? ext4_listxattr+0x17e/0x1a7
Jan 24 14:40:16 pluto kernel: [ 5617.682268] [<c1109ff0>] ? ext4_listxattr+0x161/0x1a7
Jan 24 14:40:16 pluto kernel: [ 5617.682277] [<c113ade0>] ? _atomic_dec_and_lock+0x40/0x5c
Jan 24 14:40:16 pluto kernel: [ 5617.682282] [<c10b981a>] ? sys_lgetxattr+0x34/0x45
Jan 24 14:40:16 pluto kernel: [ 5617.682287] [<c1002753>] ? sysenter_do_call+0x12/0x22
Jan 24 14:40:16 pluto kernel: [ 5617.682294] [<c125007b>] ? serial_pnp_probe+0x7c/0x1c5
Jan 24 14:40:16 pluto kernel: [ 5617.682297] Mem-Info:
Jan 24 14:40:16 pluto kernel: [ 5617.682299] DMA per-cpu:
Jan 24 14:40:16 pluto kernel: [ 5617.682302] CPU 0: hi: 0, btch: 1 usd: 0
Jan 24 14:40:16 pluto kernel: [ 5617.682305] Normal per-cpu:
Jan 24 14:40:16 pluto kernel: [ 5617.682307] CPU 0: hi: 186, btch: 31 usd: 0
Jan 24 14:40:16 pluto kernel: [ 5617.682314] active_anon:22284 inactive_anon:32220 isolated_anon:12
Jan 24 14:40:16 pluto kernel: [ 5617.682316] active_file:40188 inactive_file:60761 isolated_file:24
Jan 24 14:40:16 pluto kernel: [ 5617.682318] unevictable:0 dirty:8339 writeback:416 unstable:0
Jan 24 14:40:16 pluto kernel: [ 5617.682319] free:4299 slab_reclaimable:22647 slab_unreclaimable:2677
Jan 24 14:40:16 pluto kernel: [ 5617.682321] mapped:12072 shmem:751 pagetables:816 bounce:0
Jan 24 14:40:16 pluto kernel: [ 5617.682332] DMA free:3048kB min:68kB low:84kB high:100kB active_anon:176kB inactive_anon:1564kB active_file:3444kB inactive_file:6576kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15868kB mlocked:0kB dirty:104kB writeback:0kB mapped:568kB shmem:0kB slab_reclaimable:944kB slab_unreclaimable:104kB kernel_stack:24kB pagetables:20kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Jan 24 14:40:16 pluto kernel: [ 5617.682340] lowmem_reserve[]: 0 745 745 745
Jan 24 14:40:16 pluto kernel: [ 5617.682352] Normal free:14148kB min:3460kB low:4324kB high:5188kB active_anon:88960kB inactive_anon:127316kB active_file:157308kB inactive_file:236468kB unevictable:0kB isolated(anon):48kB isolated(file):96kB present:763840kB mlocked:0kB dirty:33252kB writeback:1664kB mapped:47720kB shmem:3004kB slab_reclaimable:89644kB slab_unreclaimable:10604kB kernel_stack:1912kB pagetables:3244kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Jan 24 14:40:16 pluto kernel: [ 5617.682361] lowmem_reserve[]: 0 0 0 0
Jan 24 14:40:16 pluto kernel: [ 5617.682365] DMA: 124*4kB 223*8kB 46*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 3048kB
Jan 24 14:40:16 pluto kernel: [ 5617.682377] Normal: 1709*4kB 528*8kB 135*16kB 21*32kB 4*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 14148kB
Jan 24 14:40:16 pluto kernel: [ 5617.682389] 110993 total pagecache pages
Jan 24 14:40:16 pluto kernel: [ 5617.682392] 9280 pages in swap cache
Jan 24 14:40:16 pluto kernel: [ 5617.682395] Swap cache stats: add 118908, delete 109628, find 39372/50412
Jan 24 14:40:16 pluto kernel: [ 5617.682398] Free swap = 895944kB
Jan 24 14:40:16 pluto kernel: [ 5617.682400] Total swap = 995988kB
Jan 24 14:40:16 pluto kernel: [ 5617.689575] 196560 pages RAM
Jan 24 14:40:16 pluto kernel: [ 5617.689579] 0 pages HighMem
Jan 24 14:40:16 pluto kernel: [ 5617.689581] 3012 pages reserved
Jan 24 14:40:16 pluto kernel: [ 5617.689583] 84659 pages shared
Jan 24 14:40:16 pluto kernel: [ 5617.689585] 133845 pages non-shared
Jan 24 14:55:28 pluto kernel: [ 6528.885836] fsarchiver: page allocation failure. order:4, mode:0xd0
Jan 24 14:55:28 pluto kernel: [ 6528.885844] Pid: 22404, comm: fsarchiver Not tainted 2.6.33-rc5 #2
Jan 24 14:55:28 pluto kernel: [ 6528.885847] Call Trace:
Jan 24 14:55:28 pluto kernel: [ 6528.885864] [<c1085f8f>] ? __alloc_pages_nodemask+0x443/0x4b0
Jan 24 14:55:28 pluto kernel: [ 6528.885874] [<c10a2327>] ? cache_alloc_refill+0x246/0x406
Jan 24 14:55:28 pluto kernel: [ 6528.885879] [<c10a2644>] ? __kmalloc+0x8c/0xd5
Jan 24 14:55:28 pluto kernel: [ 6528.885884] [<c10b9773>] ? getxattr+0x6f/0xe2
Jan 24 14:55:28 pluto kernel: [ 6528.885889] [<c10b9773>] ? getxattr+0x6f/0xe2
Jan 24 14:55:28 pluto kernel: [ 6528.885895] [<c10b33cd>] ? dput+0x22/0x104
Jan 24 14:55:28 pluto kernel: [ 6528.885902] [<c10ac22a>] ? path_to_nameidata+0xe/0x26
Jan 24 14:55:28 pluto kernel: [ 6528.885907] [<c10accd2>] ? link_path_walk+0x449/0x50b
Jan 24 14:55:28 pluto kernel: [ 6528.885911] [<c10aeec4>] ? user_path_at+0x40/0x5f
Jan 24 14:55:28 pluto kernel: [ 6528.885916] [<c10b6c70>] ? mntput_no_expire+0x17/0xb6
Jan 24 14:55:28 pluto kernel: [ 6528.885920] [<c10aeec4>] ? user_path_at+0x40/0x5f
Jan 24 14:55:28 pluto kernel: [ 6528.885926] [<c110a00d>] ? ext4_listxattr+0x17e/0x1a7
Jan 24 14:55:28 pluto kernel: [ 6528.885931] [<c1109ff0>] ? ext4_listxattr+0x161/0x1a7
Jan 24 14:55:28 pluto kernel: [ 6528.885940] [<c113ade0>] ? _atomic_dec_and_lock+0x40/0x5c
Jan 24 14:55:28 pluto kernel: [ 6528.885945] [<c10b981a>] ? sys_lgetxattr+0x34/0x45
Jan 24 14:55:28 pluto kernel: [ 6528.885950] [<c1002753>] ? sysenter_do_call+0x12/0x22
Jan 24 14:55:28 pluto kernel: [ 6528.885957] [<c1250000>] ? serial_pnp_probe+0x1/0x1c5
Jan 24 14:55:28 pluto kernel: [ 6528.885960] Mem-Info:
Jan 24 14:55:28 pluto kernel: [ 6528.885962] DMA per-cpu:
Jan 24 14:55:28 pluto kernel: [ 6528.885965] CPU 0: hi: 0, btch: 1 usd: 0
Jan 24 14:55:28 pluto kernel: [ 6528.885968] Normal per-cpu:
Jan 24 14:55:28 pluto kernel: [ 6528.885970] CPU 0: hi: 186, btch: 31 usd: 0
Jan 24 14:55:28 pluto kernel: [ 6528.885977] active_anon:32834 inactive_anon:36608 isolated_anon:21
Jan 24 14:55:28 pluto kernel: [ 6528.885979] active_file:50913 inactive_file:53192 isolated_file:33
Jan 24 14:55:28 pluto kernel: [ 6528.885981] unevictable:4 dirty:8978 writeback:630 unstable:0
Jan 24 14:55:28 pluto kernel: [ 6528.885982] free:4138 slab_reclaimable:4375 slab_unreclaimable:2796
Jan 24 14:55:28 pluto kernel: [ 6528.885984] mapped:15255 shmem:967 pagetables:948 bounce:0
Jan 24 14:55:28 pluto kernel: [ 6528.885995] DMA free:3048kB min:68kB low:84kB high:100kB active_anon:108kB inactive_anon:1056kB active_file:4260kB inactive_file:7172kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15868kB mlocked:0kB dirty:28kB writeback:0kB mapped:592kB shmem:0kB slab_reclaimable:128kB slab_unreclaimable:88kB kernel_stack:24kB pagetables:16kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Jan 24 14:55:28 pluto kernel: [ 6528.886003] lowmem_reserve[]: 0 745 745 745
Jan 24 14:55:28 pluto kernel: [ 6528.886015] Normal free:13504kB min:3460kB low:4324kB high:5188kB active_anon:131228kB inactive_anon:145376kB active_file:199392kB inactive_file:205596kB unevictable:16kB isolated(anon):84kB isolated(file):132kB present:763840kB mlocked:16kB dirty:35884kB writeback:2520kB mapped:60428kB shmem:3868kB slab_reclaimable:17372kB slab_unreclaimable:11096kB kernel_stack:2088kB pagetables:3776kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Jan 24 14:55:28 pluto kernel: [ 6528.886024] lowmem_reserve[]: 0 0 0 0
Jan 24 14:55:28 pluto kernel: [ 6528.886029] DMA: 252*4kB 255*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 3048kB
Jan 24 14:55:28 pluto kernel: [ 6528.886041] Normal: 1406*4kB 589*8kB 152*16kB 19*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 13504kB
Jan 24 14:55:28 pluto kernel: [ 6528.886053] 115589 total pagecache pages
Jan 24 14:55:28 pluto kernel: [ 6528.886055] 10509 pages in swap cache
Jan 24 14:55:28 pluto kernel: [ 6528.886058] Swap cache stats: add 124220, delete 113711, find 43365/54792
Jan 24 14:55:28 pluto kernel: [ 6528.886061] Free swap = 890524kB
Jan 24 14:55:28 pluto kernel: [ 6528.886063] Total swap = 995988kB
Jan 24 14:55:28 pluto kernel: [ 6528.893338] 196560 pages RAM
Jan 24 14:55:28 pluto kernel: [ 6528.893341] 0 pages HighMem
Jan 24 14:55:28 pluto kernel: [ 6528.893343] 3012 pages reserved
Jan 24 14:55:28 pluto kernel: [ 6528.893345] 106367 pages shared
Jan 24 14:55:28 pluto kernel: [ 6528.893347] 124463 pages non-shared
Jan 24 14:55:47 pluto kernel: [ 6548.705264] fsarchiver: page allocation failure. order:4, mode:0xd0
Jan 24 14:55:47 pluto kernel: [ 6548.705273] Pid: 22404, comm: fsarchiver Not tainted 2.6.33-rc5 #2
Jan 24 14:55:49 pluto kernel: [ 6548.705276] Call Trace:
Jan 24 14:55:49 pluto kernel: [ 6548.705292] [<c1085f8f>] ? __alloc_pages_nodemask+0x443/0x4b0
Jan 24 14:55:49 pluto kernel: [ 6548.705301] [<c10a2327>] ? cache_alloc_refill+0x246/0x406
Jan 24 14:55:49 pluto kernel: [ 6548.705323] [<c10a2644>] ? __kmalloc+0x8c/0xd5
Jan 24 14:55:49 pluto kernel: [ 6548.705330] [<c10b9773>] ? getxattr+0x6f/0xe2
Jan 24 14:55:49 pluto kernel: [ 6548.705334] [<c10b9773>] ? getxattr+0x6f/0xe2
Jan 24 14:55:49 pluto kernel: [ 6548.705340] [<c10b33cd>] ? dput+0x22/0x104
Jan 24 14:55:49 pluto kernel: [ 6548.705347] [<c10ac22a>] ? path_to_nameidata+0xe/0x26
Jan 24 14:55:49 pluto kernel: [ 6548.705352] [<c10accd2>] ? link_path_walk+0x449/0x50b
Jan 24 14:55:49 pluto kernel: [ 6548.705356] [<c10aeec4>] ? user_path_at+0x40/0x5f
Jan 24 14:55:49 pluto kernel: [ 6548.705361] [<c10b6c70>] ? mntput_no_expire+0x17/0xb6
Jan 24 14:55:49 pluto kernel: [ 6548.705365] [<c10aeec4>] ? user_path_at+0x40/0x5f
Jan 24 14:55:49 pluto kernel: [ 6548.705371] [<c110a00d>] ? ext4_listxattr+0x17e/0x1a7
Jan 24 14:55:49 pluto kernel: [ 6548.705375] [<c1109ff0>] ? ext4_listxattr+0x161/0x1a7
Jan 24 14:55:49 pluto kernel: [ 6548.705384] [<c113ade0>] ? _atomic_dec_and_lock+0x40/0x5c
Jan 24 14:55:49 pluto kernel: [ 6548.705389] [<c10b981a>] ? sys_lgetxattr+0x34/0x45
Jan 24 14:55:49 pluto kernel: [ 6548.705394] [<c1002753>] ? sysenter_do_call+0x12/0x22
Jan 24 14:55:49 pluto kernel: [ 6548.705401] [<c1250000>] ? serial_pnp_probe+0x1/0x1c5
Jan 24 14:55:49 pluto kernel: [ 6548.705404] Mem-Info:
Jan 24 14:55:49 pluto kernel: [ 6548.705406] DMA per-cpu:
Jan 24 14:55:49 pluto kernel: [ 6548.705409] CPU 0: hi: 0, btch: 1 usd: 0
Jan 24 14:55:49 pluto kernel: [ 6548.705412] Normal per-cpu:
Jan 24 14:55:49 pluto kernel: [ 6548.705414] CPU 0: hi: 186, btch: 31 usd: 0
Jan 24 14:55:49 pluto kernel: [ 6548.705421] active_anon:33609 inactive_anon:38315 isolated_anon:18
Jan 24 14:55:49 pluto kernel: [ 6548.705423] active_file:47768 inactive_file:55116 isolated_file:24
Jan 24 14:55:49 pluto kernel: [ 6548.705425] unevictable:4 dirty:5536 writeback:338 unstable:0
Jan 24 14:55:49 pluto kernel: [ 6548.705426] free:2960 slab_reclaimable:4367 slab_unreclaimable:2708
Jan 24 14:55:49 pluto kernel: [ 6548.705428] mapped:15318 shmem:913 pagetables:959 bounce:0
Jan 24 14:55:49 pluto kernel: [ 6548.705439] DMA free:3048kB min:68kB low:84kB high:100kB active_anon:168kB inactive_anon:1064kB active_file:4252kB inactive_file:7112kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15868kB mlocked:0kB dirty:0kB writeback:0kB mapped:600kB shmem:0kB slab_reclaimable:128kB slab_unreclaimable:88kB kernel_stack:24kB pagetables:16kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Jan 24 14:55:49 pluto kernel: [ 6548.705447] lowmem_reserve[]: 0 745 745 745
Jan 24 14:55:49 pluto kernel: [ 6548.705459] Normal free:8792kB min:3460kB low:4324kB high:5188kB active_anon:134268kB inactive_anon:152196kB active_file:186820kB inactive_file:213352kB unevictable:16kB isolated(anon):72kB isolated(file):96kB present:763840kB mlocked:16kB dirty:22144kB writeback:1352kB mapped:60672kB shmem:3652kB slab_reclaimable:17340kB slab_unreclaimable:10744kB kernel_stack:2096kB pagetables:3820kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Jan 24 14:55:49 pluto kernel: [ 6548.705467] lowmem_reserve[]: 0 0 0 0
Jan 24 14:55:49 pluto kernel: [ 6548.705472] DMA: 252*4kB 255*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 3048kB
Jan 24 14:55:49 pluto kernel: [ 6548.705484] Normal: 1340*4kB 217*8kB 72*16kB 15*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 8792kB
Jan 24 14:55:49 pluto kernel: [ 6548.705496] 116786 total pagecache pages
Jan 24 14:55:49 pluto kernel: [ 6548.705499] 12966 pages in swap cache
Jan 24 14:55:49 pluto kernel: [ 6548.705502] Swap cache stats: add 128183, delete 115217, find 44539/56012
Jan 24 14:55:49 pluto kernel: [ 6548.705504] Free swap = 878648kB
Jan 24 14:55:49 pluto kernel: [ 6548.705507] Total swap = 995988kB
Jan 24 14:55:49 pluto kernel: [ 6548.712697] 196560 pages RAM
Jan 24 14:55:49 pluto kernel: [ 6548.712701] 0 pages HighMem
Jan 24 14:55:49 pluto kernel: [ 6548.712703] 3012 pages reserved
Jan 24 14:55:49 pluto kernel: [ 6548.712705] 102649 pages shared
Jan 24 14:55:49 pluto kernel: [ 6548.712707] 127771 pages non-shared

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: problems with xattrs/selinux

Post by admin » Sun Jan 24, 2010 6:42 pm

This bug has been fixed in fsarchiver-0.6.6, and Michael just confirmed that it works.

Post Reply