llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [peterz-queue:sched/maybe 1/14] ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported
@ 2023-07-10 17:48 kernel test robot
  2023-07-10 18:26 ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2023-07-10 17:48 UTC (permalink / raw)
  To: Wander Lairson Costa; +Cc: llvm, oe-kbuild-all, Peter Zijlstra

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/maybe
head:   69ff1e365682e2d516364c010b51f8a95140cd94
commit: eb15cb094ddb0227c9dfe5eb836d1a4357f070fd [1/14] kernel/fork: beware of __put_task_struct calling context
config: riscv-randconfig-r042-20230710 (https://download.01.org/0day-ci/archive/20230711/202307110147.tDoRemZ7-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230711/202307110147.tDoRemZ7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307110147.tDoRemZ7-lkp@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

WARNING: modpost: vmlinux: section mismatch in reference: fprop_new_period+0x5f0 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: fprop_new_period+0x618 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: fprop_new_period+0x62c (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: fprop_new_period+0x640 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: fprop_new_period+0x654 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: fprop_new_period+0x662 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0xa6 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0xb0 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0xbc (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0xde (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0xf2 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x102 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x106 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x11a (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x12e (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x13e (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x152 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x164 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x16a (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x178 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_sparse_area+0x17e (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2068 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x206c (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2070 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2082 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2086 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2094 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2098 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x20aa (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x20ae (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x20f4 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2156 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x215a (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2178 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x217c (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x219a (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x219e (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x21bc (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x21c0 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x21e4 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x21e8 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2202 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x2206 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: mas_wr_modify+0x24cc (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: time64_str+0x5a (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x24 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x30 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x44 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x50 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x5c (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x6e (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x7a (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x86 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x25e (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x272 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x28a (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x2a0 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x2b4 (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x2da (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x2ee (section: .text) -> set_reset_devices (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: __xas_nomem+0x302 (section: .text) -> set_reset_devices (section: .init.text)
ERROR: modpost: vmlinux: local symbol 'system_state' was exported
ERROR: modpost: vmlinux: local symbol 'static_key_initialized' was exported
ERROR: modpost: vmlinux: local symbol 'reset_devices' was exported
ERROR: modpost: vmlinux: local symbol 'loops_per_jiffy' was exported
ERROR: modpost: vmlinux: local symbol 'init_uts_ns' was exported
ERROR: modpost: vmlinux: local symbol 'init_task' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_cached_mvendorid' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_cached_marchid' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_cached_mimpid' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_isa_extension_base' was exported
ERROR: modpost: vmlinux: local symbol '__riscv_isa_extension_available' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_get_intc_hwnode' was exported
ERROR: modpost: vmlinux: local symbol '__stack_chk_guard' was exported
ERROR: modpost: vmlinux: local symbol 'pm_power_off' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_timebase' was exported
ERROR: modpost: vmlinux: local symbol 'memset' was exported
ERROR: modpost: vmlinux: local symbol 'memcpy' was exported
ERROR: modpost: vmlinux: local symbol 'memmove' was exported
ERROR: modpost: vmlinux: local symbol 'strcmp' was exported
ERROR: modpost: vmlinux: local symbol 'strlen' was exported
ERROR: modpost: vmlinux: local symbol 'strncmp' was exported
ERROR: modpost: vmlinux: local symbol '__memset' was exported
ERROR: modpost: vmlinux: local symbol '__memcpy' was exported
ERROR: modpost: vmlinux: local symbol '__memmove' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_set_cacheinfo_ops' was exported
ERROR: modpost: vmlinux: local symbol 'kernel_map' was exported
ERROR: modpost: vmlinux: local symbol 'satp_mode' was exported
ERROR: modpost: vmlinux: local symbol 'pgtable_l4_enabled' was exported
ERROR: modpost: vmlinux: local symbol 'pgtable_l5_enabled' was exported
ERROR: modpost: vmlinux: local symbol 'phys_ram_base' was exported
ERROR: modpost: vmlinux: local symbol 'empty_zero_page' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_cbom_block_size' was exported
ERROR: modpost: vmlinux: local symbol 'riscv_cboz_block_size' was exported
ERROR: modpost: vmlinux: local symbol 'arch_wb_cache_pmem' was exported
ERROR: modpost: vmlinux: local symbol 'arch_invalidate_pmem' was exported
ERROR: modpost: vmlinux: local symbol 'lockdep_tasklist_lock_is_held' was exported
ERROR: modpost: vmlinux: local symbol 'free_task' was exported
ERROR: modpost: vmlinux: local symbol '__mmdrop' was exported
ERROR: modpost: vmlinux: local symbol '__put_task_struct' was exported
>> ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported
ERROR: modpost: vmlinux: local symbol 'mmput' was exported
ERROR: modpost: vmlinux: local symbol 'get_task_mm' was exported
ERROR: modpost: vmlinux: local symbol 'panic_timeout' was exported
ERROR: modpost: vmlinux: local symbol 'panic_notifier_list' was exported
ERROR: modpost: vmlinux: local symbol 'panic_blink' was exported
ERROR: modpost: vmlinux: local symbol 'nmi_panic' was exported
ERROR: modpost: vmlinux: local symbol 'panic' was exported
ERROR: modpost: vmlinux: local symbol 'test_taint' was exported
ERROR: modpost: vmlinux: local symbol 'add_taint' was exported
ERROR: modpost: vmlinux: local symbol '__stack_chk_fail' was exported
ERROR: modpost: vmlinux: local symbol '__cpuhp_state_add_instance' was exported
ERROR: modpost: vmlinux: local symbol '__cpuhp_setup_state_cpuslocked' was exported
ERROR: modpost: vmlinux: local symbol '__cpuhp_setup_state' was exported
ERROR: modpost: vmlinux: local symbol '__cpuhp_state_remove_instance' was exported
ERROR: modpost: vmlinux: local symbol '__cpuhp_remove_state_cpuslocked' was exported
ERROR: modpost: vmlinux: local symbol '__cpuhp_remove_state' was exported
ERROR: modpost: vmlinux: local symbol 'cpu_bit_bitmap' was exported
ERROR: modpost: vmlinux: local symbol 'cpu_all_bits' was exported
ERROR: modpost: vmlinux: local symbol '__cpu_possible_mask' was exported
ERROR: modpost: vmlinux: local symbol '__cpu_online_mask' was exported
ERROR: modpost: vmlinux: local symbol '__cpu_present_mask' was exported
ERROR: modpost: vmlinux: local symbol '__cpu_active_mask' was exported
ERROR: modpost: vmlinux: local symbol '__cpu_dying_mask' was exported
ERROR: modpost: vmlinux: local symbol '__num_online_cpus' was exported
ERROR: modpost: vmlinux: local symbol 'cpu_mitigations_off' was exported
ERROR: modpost: vmlinux: local symbol 'cpu_mitigations_auto_nosmt' was exported
ERROR: modpost: vmlinux: local symbol 'rcuwait_wake_up' was exported
ERROR: modpost: vmlinux: local symbol 'thread_group_exited' was exported
ERROR: modpost: vmlinux: local symbol 'abort' was exported
ERROR: modpost: vmlinux: local symbol 'irq_stat' was exported
ERROR: modpost: vmlinux: local symbol 'hardirqs_enabled' was exported
ERROR: modpost: vmlinux: local symbol 'hardirq_context' was exported
ERROR: modpost: vmlinux: local symbol '__local_bh_disable_ip' was exported
ERROR: modpost: vmlinux: local symbol '_local_bh_enable' was exported
ERROR: modpost: vmlinux: local symbol '__local_bh_enable_ip' was exported
ERROR: modpost: vmlinux: local symbol '__tasklet_schedule' was exported
ERROR: modpost: vmlinux: local symbol '__tasklet_hi_schedule' was exported
ERROR: modpost: vmlinux: local symbol 'tasklet_setup' was exported
ERROR: modpost: vmlinux: local symbol 'tasklet_init' was exported
ERROR: modpost: vmlinux: local symbol 'tasklet_kill' was exported
ERROR: modpost: vmlinux: local symbol 'ioport_resource' was exported
ERROR: modpost: vmlinux: local symbol 'iomem_resource' was exported
ERROR: modpost: vmlinux: local symbol 'request_resource' was exported
ERROR: modpost: vmlinux: local symbol 'release_resource' was exported
ERROR: modpost: vmlinux: local symbol 'walk_iomem_res_desc' was exported
ERROR: modpost: vmlinux: local symbol 'page_is_ram' was exported
ERROR: modpost: vmlinux: local symbol 'region_intersects' was exported
ERROR: modpost: vmlinux: local symbol 'allocate_resource' was exported
ERROR: modpost: vmlinux: local symbol 'insert_resource' was exported
ERROR: modpost: vmlinux: local symbol 'insert_resource_expand_to_fit' was exported
ERROR: modpost: vmlinux: local symbol 'remove_resource' was exported
ERROR: modpost: vmlinux: local symbol 'adjust_resource' was exported
ERROR: modpost: vmlinux: local symbol '__request_region' was exported
ERROR: modpost: vmlinux: local symbol '__release_region' was exported
ERROR: modpost: vmlinux: local symbol 'devm_request_resource' was exported
ERROR: modpost: vmlinux: local symbol 'devm_release_resource' was exported
ERROR: modpost: vmlinux: local symbol '__devm_request_region' was exported
ERROR: modpost: vmlinux: local symbol '__devm_release_region' was exported
ERROR: modpost: vmlinux: local symbol 'resource_list_create_entry' was exported
ERROR: modpost: vmlinux: local symbol 'resource_list_free' was exported
ERROR: modpost: vmlinux: local symbol 'sysctl_vals' was exported
ERROR: modpost: vmlinux: local symbol 'sysctl_long_vals' was exported
ERROR: modpost: vmlinux: local symbol 'proc_dobool' was exported
ERROR: modpost: vmlinux: local symbol 'proc_dointvec' was exported
ERROR: modpost: vmlinux: local symbol 'proc_douintvec' was exported
ERROR: modpost: vmlinux: local symbol 'proc_dointvec_jiffies' was exported
ERROR: modpost: vmlinux: local symbol 'proc_dointvec_minmax' was exported
ERROR: modpost: vmlinux: local symbol 'proc_douintvec_minmax' was exported
ERROR: modpost: vmlinux: local symbol 'proc_dointvec_userhz_jiffies' was exported
ERROR: modpost: vmlinux: local symbol 'proc_dointvec_ms_jiffies' was exported
ERROR: modpost: vmlinux: local symbol 'proc_dostring' was exported
ERROR: modpost: vmlinux: local symbol 'proc_doulongvec_minmax' was exported
ERROR: modpost: vmlinux: local symbol 'proc_doulongvec_ms_jiffies_minmax' was exported
ERROR: modpost: vmlinux: local symbol 'proc_do_large_bitmap' was exported
ERROR: modpost: vmlinux: local symbol 'has_capability' was exported
ERROR: modpost: vmlinux: local symbol 'has_capability_noaudit' was exported
ERROR: modpost: vmlinux: local symbol 'ns_capable' was exported
ERROR: modpost: vmlinux: local symbol 'ns_capable_noaudit' was exported
ERROR: modpost: vmlinux: local symbol 'ns_capable_setid' was exported
ERROR: modpost: vmlinux: local symbol 'capable' was exported
ERROR: modpost: vmlinux: local symbol 'file_ns_capable' was exported
ERROR: modpost: vmlinux: local symbol 'capable_wrt_inode_uidgid' was exported
ERROR: modpost: vmlinux: local symbol 'task_user_regset_view' was exported
ERROR: modpost: vmlinux: local symbol 'init_user_ns' was exported
ERROR: modpost: vmlinux: local symbol 'free_uid' was exported
ERROR: modpost: vmlinux: local symbol 'recalc_sigpending' was exported
ERROR: modpost: vmlinux: local symbol 'flush_signals' was exported
ERROR: modpost: vmlinux: local symbol 'dequeue_signal' was exported
ERROR: modpost: vmlinux: local symbol 'kill_pid_usb_asyncio' was exported
ERROR: modpost: vmlinux: local symbol 'send_sig_info' was exported
ERROR: modpost: vmlinux: local symbol 'send_sig' was exported
ERROR: modpost: vmlinux: local symbol 'force_sig' was exported
ERROR: modpost: vmlinux: local symbol 'send_sig_mceerr' was exported
ERROR: modpost: vmlinux: local symbol 'kill_pgrp' was exported
ERROR: modpost: vmlinux: local symbol 'kill_pid' was exported
ERROR: modpost: vmlinux: local symbol 'sigprocmask' was exported
ERROR: modpost: vmlinux: local symbol 'kernel_sigaction' was exported
ERROR: modpost: vmlinux: local symbol 'overflowuid' was exported
ERROR: modpost: vmlinux: local symbol 'overflowgid' was exported
ERROR: modpost: vmlinux: local symbol 'fs_overflowuid' was exported

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [peterz-queue:sched/maybe 1/14] ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported
  2023-07-10 17:48 [peterz-queue:sched/maybe 1/14] ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported kernel test robot
@ 2023-07-10 18:26 ` Peter Zijlstra
  2023-07-10 18:56   ` Nathan Chancellor
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Zijlstra @ 2023-07-10 18:26 UTC (permalink / raw)
  To: kernel test robot; +Cc: Wander Lairson Costa, llvm, oe-kbuild-all

On Tue, Jul 11, 2023 at 01:48:23AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/maybe
> head:   69ff1e365682e2d516364c010b51f8a95140cd94
> commit: eb15cb094ddb0227c9dfe5eb836d1a4357f070fd [1/14] kernel/fork: beware of __put_task_struct calling context
> config: riscv-randconfig-r042-20230710 (https://download.01.org/0day-ci/archive/20230711/202307110147.tDoRemZ7-lkp@intel.com/config)
> compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
> reproduce: (https://download.01.org/0day-ci/archive/20230711/202307110147.tDoRemZ7-lkp@intel.com/reproduce)
> 

> >> ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported

The commit above introduces this function:

+void __put_task_struct_rcu_cb(struct rcu_head *rhp)
+{
+       struct task_struct *task = container_of(rhp, struct task_struct, rcu);
+
+       __put_task_struct(task);
+}
+EXPORT_SYMBOL_GPL(__put_task_struct_rcu_cb);

How the heck does that become a local symbol?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [peterz-queue:sched/maybe 1/14] ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported
  2023-07-10 18:26 ` Peter Zijlstra
@ 2023-07-10 18:56   ` Nathan Chancellor
  2023-07-11  6:50     ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: Nathan Chancellor @ 2023-07-10 18:56 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: kernel test robot, Wander Lairson Costa, llvm, oe-kbuild-all,
	linux-riscv

On Mon, Jul 10, 2023 at 08:26:05PM +0200, Peter Zijlstra wrote:
> On Tue, Jul 11, 2023 at 01:48:23AM +0800, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/maybe
> > head:   69ff1e365682e2d516364c010b51f8a95140cd94
> > commit: eb15cb094ddb0227c9dfe5eb836d1a4357f070fd [1/14] kernel/fork: beware of __put_task_struct calling context
> > config: riscv-randconfig-r042-20230710 (https://download.01.org/0day-ci/archive/20230711/202307110147.tDoRemZ7-lkp@intel.com/config)
> > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
> > reproduce: (https://download.01.org/0day-ci/archive/20230711/202307110147.tDoRemZ7-lkp@intel.com/reproduce)
> > 
> 
> > >> ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported
> 
> The commit above introduces this function:
> 
> +void __put_task_struct_rcu_cb(struct rcu_head *rhp)
> +{
> +       struct task_struct *task = container_of(rhp, struct task_struct, rcu);
> +
> +       __put_task_struct(task);
> +}
> +EXPORT_SYMBOL_GPL(__put_task_struct_rcu_cb);
> 
> How the heck does that become a local symbol?
> 

Looking at the configuration:

CONFIG_32BIT=y
CONFIG_ARCH_RV32I=y

It is highly likely that something is broken with 32-bit RISC-V and
clang, as that is not something we have ever tested. I don't even think
32-bit RISC-V is tested that much even with GCC, so I'm not sure if this
is even worth looking into.

Cheers,
Nathan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [peterz-queue:sched/maybe 1/14] ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported
  2023-07-10 18:56   ` Nathan Chancellor
@ 2023-07-11  6:50     ` Peter Zijlstra
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Zijlstra @ 2023-07-11  6:50 UTC (permalink / raw)
  To: Nathan Chancellor
  Cc: kernel test robot, Wander Lairson Costa, llvm, oe-kbuild-all,
	linux-riscv

On Mon, Jul 10, 2023 at 11:56:57AM -0700, Nathan Chancellor wrote:
> On Mon, Jul 10, 2023 at 08:26:05PM +0200, Peter Zijlstra wrote:
> > On Tue, Jul 11, 2023 at 01:48:23AM +0800, kernel test robot wrote:
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/maybe
> > > head:   69ff1e365682e2d516364c010b51f8a95140cd94
> > > commit: eb15cb094ddb0227c9dfe5eb836d1a4357f070fd [1/14] kernel/fork: beware of __put_task_struct calling context
> > > config: riscv-randconfig-r042-20230710 (https://download.01.org/0day-ci/archive/20230711/202307110147.tDoRemZ7-lkp@intel.com/config)
> > > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
> > > reproduce: (https://download.01.org/0day-ci/archive/20230711/202307110147.tDoRemZ7-lkp@intel.com/reproduce)
> > > 
> > 
> > > >> ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported
> > 
> > The commit above introduces this function:
> > 
> > +void __put_task_struct_rcu_cb(struct rcu_head *rhp)
> > +{
> > +       struct task_struct *task = container_of(rhp, struct task_struct, rcu);
> > +
> > +       __put_task_struct(task);
> > +}
> > +EXPORT_SYMBOL_GPL(__put_task_struct_rcu_cb);
> > 
> > How the heck does that become a local symbol?
> > 
> 
> Looking at the configuration:
> 
> CONFIG_32BIT=y
> CONFIG_ARCH_RV32I=y
> 
> It is highly likely that something is broken with 32-bit RISC-V and
> clang, as that is not something we have ever tested. I don't even think
> 32-bit RISC-V is tested that much even with GCC, so I'm not sure if this
> is even worth looking into.

Fair enough; I'll put it on the ignore list. Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-11  6:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-10 17:48 [peterz-queue:sched/maybe 1/14] ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported kernel test robot
2023-07-10 18:26 ` Peter Zijlstra
2023-07-10 18:56   ` Nathan Chancellor
2023-07-11  6:50     ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).