Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gen_init_cpio.c #465

Closed
wants to merge 1 commit into from

Conversation

rafaelsagastume
Copy link

Estética para el método cpio_trailer

de esto
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000C00000000TRAILER!!!archangel@archangel:~/Escritorio$

a esto

07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000C00000000TRAILER!!!
archangel@archangel:~/Escritorio$

Estética para el método cpio_trailer

de esto
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000C00000000TRAILER!!!archangel@archangel:~/Escritorio$

a esto

07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000C00000000TRAILER!!!
archangel@archangel:~/Escritorio$
lopsided98 pushed a commit to lopsided98/linux that referenced this pull request May 29, 2019
lkl: disable dpdk build for circle ci
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Aug 26, 2024
Add a test case which attempts to write into .rodata section of the
BPF program, and for comparison this adds test cases also for .bss
and .data section.

Before fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  tester_init:PASS:tester_log_buf 0 nsec
  process_subtest:PASS:obj_open_mem 0 nsec
  process_subtest:PASS:specs_alloc 0 nsec
  run_subtest:PASS:obj_open_mem 0 nsec
  run_subtest:FAIL:unexpected_load_success unexpected success: 0
  torvalds#465/1   verifier_const/rodata: write rejected:FAIL
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:FAIL
  [...]

After fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  torvalds#465/1   verifier_const/rodata: write rejected:OK
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:OK
  [...]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Sep 5, 2024
Add a test case which attempts to write into .rodata section of the
BPF program, and for comparison this adds test cases also for .bss
and .data section.

Before fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  tester_init:PASS:tester_log_buf 0 nsec
  process_subtest:PASS:obj_open_mem 0 nsec
  process_subtest:PASS:specs_alloc 0 nsec
  run_subtest:PASS:obj_open_mem 0 nsec
  run_subtest:FAIL:unexpected_load_success unexpected success: 0
  torvalds#465/1   verifier_const/rodata: write rejected:FAIL
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:FAIL
  [...]

After fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  torvalds#465/1   verifier_const/rodata: write rejected:OK
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:OK
  [...]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Sep 5, 2024
Add a test case which attempts to write into .rodata section of the
BPF program, and for comparison this adds test cases also for .bss
and .data section.

Before fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  tester_init:PASS:tester_log_buf 0 nsec
  process_subtest:PASS:obj_open_mem 0 nsec
  process_subtest:PASS:specs_alloc 0 nsec
  run_subtest:PASS:obj_open_mem 0 nsec
  run_subtest:FAIL:unexpected_load_success unexpected success: 0
  torvalds#465/1   verifier_const/rodata: write rejected:FAIL
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:FAIL
  [...]

After fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  torvalds#465/1   verifier_const/rodata: write rejected:OK
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:OK
  [...]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Sep 6, 2024
Add a test case which attempts to write into .rodata section of the
BPF program, and for comparison this adds test cases also for .bss
and .data section.

Before fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  tester_init:PASS:tester_log_buf 0 nsec
  process_subtest:PASS:obj_open_mem 0 nsec
  process_subtest:PASS:specs_alloc 0 nsec
  run_subtest:PASS:obj_open_mem 0 nsec
  run_subtest:FAIL:unexpected_load_success unexpected success: 0
  torvalds#465/1   verifier_const/rodata: write rejected:FAIL
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:FAIL
  [...]

After fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  torvalds#465/1   verifier_const/rodata: write rejected:OK
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:OK
  [...]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Sep 13, 2024
Add a test case which attempts to write into .rodata section of the
BPF program, and for comparison this adds test cases also for .bss
and .data section.

Before fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  tester_init:PASS:tester_log_buf 0 nsec
  process_subtest:PASS:obj_open_mem 0 nsec
  process_subtest:PASS:specs_alloc 0 nsec
  run_subtest:PASS:obj_open_mem 0 nsec
  run_subtest:FAIL:unexpected_load_success unexpected success: 0
  torvalds#465/1   verifier_const/rodata: write rejected:FAIL
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:FAIL
  [...]

After fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  torvalds#465/1   verifier_const/rodata: write rejected:OK
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:OK
  [...]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
guidosarducci pushed a commit to guidosarducci/linux that referenced this pull request Sep 13, 2024
Add a test case which attempts to write into .rodata section of the
BPF program, and for comparison this adds test cases also for .bss
and .data section.

Before fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  tester_init:PASS:tester_log_buf 0 nsec
  process_subtest:PASS:obj_open_mem 0 nsec
  process_subtest:PASS:specs_alloc 0 nsec
  run_subtest:PASS:obj_open_mem 0 nsec
  run_subtest:FAIL:unexpected_load_success unexpected success: 0
  torvalds#465/1   verifier_const/rodata: write rejected:FAIL
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:FAIL
  [...]

After fix:

  # ./vmtest.sh -- ./test_progs -t verifier_const
  [...]
  ./test_progs -t verifier_const
  torvalds#465/1   verifier_const/rodata: write rejected:OK
  torvalds#465/2   verifier_const/bss: write accepted:OK
  torvalds#465/3   verifier_const/data: write accepted:OK
  torvalds#465     verifier_const:OK
  [...]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240913191754.13290-8-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant