kpatch/test/integration/rhel-8.4
Joe Lawrence fed5786932 integration: add rhel-8.4
Rebased to kernel-4.18.0-304.el8.

Note: since RHEL-8.4 dropped klp.arch support, we can now re-enable
those tests that reference static keys defined in vmlinux.

Also, adjust for adjust for ppc64le inlining:

Building gcc-static-local-var-4.patch on ppc64le results in test
failure, as the kpatch .ko now contains a 'free_ioctx' symbol (the test
expects to NOT see one).

From the build log:

  aio.o: changed function: free_ioctx
  aio.o: new function: put_aio_ring_file      << now un-inlined?
  aio.o: changed function: aio_free_ring
  aio.o: changed function: ioctx_alloc
  aio.o: changed function: aio_prep_rw
  aio.o: changed function: aio_read_events
  aio.o: new function: kpatch_aio_foo         << expected new function

and a source code change to free_ioctx():

  % diff -upr \
       <(objdump -D -j .text.free_ioctx ~/.kpatch/tmp/orig/fs/aio.o) \
       <(objdump -D -j .text.free_ioctx ~/.kpatch/tmp/patched/fs/aio.o)

  --- /dev/fd/63  2020-10-26 14:28:18.086236019 -0400
  +++ /dev/fd/62  2020-10-26 14:28:18.086236019 -0400
  @@ -1,5 +1,5 @@

  -/root/.kpatch/tmp/orig/fs/aio.o:     file format elf64-powerpcle
  +/root/.kpatch/tmp/patched/fs/aio.o:     file format elf64-powerpcle

   Disassembly of section .text.free_ioctx:
  @@ -53,7 +53,7 @@ Disassembly of section .text.free_ioctx:
     b0:  00 00 82 3c     addis   r4,r2,0
     b4:  00 00 84 e8     ld      r4,0(r4)
     b8:  78 fb e6 7f     mr      r6,r31
  -  bc:  e0 00 63 38     addi    r3,r3,224
  +  bc:  38 00 63 38     addi    r3,r3,56
     c0:  01 00 00 48     bl      c0 <free_ioctx+0xb8>
     c4:  00 00 00 60     nop
     c8:  70 ff ff 4b     b       38 <free_ioctx+0x30>

Marking put_aio_ring_file() as __always_inline keeps the r3 / 224
offset value, leaving free_ioctx() unchanged.  Since it's no longer
included in the resulting .ko, gcc-static-local-var-4.test will pass
once again.

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
2021-04-20 11:40:59 -04:00
..
bug-table-section.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
cmdline-string-LOADED.test integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
cmdline-string.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
data-new-LOADED.test integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
data-new.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
data-read-mostly.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
fixup-section.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-constprop.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-isra.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-mangled-3.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-static-local-var-2.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-static-local-var-3.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-static-local-var-4.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-static-local-var-4.test integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-static-local-var-5.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
gcc-static-local-var-6.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
macro-callbacks.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
macro-printk.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
meminfo-init-FAIL.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
meminfo-init2-FAIL.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
meminfo-string-LOADED.test integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
meminfo-string.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
module-LOADED.test integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
module.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
multiple.test integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
new-function.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
new-globals.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
parainstructions-section.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
shadow-newpid-LOADED.test integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
shadow-newpid.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
smp-locks-section.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
special-static.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
symvers-disagreement-FAIL.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
tracepoints-section.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00
warn-detect-FAIL.patch integration: add rhel-8.4 2021-04-20 11:40:59 -04:00