Skip to content

Comments

kernel: fix Wcalloc-transposed-args#3121

Merged
aviraxp merged 1 commit intotiann:mainfrom
aaaaaaaa-815:patch-1
Dec 30, 2025
Merged

kernel: fix Wcalloc-transposed-args#3121
aviraxp merged 1 commit intotiann:mainfrom
aaaaaaaa-815:patch-1

Conversation

@aaaaaaaa-815
Copy link
Contributor

No description provided.

@aviraxp aviraxp changed the title fix Wcalloc-transposed-args kernel: fix Wcalloc-transposed-args Dec 30, 2025
@aviraxp aviraxp merged commit 521856e into tiann:main Dec 30, 2025
17 checks passed
pershoot pushed a commit to pershoot/KernelSU-Next that referenced this pull request Dec 30, 2025
rifsxd pushed a commit to KernelSU-Next/KernelSU-Next that referenced this pull request Dec 31, 2025
@aaaaaaaa-815 aaaaaaaa-815 deleted the patch-1 branch December 31, 2025 12:04
Sorayukii pushed a commit to Sorayukii/KernelSU-Next that referenced this pull request Jan 4, 2026
Sorayukii pushed a commit to Sorayukii/KernelSU-Next that referenced this pull request Jan 4, 2026
rifsxd pushed a commit to KernelSU-Next/KernelSU-Next that referenced this pull request Jan 4, 2026
….7 (#1047)

* KSU-Next: Debloat

Signed-off-by: Sorayukii <[email protected]>

* kernel: fix Wcalloc-transposed-args (tiann/KernelSU#3121)

* Merge pull request #1035 from pershoot/dev1

kernel, ksud, manager: Remove enhanced security feature (tiann/KernelSU#3123)

* kernel: extras: avc log spoofing

* kernel: extras: base implementation of avc log spoofing

* kernel: extras: properly version out slow_avc_audit_pre_handler

* kernel: extras: add avc spoof to feature
this is a rebase of: KOWX712/KernelSU@4b6f76d

* kernel/extra: replace sensitive context with priv_app
ref: aviraxp/ZN-AuditPatch@a0a46bd

Co-Authored-By: backslashxx <[email protected]>
Co-Authored-By: Wang Han <[email protected]>
Signed-off-by: Sorayukii <[email protected]>

* kernel: ksud: migrate init.rc handling to security_file_permission LSM

devlog

backslashxx/KernelSU@5ba658b...8a6ae25
backslashxx/KernelSU@b7df5d1...754bbd5

Signed-off-by: backslashxx <[email protected]>
Signed-off-by: Sorayukii <[email protected]>

* kernel: Try to fix CONFIG_KSU_ALLOWLIST_WORKAROUND

../drivers/kernelsu/lsm_hooks.c:145:32: error: use of undeclared identifier 'ksu_key_permission'; did you mean 'ksu_inode_permission'?
145 | LSM_HOOK_INIT(key_permission, ksu_key_permission),
| ^~~~~~~~~~~~~~~~~~
| ksu_inode_permission
../include/linux/lsm_hooks.h:2060:57: note: expanded from macro 'LSM_HOOK_INIT'
2060 | { .head = &security_hook_heads.HEAD, .hook = { .HEAD = HOOK } }
| ^~~~
../drivers/kernelsu/lsm_hooks.c:107:5: note: 'ksu_inode_permission' declared here
107 | int ksu_inode_permission(struct inode inode, int mask)
| ^
../drivers/kernelsu/lsm_hooks.c:145:32: error: incompatible function pointer types initializing 'int ()(key_ref_t, const struct cred , unsigned int)' (aka 'int ()(struct __key_reference_with_attributes *, const struct cred *,
unsigned int)') with an expression of type 'int (struct inode *, int)' [-Wincompatible-function-pointer-types]
145 | LSM_HOOK_INIT(key_permission, ksu_key_permission),
| ^~~~~~~~~~~~~~~~~~
2 errors generated.

Signed-off-by: Sorayukii <[email protected]>

---------

Signed-off-by: Sorayukii <[email protected]>
Signed-off-by: backslashxx <[email protected]>
Co-authored-by: libingxuan <[email protected]>
Co-authored-by: pershoot <[email protected]>
Co-authored-by: KOWX712 <[email protected]>
Co-authored-by: backslashxx <[email protected]>
Co-authored-by: Wang Han <[email protected]>
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
slipzryzens pushed a commit to slipzryzens/KernelSU-Next that referenced this pull request Jan 6, 2026
….7 (KernelSU-Next#1047)

* KSU-Next: Debloat

Signed-off-by: Sorayukii <[email protected]>

* kernel: fix Wcalloc-transposed-args (tiann/KernelSU#3121)

* Merge pull request KernelSU-Next#1035 from pershoot/dev1

kernel, ksud, manager: Remove enhanced security feature (tiann/KernelSU#3123)

* kernel: extras: avc log spoofing

* kernel: extras: base implementation of avc log spoofing

* kernel: extras: properly version out slow_avc_audit_pre_handler

* kernel: extras: add avc spoof to feature
this is a rebase of: KOWX712/KernelSU@4b6f76d

* kernel/extra: replace sensitive context with priv_app
ref: aviraxp/ZN-AuditPatch@a0a46bd

Co-Authored-By: backslashxx <[email protected]>
Co-Authored-By: Wang Han <[email protected]>
Signed-off-by: Sorayukii <[email protected]>

* kernel: ksud: migrate init.rc handling to security_file_permission LSM

devlog

backslashxx/KernelSU@5ba658b...8a6ae25
backslashxx/KernelSU@b7df5d1...754bbd5

Signed-off-by: backslashxx <[email protected]>
Signed-off-by: Sorayukii <[email protected]>

* kernel: Try to fix CONFIG_KSU_ALLOWLIST_WORKAROUND

../drivers/kernelsu/lsm_hooks.c:145:32: error: use of undeclared identifier 'ksu_key_permission'; did you mean 'ksu_inode_permission'?
145 | LSM_HOOK_INIT(key_permission, ksu_key_permission),
| ^~~~~~~~~~~~~~~~~~
| ksu_inode_permission
../include/linux/lsm_hooks.h:2060:57: note: expanded from macro 'LSM_HOOK_INIT'
2060 | { .head = &security_hook_heads.HEAD, .hook = { .HEAD = HOOK } }
| ^~~~
../drivers/kernelsu/lsm_hooks.c:107:5: note: 'ksu_inode_permission' declared here
107 | int ksu_inode_permission(struct inode inode, int mask)
| ^
../drivers/kernelsu/lsm_hooks.c:145:32: error: incompatible function pointer types initializing 'int ()(key_ref_t, const struct cred , unsigned int)' (aka 'int ()(struct __key_reference_with_attributes *, const struct cred *,
unsigned int)') with an expression of type 'int (struct inode *, int)' [-Wincompatible-function-pointer-types]
145 | LSM_HOOK_INIT(key_permission, ksu_key_permission),
| ^~~~~~~~~~~~~~~~~~
2 errors generated.

Signed-off-by: Sorayukii <[email protected]>

---------

Signed-off-by: Sorayukii <[email protected]>
Signed-off-by: backslashxx <[email protected]>
Co-authored-by: libingxuan <[email protected]>
Co-authored-by: pershoot <[email protected]>
Co-authored-by: KOWX712 <[email protected]>
Co-authored-by: backslashxx <[email protected]>
Co-authored-by: Wang Han <[email protected]>
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
Olzhas-Kdyr pushed a commit to Olzhas-Kdyr/KernelSU-Next that referenced this pull request Jan 13, 2026
….7 (KernelSU-Next#1047)

* KSU-Next: Debloat

Signed-off-by: Sorayukii <[email protected]>

* kernel: fix Wcalloc-transposed-args (tiann/KernelSU#3121)

* Merge pull request KernelSU-Next#1035 from pershoot/dev1

kernel, ksud, manager: Remove enhanced security feature (tiann/KernelSU#3123)

* kernel: extras: avc log spoofing

* kernel: extras: base implementation of avc log spoofing

* kernel: extras: properly version out slow_avc_audit_pre_handler

* kernel: extras: add avc spoof to feature
this is a rebase of: KOWX712/KernelSU@4b6f76d

* kernel/extra: replace sensitive context with priv_app
ref: aviraxp/ZN-AuditPatch@a0a46bd

Co-Authored-By: backslashxx <[email protected]>
Co-Authored-By: Wang Han <[email protected]>
Signed-off-by: Sorayukii <[email protected]>

* kernel: ksud: migrate init.rc handling to security_file_permission LSM

devlog

backslashxx/KernelSU@5ba658b...8a6ae25
backslashxx/KernelSU@b7df5d1...754bbd5

Signed-off-by: backslashxx <[email protected]>
Signed-off-by: Sorayukii <[email protected]>

* kernel: Try to fix CONFIG_KSU_ALLOWLIST_WORKAROUND

../drivers/kernelsu/lsm_hooks.c:145:32: error: use of undeclared identifier 'ksu_key_permission'; did you mean 'ksu_inode_permission'?
145 | LSM_HOOK_INIT(key_permission, ksu_key_permission),
| ^~~~~~~~~~~~~~~~~~
| ksu_inode_permission
../include/linux/lsm_hooks.h:2060:57: note: expanded from macro 'LSM_HOOK_INIT'
2060 | { .head = &security_hook_heads.HEAD, .hook = { .HEAD = HOOK } }
| ^~~~
../drivers/kernelsu/lsm_hooks.c:107:5: note: 'ksu_inode_permission' declared here
107 | int ksu_inode_permission(struct inode inode, int mask)
| ^
../drivers/kernelsu/lsm_hooks.c:145:32: error: incompatible function pointer types initializing 'int ()(key_ref_t, const struct cred , unsigned int)' (aka 'int ()(struct __key_reference_with_attributes *, const struct cred *,
unsigned int)') with an expression of type 'int (struct inode *, int)' [-Wincompatible-function-pointer-types]
145 | LSM_HOOK_INIT(key_permission, ksu_key_permission),
| ^~~~~~~~~~~~~~~~~~
2 errors generated.

Signed-off-by: Sorayukii <[email protected]>

---------

Signed-off-by: Sorayukii <[email protected]>
Signed-off-by: backslashxx <[email protected]>
Co-authored-by: libingxuan <[email protected]>
Co-authored-by: pershoot <[email protected]>
Co-authored-by: KOWX712 <[email protected]>
Co-authored-by: backslashxx <[email protected]>
Co-authored-by: Wang Han <[email protected]>
Olzhas-Kdyr pushed a commit to Olzhas-Kdyr/KernelSU-Next that referenced this pull request Jan 13, 2026
….7 (KernelSU-Next#1047)

* KSU-Next: Debloat

Signed-off-by: Sorayukii <[email protected]>

* kernel: fix Wcalloc-transposed-args (tiann/KernelSU#3121)

* Merge pull request KernelSU-Next#1035 from pershoot/dev1

kernel, ksud, manager: Remove enhanced security feature (tiann/KernelSU#3123)

* kernel: extras: avc log spoofing

* kernel: extras: base implementation of avc log spoofing

* kernel: extras: properly version out slow_avc_audit_pre_handler

* kernel: extras: add avc spoof to feature
this is a rebase of: KOWX712/KernelSU@4b6f76d

* kernel/extra: replace sensitive context with priv_app
ref: aviraxp/ZN-AuditPatch@a0a46bd

Co-Authored-By: backslashxx <[email protected]>
Co-Authored-By: Wang Han <[email protected]>
Signed-off-by: Sorayukii <[email protected]>

* kernel: ksud: migrate init.rc handling to security_file_permission LSM

devlog

backslashxx/KernelSU@5ba658b...8a6ae25
backslashxx/KernelSU@b7df5d1...754bbd5

Signed-off-by: backslashxx <[email protected]>
Signed-off-by: Sorayukii <[email protected]>

* kernel: Try to fix CONFIG_KSU_ALLOWLIST_WORKAROUND

../drivers/kernelsu/lsm_hooks.c:145:32: error: use of undeclared identifier 'ksu_key_permission'; did you mean 'ksu_inode_permission'?
145 | LSM_HOOK_INIT(key_permission, ksu_key_permission),
| ^~~~~~~~~~~~~~~~~~
| ksu_inode_permission
../include/linux/lsm_hooks.h:2060:57: note: expanded from macro 'LSM_HOOK_INIT'
2060 | { .head = &security_hook_heads.HEAD, .hook = { .HEAD = HOOK } }
| ^~~~
../drivers/kernelsu/lsm_hooks.c:107:5: note: 'ksu_inode_permission' declared here
107 | int ksu_inode_permission(struct inode inode, int mask)
| ^
../drivers/kernelsu/lsm_hooks.c:145:32: error: incompatible function pointer types initializing 'int ()(key_ref_t, const struct cred , unsigned int)' (aka 'int ()(struct __key_reference_with_attributes *, const struct cred *,
unsigned int)') with an expression of type 'int (struct inode *, int)' [-Wincompatible-function-pointer-types]
145 | LSM_HOOK_INIT(key_permission, ksu_key_permission),
| ^~~~~~~~~~~~~~~~~~
2 errors generated.

Signed-off-by: Sorayukii <[email protected]>

---------

Signed-off-by: Sorayukii <[email protected]>
Signed-off-by: backslashxx <[email protected]>
Co-authored-by: libingxuan <[email protected]>
Co-authored-by: pershoot <[email protected]>
Co-authored-by: KOWX712 <[email protected]>
Co-authored-by: backslashxx <[email protected]>
Co-authored-by: Wang Han <[email protected]>
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 14, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 20, 2026
RapliVx pushed a commit to RapliVx/KernelSU that referenced this pull request Jan 26, 2026
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.

2 participants