1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196 | simon@ubulaptop:~/kernel/linux-4.8.15$ time fakeroot make-kpkg --initrd --append-to-version=ck-and-grsec --revision=1 kernel_image modules_image kernel_headers -j16
exec make kpkg_version=13.018 -f /usr/share/kernel-package/ruleset/minimal.mk debian DEBIAN_REVISION=1 APPEND_TO_VERSION=ck-and-grsec INITRD=YES
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 13.018.
test -d debian || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog Control Control.bin86 config templates.in rules; do \
cp -f /usr/share/kernel-package/$file ./debian/; \
done
cp: cannot stat '/usr/share/kernel-package/ChangeLog': No such file or directory
for dir in Config docs examples ruleset scripts pkg po; do \
cp -af /usr/share/kernel-package/$dir ./debian/; \
done
test -f debian/control || sed -e 's/=V/4.8.15-ck8ck-and-grsec/g' \
-e 's/=D/1/g' -e 's/=A/amd64/g' \
-e 's/=SA//g' \
-e 's/=I//g' \
-e 's/=CV/4.8/g' \
-e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
-e 's/=ST/linux/g' -e 's/=B/x86_64/g' \
-e 's/=R/initramfs-tools | linux-initramfs-tool,/g' /usr/share/kernel-package/Control > debian/control
test -f debian/changelog || sed -e 's/=V/4.8.15-ck8ck-and-grsec/g' \
-e 's/=D/1/g' -e 's/=A/amd64/g' \
-e 's/=ST/linux/g' -e 's/=B/x86_64/g' \
-e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
/usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: Entering directory '/home/simon/kernel/linux-4.8.15'
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make EXTRAVERSION=-ck8ck-and-grsec ARCH=x86_64 \
oldconfig;
make[2]: Entering directory '/home/simon/kernel/linux-4.8.15'
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
make[2]: Leaving directory '/home/simon/kernel/linux-4.8.15'
make EXTRAVERSION=-ck8ck-and-grsec ARCH=x86_64 prepare
make[2]: Entering directory '/home/simon/kernel/linux-4.8.15'
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
HOSTCXX -fPIC scripts/gcc-plugins/rap_plugin/rap_plugin.o
HOSTCXX -fPIC scripts/gcc-plugins/rap_plugin/rap_hash.o
HOSTCXX -fPIC scripts/gcc-plugins/rap_plugin/rap_fptr_pass.o
HOSTCXX -fPIC scripts/gcc-plugins/rap_plugin/sip.o
HOSTLLD -shared scripts/gcc-plugins/rap_plugin/rap_plugin.so
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/size_overflow_misc.o
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/size_overflow_ipa.o
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/size_overflow_debug.o
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/insert_size_overflow_asm.o
GENHASH scripts/gcc-plugins/size_overflow_plugin/e_fns.h
GENHASH scripts/gcc-plugins/size_overflow_plugin/e_fields.h
GENHASH scripts/gcc-plugins/size_overflow_plugin/e_fptrs.h
GENHASH scripts/gcc-plugins/size_overflow_plugin/e_vars.h
GENHASH scripts/gcc-plugins/size_overflow_plugin/e_aux.h
GENHASH scripts/gcc-plugins/size_overflow_plugin/disable.h
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/size_overflow_plugin_hash.o
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/remove_unnecessary_dup.o
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/size_overflow_transform.o
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/size_overflow_transform_core.o
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/size_overflow_plugin.o
HOSTCXX -fPIC scripts/gcc-plugins/size_overflow_plugin/intentional_overflow.o
HOSTLLD -shared scripts/gcc-plugins/size_overflow_plugin/size_overflow_plugin.so
HOSTCXX -fPIC scripts/gcc-plugins/constify_plugin.o
HOSTLLD -shared scripts/gcc-plugins/constify_plugin.so
HOSTCXX -fPIC scripts/gcc-plugins/stackleak_plugin.o
HOSTLLD -shared scripts/gcc-plugins/stackleak_plugin.so
HOSTCXX -fPIC scripts/gcc-plugins/kernexec_plugin.o
HOSTLLD -shared scripts/gcc-plugins/kernexec_plugin.so
HOSTCXX -fPIC scripts/gcc-plugins/colorize_plugin.o
HOSTLLD -shared scripts/gcc-plugins/colorize_plugin.so
GENSEED scripts/gcc-plugins/randomize_layout_seed.h
HOSTCXX -fPIC scripts/gcc-plugins/randomize_layout_plugin.o
HOSTLLD -shared scripts/gcc-plugins/randomize_layout_plugin.so
HOSTCXX -fPIC scripts/gcc-plugins/latent_entropy_plugin.o
HOSTLLD -shared scripts/gcc-plugins/latent_entropy_plugin.so
HOSTCXX -fPIC scripts/gcc-plugins/structleak_plugin.o
HOSTLLD -shared scripts/gcc-plugins/structleak_plugin.so
CHK include/generated/timeconst.h
UPD include/generated/timeconst.h
CC kernel/bounds.s
CHK include/generated/bounds.h
UPD include/generated/bounds.h
GEN scripts/gdb/linux/constants.py
CC arch/x86/kernel/asm-offsets.s
In file included from ./include/linux/kasan.h:4:0,
from ./include/linux/slab.h:136,
from ./include/linux/crypto.h:24,
from arch/x86/kernel/asm-offsets.c:8:
./include/linux/sched.h:2017:23: error: duplicate member ‘thread’
struct thread_struct thread;
^
./include/linux/sched.h: In function ‘current_is_ptracer’:
./include/linux/sched.h:2577:27: error: ‘struct task_struct’ has no member named ‘exec_id’
*exec_id = task->parent->exec_id;
^
In file included from ./include/linux/thread_info.h:61:0,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/slab.h:14,
from ./include/linux/crypto.h:24,
from arch/x86/kernel/asm-offsets.c:8:
./include/linux/sched.h: In function ‘set_tsk_thread_flag’:
./arch/x86/include/asm/thread_info.h:276:40: error: ‘struct task_struct’ has no member named ‘tinfo’
#define task_thread_info(task) (&(task)->tinfo)
^
./include/linux/sched.h:3304:21: note: in expansion of macro ‘task_thread_info’
set_ti_thread_flag(task_thread_info(tsk), flag);
^
./include/linux/sched.h: In function ‘clear_tsk_thread_flag’:
./arch/x86/include/asm/thread_info.h:276:40: error: ‘struct task_struct’ has no member named ‘tinfo’
#define task_thread_info(task) (&(task)->tinfo)
^
./include/linux/sched.h:3309:23: note: in expansion of macro ‘task_thread_info’
clear_ti_thread_flag(task_thread_info(tsk), flag);
^
./include/linux/sched.h: In function ‘test_and_set_tsk_thread_flag’:
./arch/x86/include/asm/thread_info.h:276:40: error: ‘struct task_struct’ has no member named ‘tinfo’
#define task_thread_info(task) (&(task)->tinfo)
^
./include/linux/sched.h:3314:37: note: in expansion of macro ‘task_thread_info’
return test_and_set_ti_thread_flag(task_thread_info(tsk), flag);
^
./include/linux/sched.h: In function ‘test_and_clear_tsk_thread_flag’:
./arch/x86/include/asm/thread_info.h:276:40: error: ‘struct task_struct’ has no member named ‘tinfo’
#define task_thread_info(task) (&(task)->tinfo)
^
./include/linux/sched.h:3319:39: note: in expansion of macro ‘task_thread_info’
return test_and_clear_ti_thread_flag(task_thread_info(tsk), flag);
^
./include/linux/sched.h: In function ‘test_tsk_thread_flag’:
./arch/x86/include/asm/thread_info.h:276:40: error: ‘struct task_struct’ has no member named ‘tinfo’
#define task_thread_info(task) (&(task)->tinfo)
^
./include/linux/sched.h:3324:29: note: in expansion of macro ‘task_thread_info’
return test_ti_thread_flag(task_thread_info(tsk), flag);
^
./include/linux/sched.h: In function ‘task_cpu’:
./arch/x86/include/asm/thread_info.h:276:40: error: ‘const struct task_struct’ has no member named ‘tinfo’
#define task_thread_info(task) (&(task)->tinfo)
^
./include/linux/sched.h:3538:9: note: in expansion of macro ‘task_thread_info’
return task_thread_info(p)->cpu;
^
In file included from arch/x86/kernel/asm-offsets.c:13:0:
arch/x86/kernel/asm-offsets.c: In function ‘common’:
./include/linux/compiler-gcc.h:159:2: error: ‘struct task_struct’ has no member named ‘tinfo’
__builtin_offsetof(a, b)
^
./include/linux/kbuild.h:5:55: note: in definition of macro ‘DEFINE’
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
^
./include/linux/stddef.h:16:32: note: in expansion of macro ‘__compiler_offsetof’
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^
arch/x86/kernel/asm-offsets.c:35:72: note: in expansion of macro ‘offsetof’
DEFINE(TI_task_thread_sp0, offsetof(struct task_struct, thread.sp0) - offsetof(struct task_struct, tinfo));
^
./include/linux/compiler-gcc.h:159:2: error: ‘struct task_struct’ has no member named ‘tinfo’
__builtin_offsetof(a, b)
^
./include/linux/kbuild.h:5:55: note: in definition of macro ‘DEFINE’
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
^
./include/linux/stddef.h:16:32: note: in expansion of macro ‘__compiler_offsetof’
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^
./include/linux/kbuild.h:10:14: note: in expansion of macro ‘offsetof’
DEFINE(sym, offsetof(struct str, mem))
^
arch/x86/kernel/asm-offsets.c:38:2: note: in expansion of macro ‘OFFSET’
OFFSET(TASK_addr_limit, task_struct, tinfo.addr_limit);
^
Kbuild:81: recipe for target 'arch/x86/kernel/asm-offsets.s' failed
make[3]: *** [arch/x86/kernel/asm-offsets.s] Error 1
Makefile:1023: recipe for target 'prepare0' failed
make[2]: *** [prepare0] Error 2
make[2]: Leaving directory '/home/simon/kernel/linux-4.8.15'
debian/ruleset/targets/common.mk:194: recipe for target 'debian/stamp/conf/kernel-conf' failed
make[1]: *** [debian/stamp/conf/kernel-conf] Error 2
make[1]: Leaving directory '/home/simon/kernel/linux-4.8.15'
/usr/share/kernel-package/ruleset/minimal.mk:93: recipe for target 'debian/stamp/conf/minimal_debian' failed
make: *** [debian/stamp/conf/minimal_debian] Error 2
Failed to create a ./debian directory: at /usr/bin/make-kpkg line 970.
real 0m50.020s
user 0m37.668s
sys 0m5.276s
|