Xiao Guangrong
6bd364d829
KEYS: fix uninitialized persistent_keyring_register_sem
We run into this bug:
[ 2736.063245] Unable to handle kernel paging request for data at address 0x00000000
[ 2736.063293] Faulting instruction address: 0xc00000000037efb0
[ 2736.063300] Oops: Kernel access of bad area, sig: 11 [#1]
[ 2736.063303] SMP NR_CPUS=2048 NUMA pSeries
[ 2736.063310] Modules linked in: sg nfsv3 rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache nf_conntrack_netbios_ns nf_conntrack_broadcast ipt_MASQUERADE ip6table_mangle ip6table_security ip6table_raw ip6t_REJECT iptable_nat nf_nat_ipv4 iptable_mangle iptable_security iptable_raw ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ebtable_filter ebtables ip6table_filter iptable_filter ip_tables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nf_nat nf_conntrack ip6_tables ibmveth pseries_rng nx_crypto nfsd auth_rpcgss nfs_acl lockd sunrpc binfmt_misc xfs libcrc32c dm_service_time sd_mod crc_t10dif crct10dif_common ibmvfc scsi_transport_fc scsi_tgt dm_mirror dm_region_hash dm_log dm_multipath dm_mod
[ 2736.063383] CPU: 1 PID: 7128 Comm: ssh Not tainted 3.10.0-48.el7.ppc64 #1
[ 2736.063389] task: c000000131930120 ti: c0000001319a0000 task.ti: c0000001319a0000
[ 2736.063394] NIP: c00000000037efb0 LR: c0000000006c40f8 CTR: 0000000000000000
[ 2736.063399] REGS: c0000001319a3870 TRAP: 0300 Not tainted (3.10.0-48.el7.ppc64)
[ 2736.063403] MSR: 8000000000009032 <SF,EE,ME,IR,DR,RI> CR: 28824242 XER: 20000000
[ 2736.063415] SOFTE: 0
[ 2736.063418] CFAR: c00000000000908c
[ 2736.063421] DAR: 0000000000000000, DSISR: 40000000
[ 2736.063425]
GPR00: c0000000006c40f8 c0000001319a3af0 c000000001074788 c0000001319a3bf0
GPR04: 0000000000000000 0000000000000000 0000000000000020 000000000000000a
GPR08: fffffffe00000002 00000000ffff0000 0000000080000001 c000000000924888
GPR12: 0000000028824248 c000000007e00400 00001fffffa0f998 0000000000000000
GPR16: 0000000000000022 00001fffffa0f998 0000010022e92470 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR24: 0000000000000000 c000000000f4a828 00003ffffe527108 0000000000000000
GPR28: c000000000f4a730 c000000000f4a828 0000000000000000 c0000001319a3bf0
[ 2736.063498] NIP [c00000000037efb0] .__list_add+0x30/0x110
[ 2736.063504] LR [c0000000006c40f8] .rwsem_down_write_failed+0x78/0x264
[ 2736.063508] PACATMSCRATCH [800000000280f032]
[ 2736.063511] Call Trace:
[ 2736.063516] [c0000001319a3af0] [c0000001319a3b80] 0xc0000001319a3b80 (unreliable)
[ 2736.063523] [c0000001319a3b80] [c0000000006c40f8] .rwsem_down_write_failed+0x78/0x264
[ 2736.063530] [c0000001319a3c50] [c0000000006c1bb0] .down_write+0x70/0x78
[ 2736.063536] [c0000001319a3cd0] [c0000000002e5ffc] .keyctl_get_persistent+0x20c/0x320
[ 2736.063542] [c0000001319a3dc0] [c0000000002e2388] .SyS_keyctl+0x238/0x260
[ 2736.063548] [c0000001319a3e30] [c000000000009e7c] syscall_exit+0x0/0x7c
[ 2736.063553] Instruction dump:
[ 2736.063556] 7c0802a6 fba1ffe8 fbc1fff0 fbe1fff8 7cbd2b78 7c9e2378 7c7f1b78 f8010010
[ 2736.063566] f821ff71 e8a50008 7fa52040 40de00c0 <e8be0000> 7fbd2840 40de0094 7fbff040
[ 2736.063579] ---[ end trace 2708241785538296 ]---
It's caused by uninitialized persistent_keyring_register_sem.
The bug was introduced by commit f36f8c75, two typos are in that commit:
CONFIG_KEYS_KERBEROS_CACHE should be CONFIG_PERSISTENT_KEYRINGS and
krb_cache_register_sem should be persistent_keyring_register_sem.
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: David Howells <dhowells@redhat.com>
2013-12-13 15:59:11 +00:00
..
2013-09-25 14:07:49 +02:00
2013-10-03 18:47:54 +02:00
2013-11-19 16:57:42 +01:00
2013-11-13 12:09:34 +09:00
2013-12-02 10:15:39 -08:00
2013-11-13 13:50:17 +01:00
2013-11-19 01:07:08 +01:00
2013-11-13 12:09:14 +09:00
2013-11-19 14:59:50 +01:00
2013-11-27 11:04:53 +01:00
2013-11-29 12:23:03 +01:00
2013-12-06 08:34:16 -08:00
2013-12-10 18:21:34 +00:00
2013-05-04 14:57:58 -04:00
2013-06-12 16:29:46 -07:00
2013-11-21 19:18:14 -08:00
2013-11-05 11:15:03 -05:00
2013-11-05 11:09:16 -05:00
2013-11-06 11:47:24 -05:00
2013-11-19 14:20:12 -08:00
2013-09-09 11:19:09 -07:00
2013-08-08 20:11:27 -04:00
2013-11-27 18:16:21 -05:00
2013-05-01 07:21:43 -07:00
2013-05-01 17:29:18 -04:00
2013-10-09 12:36:13 +02:00
2013-11-14 16:55:11 +09:00
2013-11-27 13:52:47 -05:00
2013-11-13 12:09:12 +09:00
2013-11-09 00:16:23 -05:00
2013-07-09 10:33:26 -07:00
2013-11-28 09:49:41 -08:00
2013-11-15 09:32:15 +09:00
2013-07-30 14:05:06 +02:00
2013-12-12 09:53:51 -08:00
2013-08-30 23:44:11 -07:00
2013-07-14 19:36:59 -04:00
2013-11-15 13:51:36 +09:00
2013-10-19 19:45:35 -04:00
2013-04-15 15:17:26 +09:30
2013-11-15 09:32:22 +09:00
2013-05-28 08:50:00 +02:00
2013-11-15 16:47:22 -08:00
2013-09-30 14:31:02 -07:00
2013-11-13 12:09:26 +09:00
2013-09-12 15:38:03 -07:00
2013-11-13 12:08:59 +09:00
2013-12-13 15:59:11 +00:00
2013-10-25 17:15:18 -04:00
2013-09-25 17:17:01 +01:00
2013-11-15 13:27:50 +09:00
2013-09-07 14:35:32 -07:00
2013-10-30 12:02:58 +08:00
2013-11-13 12:09:35 +09:00
2013-09-28 12:35:52 -07:00
2013-10-24 23:43:29 -04:00
2013-09-30 14:31:03 -07:00
2013-07-03 16:54:42 +02:00
2013-04-18 12:51:19 +02:00
2013-07-14 19:36:59 -04:00
2013-11-13 12:09:33 +09:00
2013-06-18 11:32:10 -05:00
2013-09-24 17:00:26 -07:00
2013-07-14 19:36:59 -04:00
2013-09-12 15:38:02 -07:00
2013-07-03 16:08:06 -07:00
2013-03-26 11:07:19 +11:00
2013-11-09 00:16:29 -05:00
2013-11-15 09:32:22 +09:00
2013-07-14 19:36:59 -04:00
2013-11-15 09:32:22 +09:00
2013-11-11 12:43:38 +01:00
2013-05-09 13:46:38 -04:00
2013-11-13 12:09:13 +09:00
2013-11-13 12:09:33 +09:00
2013-11-14 16:30:30 +09:00
2013-12-10 18:25:28 +00:00
2013-12-10 18:25:28 +00:00
2013-09-11 15:58:27 -07:00
2013-11-19 16:39:05 -05:00
2013-04-29 18:28:42 -07:00
2013-06-19 12:58:42 +02:00
2013-11-19 14:59:50 +01:00
2013-04-29 13:55:38 -07:00
2013-08-30 23:44:11 -07:00
2013-11-15 09:32:22 +09:00
2013-09-24 10:35:19 +01:00
2013-12-13 15:59:11 +00:00
2013-08-30 23:44:11 -07:00
2013-09-24 17:00:25 -07:00
2013-06-19 12:58:42 +02:00
2013-11-22 18:14:47 -05:00