android_kernel_xiaomi_sm8350/fs/proc
Linus Torvalds 8993780a6e Make SLES9 "get_kernel_version" work on the kernel binary again
As reported by Andy Whitcroft, at least the SLES9 initrd build process
depends on getting the kernel version from the kernel binary.  It does
that by simply trawling the binary and looking for the signature of the
"linux_banner" string (the string "Linux version " to be exact. Which
is really broken in itself, but whatever..)

That got broken when the string was changed to allow /proc/version to
change the UTS release information dynamically, and "get_kernel_version"
thus returned "%s" (see commit a2ee8649ba:
"[PATCH] Fix linux banner utsname information").

This just restores "linux_banner" as a static string, which should fix
the version finding.  And /proc/version simply uses a different string.

To avoid wasting even that miniscule amount of memory, the early boot
string should really be marked __initdata, but that just causes the same
bug in SLES9 to re-appear, since it will then find other occurrences of
"Linux version " first.

Cc: Andy Whitcroft <apw@shadowen.org>
Acked-by: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andi Kleen <ak@suse.de>
Cc: Andrew Morton <akpm@osdl.org>
Cc: Steve Fox <drfickle@us.ibm.com>
Acked-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-11 11:34:11 -08:00
..
array.c [PATCH] add process_session() helper routine: deprecate old field 2006-12-08 08:28:51 -08:00
base.c [PATCH] io-accounting: report in procfs 2006-12-10 09:55:41 -08:00
generic.c [PATCH] proc: change uses of f_{dentry, vfsmnt} to use f_path 2006-12-08 08:28:41 -08:00
inode-alloc.txt
inode.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
internal.h [PATCH] NOMMU: Implement /proc/pid/maps for NOMMU 2006-09-27 08:26:14 -07:00
kcore.c [PATCH] elf: fix kcore note size calculation 2006-12-07 08:39:38 -08:00
kmsg.c
Makefile [PATCH] remove the syslog interface when printk is disabled 2006-12-07 08:39:38 -08:00
mmu.c
nommu.c [PATCH] proc: change uses of f_{dentry, vfsmnt} to use f_path 2006-12-08 08:28:41 -08:00
proc_devtree.c
proc_misc.c Make SLES9 "get_kernel_version" work on the kernel binary again 2006-12-11 11:34:11 -08:00
proc_tty.c
root.c [PATCH] severing fs.h, radix-tree.h -> sched.h 2006-12-04 02:00:24 -05:00
task_mmu.c [PATCH] proc: change uses of f_{dentry, vfsmnt} to use f_path 2006-12-08 08:28:41 -08:00
task_nommu.c [PATCH] proc: change uses of f_{dentry, vfsmnt} to use f_path 2006-12-08 08:28:41 -08:00
vmcore.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00