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

FATAL: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'perf_trace_buf_alloc' #13535

Closed
hooklab opened this issue Jun 6, 2022 · 1 comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@hooklab
Copy link

hooklab commented Jun 6, 2022

System information

ubuntu Linux 5.8.18 #2 SMP Wed Dec 15 20:56:17 CST 2021 x86_64 x86_64 x86_64 GNU/Linux

Describe the problem you're observing

FATAL: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'perf_trace_buf_alloc'

kernel: module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 0000000029b3b30c, val ffffffffc0fca847

Describe how to reproduce the problem

first: vim META
change : License: GPL
But it doesn't work
then:
vim module/os/linux/zfs/zfs_ioctl_os.c
remove: MODULE_LICENSE("Lua: MIT");
MODULE_LICENSE("zstd: Dual BSD/GPL");
MODULE_LICENSE("Dual BSD/GPL");
just Just keep
MODULE_LICENSE(ZFS_META_LICENSE);
recompile zfs
Compile successfully this time , but modprobe error:
"kernel: module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 0000000029b3b30c, val ffffffffc0fca847"

Include any warning/errors/backtraces from the system logs

FATAL: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'perf_trace_buf_alloc'
@hooklab hooklab added the Type: Defect Incorrect behavior (e.g. crash, hang) label Jun 6, 2022
@hooklab
Copy link
Author

hooklab commented Jun 6, 2022

I know why. I'm shutting it down, okay

@hooklab hooklab closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant