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

Build error with SMB1, 6.6 kernel #505

Open
romanovj opened this issue Mar 10, 2025 · 0 comments
Open

Build error with SMB1, 6.6 kernel #505

romanovj opened this issue Mar 10, 2025 · 0 comments

Comments

@romanovj
Copy link

../ksmbd-20250310/smb1pdu.c:864:14: error: implicit declaration of function 'ksmbd_vfs_kern_path'; did you mean 'ksmbd_vfs_zero_data'? [-Werror=implicit-function-declaration]
  864 |         rc = ksmbd_vfs_kern_path(work, newname, LOOKUP_NO_SYMLINKS, &path, 1);
      |              ^~~~~~~~~~~~~~~~~~~
      |              ksmbd_vfs_zero_data
../ksmbd-20250310/smb1pdu.c:890:14: error: implicit declaration of function 'ksmbd_vfs_fp_rename'; did you mean 'ksmbd_vfs_rename'? [-Werror=implicit-function-declaration]
  890 |         rc = ksmbd_vfs_fp_rename(work, fp, newname);
      |              ^~~~~~~~~~~~~~~~~~~
      |              ksmbd_vfs_rename
In file included from ./include/linux/string.h:294,
                 from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/spinlock.h:63,
                 from ./include/linux/wait.h:9,
                 from ./include/linux/wait_bit.h:8,
                 from ./include/linux/fs.h:6,
                 from ../ksmbd-20250310/smb1pdu.c:7:
In function 'fortify_memset_chk',
    inlined from 'query_file_info_pipe' at ../ksmbd-20250310/smb1pdu.c:6833:2,
    inlined from 'query_file_info' at ../ksmbd-20250310/smb1pdu.c:6872:10:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_file_info' at ../ksmbd-20250310/smb1pdu.c:6917:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_file_info' at ../ksmbd-20250310/smb1pdu.c:6952:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_file_info' at ../ksmbd-20250310/smb1pdu.c:6991:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_file_info' at ../ksmbd-20250310/smb1pdu.c:7023:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_file_info' at ../ksmbd-20250310/smb1pdu.c:7037:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_file_info' at ../ksmbd-20250310/smb1pdu.c:7098:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4220:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4283:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4318:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4357:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4371:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4433:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4506:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4568:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'smb_readlink' at ../ksmbd-20250310/smb1pdu.c:3980:2,
    inlined from 'query_path_info' at ../ksmbd-20250310/smb1pdu.c:4576:8:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memcpy_chk',
    inlined from 'set_service_type' at ../ksmbd-20250310/smb1pdu.c:461:3,
    inlined from 'smb_tree_connect_andx' at ../ksmbd-20250310/smb1pdu.c:593:2:
./include/linux/fortify-string.h:597:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  597 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memcpy_chk',
    inlined from 'set_service_type' at ../ksmbd-20250310/smb1pdu.c:469:3,
    inlined from 'smb_tree_connect_andx' at ../ksmbd-20250310/smb1pdu.c:593:2:
./include/linux/fortify-string.h:597:25: error: call to '__write_overflow_field' declared with attribute warning: detected write
beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  597 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'build_sess_rsp_extsec' at ../ksmbd-20250310/smb1pdu.c:1160:3,
    inlined from 'smb_session_setup_andx' at ../ksmbd-20250310/smb1pdu.c:1358:8:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write
beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'smb_nt_create_andx' at ../ksmbd-20250310/smb1pdu.c:2407:4:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'smb_nt_create_andx' at ../ksmbd-20250310/smb1pdu.c:2525:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'smb_nt_create_andx' at ../ksmbd-20250310/smb1pdu.c:2541:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write
beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'smb_nt_create_andx' at ../ksmbd-20250310/smb1pdu.c:2566:4:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'smb_open_andx' at ../ksmbd-20250310/smb1pdu.c:8323:3:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fortify_memset_chk',
    inlined from 'smb_open_andx' at ../ksmbd-20250310/smb1pdu.c:8386:4:
./include/linux/fortify-string.h:507:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  507 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors```
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

No branches or pull requests

1 participant