Re: [PATCH net v3] ipv6: sr: fix several BUGs when preemption is enabled

2017-01-13 Thread David Miller
From: David Lebrun Date: Thu, 12 Jan 2017 21:30:01 +0100 > When CONFIG_PREEMPT=y, CONFIG_IPV6=m and CONFIG_SEG6_HMAC=y, > seg6_hmac_init() is called during the initialization of the ipv6 module. > This causes a subsequent call to smp_processor_id() with preemption >

[PATCH net v3] ipv6: sr: fix several BUGs when preemption is enabled

2017-01-12 Thread David Lebrun
When CONFIG_PREEMPT=y, CONFIG_IPV6=m and CONFIG_SEG6_HMAC=y, seg6_hmac_init() is called during the initialization of the ipv6 module. This causes a subsequent call to smp_processor_id() with preemption enabled, resulting in the following trace. [ 20.451460] BUG: using smp_processor_id() in