Red Hat Enterprise Linux 5 panic crashes with RIP at "selinux_bprm_post_apply_creds"
Issue
Red Hat Enterprise Linux 5 panic crashes with RIP at "selinux_bprm_post_apply_creds"
crash 00399921_vmcore_kernel238 usr/lib/debug/lib/modules/2.6.18-238.1.1.el5/vmlinux
KERNEL: usr/lib/debug/lib/modules/2.6.18-238.1.1.el5/vmlinux
DUMPFILE: 00399921_vmcore_kernel238
CPUS: 16
DATE: Thu Jan 27 06:20:57 2011
UPTIME: 00:13:53
LOAD AVERAGE: 0.14, 0.09, 0.06
TASKS: 291
NODENAME: gnx10199
RELEASE: 2.6.18-238.1.1.el5
VERSION: #1 SMP Tue Jan 4 13:32:19 EST 2011
MACHINE: x86_64 (2931 Mhz)
MEMORY: 63.1 GB
PANIC: ""
PID: 5743
COMMAND: "rpm"
TASK: ffff811072365040 [THREAD_INFO: ffff811059a02000]
CPU: 5
STATE: TASK_RUNNING (PANIC)
....
crash> log
....
general protection fault: 0000 [1] SMP
last sysfs file: /class/misc/autofs/dev
CPU 5
Modules linked in: nfs fscache nfs_acl autofs4 hidp l2cap bluetooth lockd sunrpc xt_tcpudp iptable_filter ip_tables x_tables dm_mirror dm_multipath scsi_dh video backlight sbs power_meter hwmon i2c_ec i2c_core dell_wmi wmi button battery asus_acpi acpi_memhotplug ac ipv6 xfrm_nalgo crypto_api parport_pc lp parport joydev sg shpchp ide_cd tpm_tis tpm tpm_bios bnx2 cdrom pcspkr dm_raid45 dm_message dm_region_hash dm_log dm_mod dm_mem_cache ata_piix libata megaraid_sas sd_mod scsi_mod ext3 jbd uhci_hcd ohci_hcd ehci_hcd
Pid: 5743, comm: rpm Not tainted 2.6.18-238.1.1.el5 #1
RIP: 0010:[] [] selinux_bprm_post_apply_creds+0xad/0x453
RSP: 0018:ffff811059a03cb8 EFLAGS: 00010286
RAX: 0001001000000000 RBX: ffff811075cd3000 RCX: ffff811072365040
RDX: ffff81105a0fee48 RSI: 0000003a20000a70 RDI: ffffffff8044c300
RBP: 0000003a2021bb90 R08: 0000000000000292 R09: ffff811062504600
R10: ffff81105b1dd378 R11: ffffffff801312af R12: 0000003a20000a70
R13: ffff811062961200 R14: 0000000000000000 R15: ffff811066f8eda0
FS: 0000000000000000(0000) GS:ffff810139dbd4c0(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000003a2021cae8 CR3: 000000105a172000 CR4: 00000000000006e0
Process rpm (pid: 5743, threadinfo ffff811059a02000, task ffff811072365040)
Stack: 00000000fffffff4 00007fff673fc000 ffff810139f60fe0 ffff8110783b7680
ffff81105b1dd348 0000000000000873 ffff81105b1dd378 ffff81105b1dd380
0000000000000292 ffffffff80030319 0000000000004000 ffff81107ac491ec
Call Trace:
[] __up_write+0x27/0xf2
[] selinux_bprm_apply_creds+0x19/0xc2
[] load_elf_binary+0x10c7/0x1918
[] copy_strings+0x20a/0x23d
[] search_binary_handler+0xbb/0x26d
[] do_execve+0x151/0x1ed
[] sys_execve+0x36/0x4c
[] stub_execve+0x67/0xb0
Code: 48 8b 70 10 65 48 8b 3c 25 00 00 00 00 31 c9 ba 06 00 00 00
RIP [] selinux_bprm_post_apply_creds+0xad/0x453
RSP
....
crash> bt
PID: 5743 TASK: ffff811072365040 CPU: 5 COMMAND: "rpm"
#0 [ffff811059a03a90] crash_kexec at ffffffff800af85a
#1 [ffff811059a03b50] __die at ffffffff80065117
#2 [ffff811059a03b90] die at ffffffff8006c73a
#3 [ffff811059a03bc0] do_general_protection at ffffffff8006555f
#4 [ffff811059a03c00] error_exit at ffffffff8005dde9
[exception RIP: selinux_bprm_post_apply_creds+173]
RIP: ffffffff8013135c RSP: ffff811059a03cb8 RFLAGS: 00010286
RAX: 0001001000000000 RBX: ffff811075cd3000 RCX: ffff811072365040
RDX: ffff81105a0fee48 RSI: 0000003a20000a70 RDI: ffffffff8044c300
RBP: 0000003a2021bb90 R8: 0000000000000292 R9: ffff811062504600
R10: ffff81105b1dd378 R11: ffffffff801312af R12: 0000003a20000a70
R13: ffff811062961200 R14: 0000000000000000 R15: ffff811066f8eda0
ORIG_RAX: ffffffffffffffff CS: 0010 SS: 0018
#5 [ffff811059a03d80] load_elf_binary at ffffffff80019434
#6 [ffff811059a03eb0] search_binary_handler at ffffffff8003fa56
#7 [ffff811059a03ee0] do_execve at ffffffff8003efd9
#8 [ffff811059a03f20] sys_execve at ffffffff80055086
#9 [ffff811059a03f50] stub_execve at ffffffff8005d4d3
RIP: 0000003a2109a3f7 RSP: 00007fffd16b63b8 RFLAGS: 00000203
RAX: 000000000000003b RBX: 00000000115cfa30 RCX: ffffffffffffffff
RDX: 00000000115bf140 RSI: 00000000115cfa30 RDI: 00000000115bdd90
RBP: 00000000115bdc48 R8: 0000000000000000 R9: 00007fffd16b6328
R10: 0000000000000004 R11: 0000000000000203 R12: 00000000115bdd90
R13: 00000000115ce440 R14: 00002b6d5c1dd880 R15: 00000000115ae010
ORIG_RAX: 000000000000003b CS: 0033 SS: 002b
....
crash> sym ffffffff8013135c
ffffffff8013135c (t) selinux_bprm_post_apply_creds+173 ../debug/kernel-2.6.18/linux-2.6.18.x86_64/security/selinux/hooks.c: 1843
Environment
Red Hat Enterprise Linux 5
Kernel versions '2.6.18-194.17.1.el5', '2.6.18-238.el5', and '2.6.18-238.1.1.el5'.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
