Re: [LKP] Re: [netfilter] e32a4dc651: BUG:using_smp_processor_id()in_preemptible

From: Liu Yiding
Date: Thu Jun 04 2020 - 20:16:16 EST


Hi,

On 6/5/20 6:23 AM, Stefano Brivio wrote:
Hi,

On Wed, 3 Jun 2020 16:49:34 +0800
kernel test robot <lkp@xxxxxxxxx> wrote:

Greeting,

FYI, we noticed the following commit (built with gcc-7):

commit: e32a4dc6512ce3c1a1920531246e7037896e510a ("netfilter: nf_tables: make sets built-in")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: kernel-selftests
with following parameters:

group: kselftests-netfilter
I couldn't find this information in the report. Would it be possible to
have here an indication of what kselftest specifically is failing?
There are a number of tests in that group. I have an obvious suspicion
here (nft_concat_range.sh), but it would be nice to know, in general.


Yes, it's nft_concat_range.sh caused this error.

```

[Â 165.249447] # selftests: netfilter: nft_concat_range.sh
[Â 165.249453]
[Â 165.295336] # TEST: reported issues
[Â 165.295342]
[Â 165.316525] BUG: using smp_processor_id() in preemptible [00000000] code: nft/6247
[Â 165.319547] caller is nft_pipapo_insert+0x464/0x610 [nf_tables]
[Â 165.321846] CPU: 1 PID: 6247 Comm: nft Not tainted 5.6.0-rc5-01595-ge32a4dc6512ce3 #1

```


And i think this error is caused by some kconfigs.

This test was passed until we enabled all kconfigs defined in netfilter/config. :-(



[...]

[ 165.316525] BUG: using smp_processor_id() in preemptible [00000000] code: nft/6247
[ 165.319547] caller is nft_pipapo_insert+0x464/0x610 [nf_tables]
I'll take care of this, thanks Florian for forwarding.

--
Best regards.
Liu Yiding