lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c22262dc-b71c-bc9-b5b6-1abc593bdc4d@linux-m68k.org>
Date:   Sat, 19 Mar 2022 12:16:38 +1100 (AEDT)
From:   Finn Thain <fthain@...ux-m68k.org>
To:     kernel test robot <lkp@...el.com>
cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Michael Ellerman <mpe@...erman.id.au>,
        Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: Re: via-pmu-event.c:undefined reference to `input_event'

On Sat, 19 Mar 2022, kernel test robot wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   551acdc3c3d2b6bc97f11e31dcf960bc36343bfc
> commit: ebd722275f9cfc6752e29d2412fa3816ca05764b macintosh/via-pmu: Replace via-pmu68k driver with via-pmu driver
> date:   3 years, 8 months ago
> config: m68k-randconfig-r021-20220317 (https://download.01.org/0day-ci/archive/20220319/202203190015.8LPNVVK5-lkp@intel.com/config)
> compiler: m68k-linux-gcc (GCC) 11.2.0
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ebd722275f9cfc6752e29d2412fa3816ca05764b
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout ebd722275f9cfc6752e29d2412fa3816ca05764b
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
> 
> All errors (new ones prefixed by >>):
> 
>    m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event':
> >> via-pmu-event.c:(.text+0x32): undefined reference to `input_event'
> >> m68k-linux-ld: via-pmu-event.c:(.text+0x54): undefined reference to `input_event'
>    m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event_init':
> >> via-pmu-event.c:(.init.text+0xe): undefined reference to `input_allocate_device'
> >> m68k-linux-ld: via-pmu-event.c:(.init.text+0x56): undefined reference to `input_register_device'
> >> m68k-linux-ld: via-pmu-event.c:(.init.text+0x68): undefined reference to `input_free_device'

That config file has CONFIG_INPUT=n which is unusual. The problem affects 
m68k builds since I enabled the driver 3 years ago but powerpc builds have 
always been affected by this.

via_pmu_event() does nothing unless the hardware happens to be a 
particular powerpc PMU models but that logic is questionable (see comment 
in via-pmu-event.c). So I think the best solution is to make the 
via_pmu_event() code conditional on CONFIG_INPUT.

I'll send a patch to that effect.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ