Re: [PATCH linux-6.12.y] selftests/bpf: Clean up open-coded gettid syscall invocations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ Sasha's backport helper bot ]

Hi,

Summary of potential issues:
⚠️ Found matching upstream commit but patch is missing proper reference to it

Found matching upstream commit: 0e2fb011a0ba8e2258ce776fdf89fbd589c2a3a6

WARNING: Author mismatch between patch and found commit:
Backport author: Alan Maguire<alan.maguire@xxxxxxxxxx>
Commit author: Kumar Kartikeya Dwivedi<memxor@xxxxxxxxx>

Status in newer kernel trees:
6.13.y | Present (exact SHA1)
6.6.y | Not found

Note: The patch differs from the upstream commit:
---
1:  0e2fb011a0ba8 ! 1:  84ebd5e6d67af selftests/bpf: Clean up open-coded gettid syscall invocations
    @@ Commit message
         Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>
         Link: https://lore.kernel.org/r/20241104171959.2938862-3-memxor@xxxxxxxxx
         Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx>
    +    (cherry picked from commit 0e2fb011a0ba8e2258ce776fdf89fbd589c2a3a6)
    +
    +    This backport is needed to build BPF selftests successfully for
    +    linux-6.12.y, as when currently building BPF selftests, the following
    +    error is seen:
    +
    +      TEST-OBJ [test_progs] raw_tp_null.test.o
    +    prog_tests/raw_tp_null.c: In function ‘test_raw_tp_null’:
    +    prog_tests/raw_tp_null.c:15:26: error: implicit declaration of function ‘sys_gettid’; did you mean ‘gettid’? [-Werror=implicit-function-declaration]
    +       15 |         skel->bss->tid = sys_gettid();
    +          |                          ^~~~~~~~~~
    +          |                          gettid
    +    cc1: all warnings being treated as errors
    +
    +    Fixes: abd30e947f70 ("selftests/bpf: Add tests for raw_tp null handling")
    +
    +    Reported-by: Colm Harrington <colm.harrington@xxxxxxxxxx>
    +    Signed-off-by: Alan Maguire <alan.maguire@xxxxxxxxxx>
    +
    +    Conflicts:
    +            tools/testing/selftests/bpf/prog_tests/task_local_storage.c
    +
    +    Conflicts were due to new unrelated context in the upstream version.
     
      ## tools/testing/selftests/bpf/benchs/bench_trigger.c ##
     @@
    @@ tools/testing/selftests/bpf/prog_tests/task_local_storage.c: static void test_re
      	skel->bss->test_pid = 0;
      	task_ls_recursion__detach(skel);
      
    -@@ tools/testing/selftests/bpf/prog_tests/task_local_storage.c: static void test_uptr_basic(void)
    - 	__u64 ev_dummy_data = 1;
    - 	int err;
    - 
    --	my_tid = syscall(SYS_gettid);
    -+	my_tid = sys_gettid();
    - 	parent_task_fd = sys_pidfd_open(my_tid, 0);
    - 	if (!ASSERT_OK_FD(parent_task_fd, "parent_task_fd"))
    - 		return;
     
      ## tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c ##
     @@ tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c: static void *child_thread(void *ctx)
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.12.y       |  Success    |  Success   |




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux