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  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]
Date:	Thu, 15 Apr 2010 15:47:26 +0800
From:	Changli Gao <>
To:	David Miller <>
Subject: Re: BUG: using smp_processor_id() in preemptible [00000000] code: 
	avahi-daemon: caller is netif_rx

On Thu, Apr 15, 2010 at 3:37 PM, David Miller <> wrote:
> From: Changli Gao <>
> Date: Thu, 15 Apr 2010 15:30:44 +0800
>> Should netif_rx() be used only when preemption is disabled? If not,
>> netif_rx_ni() should be used instead.?
> netif_rx() must be invoked from a hardware or software interrupt,
> which implies preemption disabled.
> In netif_rx_ni(), the "ni" means "not interrupt".

yea, I know netif_rx_ni()'s meaning. It means that the following
changes aren't necessary.

-       cpu = smp_processor_id();
+       ret = enqueue_to_backlog(skb, get_cpu());
+       put_cpu();

ret = enqueue_to_backlog(skb, smp_processor_id()); should be OK.

-       return enqueue_to_backlog(skb, cpu);
+       return ret;
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists