[SELinux] We found that there was bug on at /kernel/security/selinux/avc.c:158!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello guys,

 

I’m Tim Lee from HTC who have mailed to you guys before about SELinux problem.

Now, we found that there was bug on at /kernel/security/selinux/avc.c:158!

Could you please help us to check why SELinux will got this kind of error then trigger bug on? Thanks.

 

We are using this kernel source tree for our project now, you can check this link for you refer it.

https://www.codeaurora.org/cgit/quic/la/kernel/msm/tag/?id=LNX.LA.3.5-08210-8x74.0

 

kernel log:

[ 1504.096608] c0   1494 SELinux:  Invalid class 119

[ 1504.096691] c0   1494 ------------[ cut here ]------------

[ 1504.096701] c0   1494 kernel BUG at /kernel/security/selinux/avc.c:158!           

[ 1504.096712] c0   1494 Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM

[ 1504.096721] c0   1494 Modules linked in: wlan(O) adsprpc ecryptfs(O) dm_crypt(O) moc_crypto(PO) moc_platform_mod(O) texfat(PO)

[ 1504.096758] c0   1494 CPU: 0    Tainted: P           O  (3.4.0-g64d89ff #1)

[ 1504.096774] c0   1494 PC is at avc_audit_post_callback+0xb0/0xf4

[ 1504.096785] c0   1494 LR is at kfree+0xe0/0x228

[ 1504.096794] c0   1494 pc : [<c0324dd4>]    lr : [<c025d25c>]    psr: 20000013

[ 1504.096799] c0   1494 sp : eb8a3d28  ip : e84282c0  fp : 903de96c

[ 1504.096808] c0   1494 r10: eb8a3e34  r9 : e96ad00b  r8 : c0324d24

[ 1504.096816] c0   1494 r7 : 00000090  r6 : 0000009b  r5 : 00000077  r4 : ef334ec0

[ 1504.096825] c0   1494 r3 : 00000001  r2 : 021fb000  r1 : 60000013  r0 : 01199570

[ 1504.096835] c0   1494 Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user

[ 1504.096844] c0   1494 Control: 10c5787d  Table: 2d34c06a  DAC: 00000015

[ 1504.096852] c0   1494

[ 1504.096854] c0   1494 PC: 0xc0324d54:

[ 1504.096861] c0   1494 4d54  e1a00007 eb004d17 e3500000 e1a00004 0a000003 e59f1090 e1a02007 ebfb3144

[ 1504.096895] c0   1494 4d74  ea000004 e59f1084 e59d2000 ebfb3140 e59d0000 ebfce0fb e1a00006 e1a0100d

[ 1504.096928] c0   1494 4d94  e28d2004 eb004d07 e3500000 e1a00004 0a000003 e59f1058 e1a02006 ebfb3134

[ 1504.096961] c0   1494 4db4  ea000004 e59f104c e59d2000 ebfb3130 e59d0000 ebfce0eb e3550032 9a000000

[ 1504.096995] c0   1494 4dd4  e7f001f2 e3a03088 e2455001 e59f1028 e1a00004 e0050593 e59f3020 e7932005

[ 1504.097028] c0   1494 4df4  ebfb3123 e8bd80fe c0c030bc c0c0e066 c0c0f1a8 c0c0e06e c0c0e077 c0c105df

[ 1504.097061] c0   1494 4e14  c0f7ff48 e92d40f0 e24dd014 e1a07000 e3a05000 ebfb6d97 e59f1074 e1a06005

[ 1504.097093] c0   1494 4e34  e1a04005 e7913104 e3530000 0a000009 e2855001 e7912104 e3a03000 ea000001

[ 1504.097127] c0   1494

[ 1504.097129] c0   1494 LR: 0xc025d1dc:

[ 1504.097136] c0   1494 d1dc  e3130002 0a000000 eb1bd569 e3550010 9a000067 e59f31a4 e2852101 e1a02622

[ 1504.097170] c0   1494 d1fc  e5933000 e0836282 e7933282 e3130902 1596601c e5963000 e3130080 1a000009

[ 1504.097203] c0   1494 d21c  e5963000 e3130903 1a000000 e7f001f2 e1a00005 eb1aa85f e1a00006 e28dd014

[ 1504.097236] c0   1494 d23c  e8bd4ff0 eaff598d e596701c e5973004 e3130502 1a000001 e1a00005 eb1aa855

[ 1504.097269] c0   1494 d25c  e1a0200d e59fa138 e3c24d7f e3c4403f e5943004 e2833001 e5843004 e5943014

[ 1504.097302] c0   1494 d27c  e5978000 e79ab103 e088300b e5931004 e5942004 e2422001 e5842004 e5942000

[ 1504.097335] c0   1494 d29c  e3120002 0a000004 e58d1008 e58d300c eb1bd537 e59d300c e59d1008 e5933008

[ 1504.097368] c0   1494 d2bc  e1560003 1a000020 e798200b e5973014 e7852003 e10f3000 f10c0080 e58d3004

[ 1504.097403] c0   1494

[ 1504.097405] c0   1494 SP: 0xeb8a3ca8:

[ 1504.097412] c0   1494 3ca8  021fb000 00000001 ef334ec0 00000077 0000009b 00000090 c0324d24 e96ad00b

[ 1504.097445] c0   1494 3cc8  eb8a3e34 903de96c e84282c0 eb8a3d28 c025d25c c0324dd4 20000013 ffffffff

[ 1504.097478] c0   1494 3ce8  ef334ec0 c025d25c ef334ec0 60000013 ef334ec0 00000077 0000009b ef334ec0

[ 1504.097511] c0   1494 3d08  00000077 0000009b 00000090 c0324d24 e96ad00b eb8a3e34 903de96c c0324dcc

[ 1504.097544] c0   1494 3d28  e8428880 00000015 ef334ec0 ef334ec0 eb8a3e34 edb155b0 c4d96800 c033c250

[ 1504.097577] c0   1494 3d48  da8cd9b0 60000013 c0f35464 e1961ba0 0000000f 0000009b 00000090 00000077

[ 1504.097609] c0   1494 3d68  00800000 00000090 eb8a3e34 c0943dc0 00000000 00000000 0000009b c0943ce8

[ 1504.097642] c0   1494 3d88  00000000 e1961ba0 c10aaa6c 00000090 0000009b 00000077 00800000 00800000

[ 1504.097675] c0   1494

[ 1504.097678] c0   1494 IP: 0xe8428240:

[ 1504.097685] c0   1494 8240  00000000 ebcf31c4 00000000 00000000 00000000 db98a300 c01c27f4 00000000

[ 1504.097717] c0   1494 8260  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.097750] c0   1494 8280  00000007 00000000 da46f964 00000000 00000000 00000000 00000000 0000614f

[ 1504.097782] c0   1494 82a0  c0f75294 00000000 c315422c 00000000 00000000 00000000 00000000 00000000

[ 1504.097815] c0   1494 82c0  e8428b40 00100100 00200200 00000001 00000000 00000000 edf57400 00000000

[ 1504.097848] c0   1494 82e0  00000000 00000000 cc200154 00000011 00000011 00000000 00000000 000003e8

[ 1504.097881] c0   1494 8300  00080d5a eac1df1c e8428700 00000001 00000000 00000000 e1219c00 eac1df00

[ 1504.097914] c0   1494 8320  00000000 00000000 ce400000 00000000 00000000 00000000 00000000 000003e8

[ 1504.097947] c0   1494

[ 1504.097949] c0   1494 R4: 0xef334e40:

[ 1504.097956] c0   1494 4e40  00000003 00000003 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.097989] c0   1494 4e60  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098021] c0   1494 4e80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098053] c0   1494 4ea0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098085] c0   1494 4ec0  00100100 00200200 ec0de180 00000000 00000020 5f435448 54544142 5f595245

[ 1504.098118] c0   1494 4ee0  00004246 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098150] c0   1494 4f00  6e657665 6f735f74 65637275 ef890c00 ef890c00 c0f94810 ef33a040 00000001

[ 1504.098184] c0   1494 4f20  00000007 00010001 efadf5a8 efadf5a8 00000000 00000000 ef89106c ef334fbc

[ 1504.098217] c0   1494

[ 1504.098220] c0   1494 R8: 0xc0324ca4:

[ 1504.098226] c0   1494 4ca4  0a000003 e1a00004 e59f1060 e1c55007 ebfb3173 e2866004 e1a07087 e3560080

[ 1504.098259] c0   1494 4cc4  1afffff1 e3550000 0a000003 e1a00004 e59f103c e1a02005 ebfb3169 e59f1034

[ 1504.098292] c0   1494 4ce4  e1a00004 ebfb3166 e59f102c e1a00004 e8bd41f0 eafb3162 c0c0e059 c0c0e051

[ 1504.098325] c0   1494 4d04  c0c78032 c0bdfd13 c0bf5fe4 c0f7ff48 c0bf5e32 c0c92692 c0c0e063 c0d0816a

[ 1504.098358] c0   1494 4d24  e92d40f7 e1a05001 e59f10c8 e1a04000 ebfb3153 e5953010 e1a0100d e28d2004

[ 1504.098392] c0   1494 4d44  e5933004 e5937000 e5936004 e1d350b8 e1a00007 eb004d17 e3500000 e1a00004

[ 1504.098424] c0   1494 4d64  0a000003 e59f1090 e1a02007 ebfb3144 ea000004 e59f1084 e59d2000 ebfb3140

[ 1504.098457] c0   1494 4d84  e59d0000 ebfce0fb e1a00006 e1a0100d e28d2004 eb004d07 e3500000 e1a00004

[ 1504.098491] c0   1494

[ 1504.098494] c0   1494 R9: 0xe96acf8b:

[ 1504.098501] c0   1494 cf88  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098533] c0   1494 cfa8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098565] c0   1494 cfc8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098597] c0   1494 cfe8  00000000 00000000 00000000 00000000 00000000 00000000 6f72702f 35322f63

[ 1504.098630] c0   1494 d008  2f313736 5f6d6f6f 006a6461 00000000 00100000 0000000c 0000000c 00000001

[ 1504.098663] c0   1494 d028  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098695] c0   1494 d048  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098727] c0   1494 d068  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098759] c0   1494 d088  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 1504.098792] c0   1494

[ 1504.098794] c0   1494 R10: 0xeb8a3db4:

[ 1504.098801] c0   1494 3db4  00800000 00000000 00000077 0000009b c0325250 00800000 00800000 eb8a3e34

[ 1504.098834] c0   1494 3dd4  00000000 c0fbd598 00000000 00000000 ffffffff 00000001 00000001 00000000

[ 1504.098866] c0   1494 3df4  e023be10 edb155b0 ed0bd500 e96ad00c e96ad00c eb8a2000 c03264cc eb8a3e34

[ 1504.098899] c0   1494 3e14  00000000 00000000 c03269c8 00000000 c01b98bc ef80d800 00000000 eb8a3d94

[ 1504.098932] c0   1494 3e34  00000009 00000000 edb155b0 00000000 eb8a3e2c eb8a3ef8 edb155b0 edb155b0

[ 1504.098965] c0   1494 3e54  c0323954 eaf60408 c026e2f0 edb155b0 ed5640d0 c4d96800 00000000 903de96c

[ 1504.098998] c0   1494 3e74  0886d079 00000005 e96ad006 eb8a3ef8 eb8a3ef8 ffffff9c eb8a2000 eb8a3f78

[ 1504.099030] c0   1494 3e94  e96ad000 eb8a2000 00000000 903de96c c0271354 eb8a3eb4 ebc28b58 88b85000

[ 1504.099066] c0   1494 Process Binder_9 (pid: 1494, stack limit = 0xeb8a22f0)

[ 1504.099074] c0   1494 Stack: (0xeb8a3d28 to 0xeb8a4000)

[ 1504.099085] c0   1494 3d20:                   e8428880 00000015 ef334ec0 ef334ec0 eb8a3e34 edb155b0

[ 1504.099096] c0   1494 3d40: c4d96800 c033c250 da8cd9b0 60000013 c0f35464 e1961ba0 0000000f 0000009b

[ 1504.099108] c0   1494 3d60: 00000090 00000077 00800000 00000090 eb8a3e34 c0943dc0 00000000 00000000

[ 1504.099119] c0   1494 3d80: 0000009b c0943ce8 00000000 e1961ba0 c10aaa6c 00000090 0000009b 00000077

[ 1504.099131] c0   1494 3da0: 00800000 00800000 00800000 00000077 0000009b 00800000 00000000 00000077

[ 1504.099142] c0   1494 3dc0: 0000009b c0325250 00800000 00800000 eb8a3e34 00000000 c0fbd598 00000000

[ 1504.099154] c0   1494 3de0: 00000000 ffffffff 00000001 00000001 00000000 e023be10 edb155b0 ed0bd500

[ 1504.099166] c0   1494 3e00: e96ad00c e96ad00c eb8a2000 c03264cc eb8a3e34 00000000 00000000 c03269c8

[ 1504.099177] c0   1494 3e20: 00000000 c01b98bc ef80d800 00000000 eb8a3d94 00000009 00000000 edb155b0

[ 1504.099189] c0   1494 3e40: 00000000 eb8a3e2c eb8a3ef8 edb155b0 edb155b0 c0323954 eaf60408 c026e2f0

[ 1504.099201] c0   1494 3e60: edb155b0 ed5640d0 c4d96800 00000000 903de96c 0886d079 00000005 e96ad006

[ 1504.099212] c0   1494 3e80: eb8a3ef8 eb8a3ef8 ffffff9c eb8a2000 eb8a3f78 e96ad000 eb8a2000 00000000

[ 1504.099224] c0   1494 3ea0: 903de96c c0271354 eb8a3eb4 ebc28b58 88b85000 00000000 88b51000 ed3b2fc8

[ 1504.099235] c0   1494 3ec0: 00000000 c024cc94 00000000 eb8a3f78 00000001 e96ad000 ffffff9c ffffff9c

[ 1504.099247] c0   1494 3ee0: eb8a2000 00000000 903de96c c0271714 00000041 88b85000 ed5640d0 c4d96800

[ 1504.099259] c0   1494 3f00: 08100075 ed3b2fc8 e96ad000 ed564850 ef404080 edb155b0 00000011 00000002

[ 1504.099270] c0   1494 3f20: 00000001 00000000 ef802480 000000d0 00000000 903de904 000000ff 00000009

[ 1504.099282] c0   1494 3f40: 00000000 edcc4a40 eb8a2000 00020001 00000000 ec0de300 00000001 00020001

[ 1504.099294] c0   1494 3f60: 000000ff e96ad000 00000001 c02633a8 00000003 88b85000 00020001 ebc20000

[ 1504.099306] c0   1494 3f80: 00000022 00000100 88b8499c 795a2a18 4010238c 00000009 00000005 c0106344

[ 1504.099317] c0   1494 3fa0: 00000000 c01061c0 795a2a18 4010238c 903de904 00020001 00000000 903de917

[ 1504.099329] c0   1494 3fc0: 795a2a18 4010238c 00000009 00000005 903de958 8f4a88cc 8f49b018 903de96c

[ 1504.099341] c0   1494 3fe0: 8f4a88d4 903de8e0 400df7c9 400d2038 400f0010 903de904 41465f36 53523234

[ 1504.099364] c0   1494 [<c0324dd4>] (avc_audit_post_callback+0xb0/0xf4) from [<c033c250>] (common_lsm_audit+0x59c/0x60c)

[ 1504.099385] c0   1494 [<c033c250>] (common_lsm_audit+0x59c/0x60c) from [<c0943dc0>] (slow_avc_audit+0xa0/0xbc)

[ 1504.099402] c0   1494 [<c0943dc0>] (slow_avc_audit+0xa0/0xbc) from [<c0325250>] (avc_has_perm_flags+0x148/0x160)

[ 1504.099419] c0   1494 [<c0325250>] (avc_has_perm_flags+0x148/0x160) from [<c03264cc>] (inode_has_perm+0x54/0x64)

[ 1504.099435] c0   1494 [<c03264cc>] (inode_has_perm+0x54/0x64) from [<c03269c8>] (selinux_inode_permission+0xcc/0xd4)

[ 1504.099454] c0   1494 [<c03269c8>] (selinux_inode_permission+0xcc/0xd4) from [<c0323954>] (security_inode_permission+0x20/0x30)

[ 1504.099472] c0   1494 [<c0323954>] (security_inode_permission+0x20/0x30) from [<c026e2f0>] (link_path_walk+0x4c/0x80c)

[ 1504.099489] c0   1494 [<c026e2f0>] (link_path_walk+0x4c/0x80c) from [<c0271354>] (path_openat+0x9c/0x388)

[ 1504.099504] c0   1494 [<c0271354>] (path_openat+0x9c/0x388) from [<c0271714>] (do_filp_open+0x2c/0x78)

[ 1504.099520] c0   1494 [<c0271714>] (do_filp_open+0x2c/0x78) from [<c02633a8>] (do_sys_open+0xdc/0x1d8)

[ 1504.099538] c0   1494 [<c02633a8>] (do_sys_open+0xdc/0x1d8) from [<c01061c0>] (ret_fast_syscall+0x0/0x30)

[ 1504.099552] c0   1494 Code: e59d0000 ebfce0eb e3550032 9a000000 (e7f001f2)

 

Best regards,

Tim

CONFIDENTIALITY NOTE : The information in this e-mail is confidential and privileged; it is intended for use solely by the individual or entity named as the recipient hereof. Disclosure, copying, distribution, or use of the contents of this e-mail by persons other than the intended recipient is strictly prohibited and may violate applicable laws. If you have received this e-mail in error, please delete the original message and notify us by return email or collect call immediately. Thank you. HTC Corporation

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux