Re: 2.6.12-rc4-mm2 - sleeping function called from invalid context at mm/slab.c:2502

From: Valdis . Kletnieks
Date: Fri May 20 2005 - 09:32:11 EST


On Thu, 19 May 2005 14:45:31 EDT, Valdis.Kletnieks@xxxxxx said:

> > Index: kernel/audit.c
> > ===================================================================
> > --- e45ee43e7af31f847377e8bb3a0a61581732b653/kernel/audit.c (mode:100644)
> > +++ c1096ff7ae35b77bf8108c3a60b856551c50a9d7/kernel/audit.c (mode:100644)
>
> Patch applies with a few offsets against 12-rc4-mm2, and I'm not
> seeing the messages any more...

Looks like we either only swatted half the bug, or the patch moved it around.
Slightly different trace this time:

May 20 09:28:22 turing-police kernel: [4294758.508000] audit(1116595648.944:0): avc: denied { write } for name=X0 dev=tmpfs in
o=5682 scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:initrc_tmp_t tclass=sock_file
May 20 09:28:22 turing-police kernel: [4294758.508000] Debug: sleeping function called from invalid context at mm/slab.c:2502
May 20 09:28:22 turing-police kernel: [4294758.508000] in_atomic():1, irqs_disabled():0
May 20 09:28:22 turing-police kernel: [4294758.508000] [dump_stack+21/23] dump_stack+0x15/0x17
May 20 09:28:22 turing-police kernel: [4294758.508000] [kmem_cache_alloc+30/106] kmem_cache_alloc+0x1e/0x6a
May 20 09:28:22 turing-police kernel: [4294758.508000] [audit_log_d_path+49/139] audit_log_d_path+0x31/0x8b
May 20 09:28:22 turing-police kernel: [4294758.508000] [avc_audit+1418/2392] avc_audit+0x58a/0x958
May 20 09:28:22 turing-police kernel: [4294758.508000] [avc_has_perm+59/72] avc_has_perm+0x3b/0x48
May 20 09:28:22 turing-police kernel: [4294758.508000] [selinux_socket_unix_stream_connect+111/168] selinux_socket_unix_stream_c
onnect+0x6f/0xa8
May 20 09:28:22 turing-police kernel: [4294758.508000] [unix_stream_connect+552/1154] unix_stream_connect+0x228/0x482
May 20 09:28:22 turing-police kernel: [4294758.508000] [sys_connect+106/129] sys_connect+0x6a/0x81
May 20 09:28:22 turing-police kernel: [4294758.508000] [sys_socketcall+111/358] sys_socketcall+0x6f/0x166
May 20 09:28:22 turing-police kernel: [4294758.508000] [sysenter_past_esp+84/117] sysenter_past_esp+0x54/0x75
May 20 09:28:22 turing-police kernel: [4294758.508000] audit(1116595648.944:0): avc: denied { connectto } for path="/tmp/.X11-
unix/X0" scontext=system_u:system_r:initrc_t tcontext=system_u:system_r:xdm_xserver_t tclass=unix_stream_socket
...
May 20 09:32:38 turing-police kernel: [4295068.589000] Debug: sleeping function called from invalid context at mm/slab.c:2502
May 20 09:32:38 turing-police kernel: [4295068.589000] in_atomic():1, irqs_disabled():0
May 20 09:32:38 turing-police kernel: [4295068.589000] [dump_stack+21/23] dump_stack+0x15/0x17
May 20 09:32:38 turing-police kernel: [4295068.589000] [kmem_cache_alloc+30/106] kmem_cache_alloc+0x1e/0x6a
May 20 09:32:38 turing-police kernel: [4295068.589000] [audit_log_d_path+49/139] audit_log_d_path+0x31/0x8b
May 20 09:32:38 turing-police kernel: [4295068.589000] [avc_audit+1418/2392] avc_audit+0x58a/0x958
May 20 09:32:38 turing-police kernel: [4295068.589000] [avc_has_perm+59/72] avc_has_perm+0x3b/0x48
May 20 09:32:38 turing-police kernel: [4295068.589000] [selinux_socket_unix_stream_connect+111/168] selinux_socket_unix_stream_c
onnect+0x6f/0xa8
May 20 09:32:38 turing-police kernel: [4295068.589000] [unix_stream_connect+552/1154] unix_stream_connect+0x228/0x482
May 20 09:32:38 turing-police kernel: [4295068.589000] [sys_connect+106/129] sys_connect+0x6a/0x81
May 20 09:32:38 turing-police kernel: [4295068.589000] [sys_socketcall+111/358] sys_socketcall+0x6f/0x166
May 20 09:32:38 turing-police kernel: [4295068.589000] [syscall_call+7/11] syscall_call+0x7/0xb
May 20 09:32:52 turing-police kernel: [4295082.517000] Debug: sleeping function called from invalid context at mm/slab.c:2502
May 20 09:32:52 turing-police kernel: [4295082.517000] in_atomic():1, irqs_disabled():0
May 20 09:32:52 turing-police kernel: [4295082.517000] [dump_stack+21/23] dump_stack+0x15/0x17
May 20 09:32:52 turing-police kernel: [4295082.517000] [kmem_cache_alloc+30/106] kmem_cache_alloc+0x1e/0x6a
May 20 09:32:52 turing-police kernel: [4295082.517000] [audit_log_d_path+49/139] audit_log_d_path+0x31/0x8b
May 20 09:32:52 turing-police kernel: [4295082.517000] [avc_audit+1418/2392] avc_audit+0x58a/0x958
May 20 09:32:52 turing-police kernel: [4295082.517000] [avc_has_perm+59/72] avc_has_perm+0x3b/0x48
May 20 09:32:52 turing-police kernel: [4295082.517000] [selinux_socket_unix_stream_connect+111/168] selinux_socket_unix_stream_c
onnect+0x6f/0xa8
May 20 09:32:52 turing-police kernel: [4295082.517000] [unix_stream_connect+552/1154] unix_stream_connect+0x228/0x482
May 20 09:32:52 turing-police kernel: [4295082.518000] [sys_connect+106/129] sys_connect+0x6a/0x81
May 20 09:32:52 turing-police kernel: [4295082.518000] [sys_socketcall+111/358] sys_socketcall+0x6f/0x166
May 20 09:32:52 turing-police kernel: [4295082.518000] [syscall_call+7/11] syscall_call+0x7/0xb

Attachment: pgp00000.pgp
Description: PGP signature