[ltp] tp-smapi module dkms install error with grsecurity patched kernel

Sean Behan linux-thinkpad@linux-thinkpad.org
Sat, 16 Jul 2016 01:47:02 -0400


--dTy3Mrz/UPE2dbVg
Content-Type: multipart/mixed; boundary="IS0zKkzwUGydFO0o"
Content-Disposition: inline


--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

I recently installed a package from the Arch Linux User repositories
called tp_smapi-dkms. You can see how it installed in it's PKGBUILD here
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=tp_smapi-dkms

It installs correctly, and dkms installs it correctly for my regular
vanilla kernel, but I have issues when adding it to my grsecurity
patched kernel.

<pre><code>
/home/codebam$ sudo dkms install -m tp_smapi-dkms -v 0.42 -k
4.6.4.201607112205-1-grsec

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make KERNELRELEASE=4.6.4.201607112205-1-grsec
KVER=4.6.4.201607112205-1-grsec HDAPS=1...(bad exit status: 2)
Error! Bad return status for module build on kernel:
4.6.4.201607112205-1-grsec (x86_64)
Consult /var/lib/dkms/tp_smapi-dkms/0.42/build/make.log for more
information.
/home/codebam$
</code></pre>

I attached the make.log that's referenced there as an attachment. Any
help would be appreciated.

Thanks,

Sean Behan

--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="make.log"
Content-Transfer-Encoding: quoted-printable

DKMS make.log for tp_smapi-dkms-0.42 for kernel 4.6.4.201607112205-1-grsec =
(x86_64)
Sat Jul 16 01:31:14 EDT 2016
make -C /usr/lib/modules/4.6.4.201607112205-1-grsec/build M=3D/var/lib/dkms=
/tp_smapi-dkms/0.42/build O=3D/usr/lib/modules/4.6.4.201607112205-1-grsec/b=
uild modules
make[1]: Entering directory '/usr/lib/modules/4.6.4.201607112205-1-grsec/bu=
ild'
make[2]: Entering directory '/usr/lib/modules/4.6.4.201607112205-1-grsec/bu=
ild'
  CC [M]  /var/lib/dkms/tp_smapi-dkms/0.42/build/thinkpad_ec.o
/var/lib/dkms/tp_smapi-dkms/0.42/build/thinkpad_ec.o: warning: objtool: thi=
nkpad_ec_exit(): can't find starting instruction
  CC [M]  /var/lib/dkms/tp_smapi-dkms/0.42/build/tp_smapi.o
/var/lib/dkms/tp_smapi-dkms/0.42/build/tp_smapi.o: warning: objtool: tp_exi=
t(): can't find starting instruction
  CC [M]  /var/lib/dkms/tp_smapi-dkms/0.42/build/hdaps.o
/var/lib/dkms/tp_smapi-dkms/0.42/build/hdaps.c:738:33: error: constified va=
riable =E2=80=98hdaps_whitelist=E2=80=99 placed into writable section ".ini=
t.data"
 struct dmi_system_id __initdata hdaps_whitelist[] =3D {
                                 ^~~~~~~~~~~~~~~
make[3]: *** [/usr/lib/modules/4.6.4.201607112205-1-grsec/build/scripts/Mak=
efile.build:298: /var/lib/dkms/tp_smapi-dkms/0.42/build/hdaps.o] Error 1
make[2]: *** [/usr/lib/modules/4.6.4.201607112205-1-grsec/build/Makefile:14=
37: _module_/var/lib/dkms/tp_smapi-dkms/0.42/build] Error 2
make[2]: Leaving directory '/usr/lib/modules/4.6.4.201607112205-1-grsec/bui=
ld'
make[1]: *** [Makefile:146: sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.6.4.201607112205-1-grsec/bui=
ld'
make: *** [Makefile:46: modules] Error 2

--IS0zKkzwUGydFO0o--

--dTy3Mrz/UPE2dbVg
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXicpQAAoJEJkpCQpBmcmTfkMQAIzWx0DGud+HhSZqcN7v8HMv
i/MZ22a4Ompaa5bmG4rn395GuzzelfhN5dgA9FW3SZ8IZdo1aX4oy3C/GIAgHwQ6
KpkQkkH/kwMzrOsVEqZ6eA0i+J8Aw1Xli0J8UpytEQa+XTO6T9t3bZstBKrYPgLJ
QOahOxCcKVnz0ghFqwePF0PIBKnP/V1pVOeMvke1BoDjtP85UC/av03swxqSDJF3
252xMHWmocmD1l8hai1pnVbdxtFzvePdLjEPDri6NyL+uE0ziO7qFBpGZf4FOxtS
A8DDEdlVJbM4nPCzuNcSCNtIADODn53a1cNy8T8aZxz5BNzrRdnj52mCFDEjnfDK
9+KeXWO/oEwjt3h4VfafD0eFl22E6jF9/HftxfPEVNCKoPCOFuoYgC9vV8UFEU1d
klPrnfGqWha1psTi16I+uOhIvIyU+V01hnAkbVvmxMroMLH1ZgoQtjpRQ5p8qzW9
BZi+t9Gvhz/JOPxiK0vcEB8KX7c8Ol7Q86TPVYtew8FzVbl9WJ7kPo799144FN0k
jlj0dUxDKd4gRil05MLxCEUKuBdX0w61bIPy4jZFKGsyyQyBgyVTPVORA5pWhO35
h8AWvOi91eeViN9aFtG9DO9bSXhjXnBz5993S6Su90qA6TxDN84S7/mNhkunTql4
wwGru9Eru6tPHNu5s1WY
=fISY
-----END PGP SIGNATURE-----

--dTy3Mrz/UPE2dbVg--