Andrii Nakryiko writes:
>> Sure, LGTM! Should we still keep the bit where it expands _opts in the
>> struct name as part of the macro, or does that become too obtuse?
>
> For me it's a question of code navigation. When I'll have a code
>
> LIBBPF_OPTS(bpf_object_open, );
>
> I'll want to jump to
Fixes a crash in poll() when an AF_XDP socket is opened in copy mode
and the bound device does not have ndo_xsk_wakeup defined. Avoid
trying to call the non-existing ndo and instead call the internal xsk
sendmsg function to send packets in the same way (from the
application's point of view) as call
On Wed, Oct 2, 2019 at 7:57 AM Daniel Borkmann wrote:
>
> On Mon, Sep 30, 2019 at 03:30:12PM +0200, Magnus Karlsson wrote:
> > Fixes a crash in poll() when an AF_XDP socket is opened in copy mode
> > with the XDP_USE_NEED_WAKEUP flag set and the bound device does not
> > have ndo_xsk_wakeup define
On 26.07.2019 21:05, Heiner Kallweit wrote:
> On 24.07.2019 22:02, Heiner Kallweit wrote:
>> On 24.07.2019 10:19, Jian-Hong Pan wrote:
>>> Hi all,
>>>
>>> We have got a consumer desktop equipped with Realtek RTL8125 2.5GB
>>> Ethernet [1] recently. But, there is no related driver in mainline
>>> k
On 10/2/19 1:16 AM, David Miller wrote:
From: Ka-Cheong Poon
Date: Mon, 30 Sep 2019 02:08:00 -0700
Currently, RDS calls ib_dma_alloc_coherent() to allocate a large piece
of contiguous DMA coherent memory to store struct rds_header for
sending/receiving packets. The memory allocated is then pa
Clean up the net/caif/Kconfig menu:
- remove extraneous space
- minor language tweaks
- fix punctuation
Signed-off-by: Randy Dunlap
Cc: Randy Dunlap
---
net/caif/Kconfig | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
--- lnx-53-caif.orig/net/caif/Kconfig
+++ lnx-53-caif/net
Minor fixes to the CAIF Transport drivers Kconfig file:
- end sentence with period
- capitalize CAIF acronym
Signed-off-by: Randy Dunlap
Cc: Randy Dunlap
---
drivers/net/caif/Kconfig |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- lnx-53-caif.orig/drivers/net/caif/Kconfig
+
Isolate CAIF transport drivers into their own menu.
This cleans up the main Network device support menu,
makes it easier to find the CAIF drivers, and makes it
easier to enable/disable them as a group.
Signed-off-by: Randy Dunlap
Cc: Randy Dunlap
---
drivers/net/caif/Kconfig | 10 +-
This series of patches cleans up the CAIF Kconfig menus in
net/caif/Kconfig and drivers/net/caif/Kconfig and also puts the
CAIF Transport drivers into their own sub-menu.
drivers/net/caif/Kconfig | 16
net/caif/Kconfig | 10 +-
2 files changed, 17 insertion
On Tue, Oct 01, 2019 at 11:24:43AM +0200, Lorenzo Bianconi wrote:
> Add basic XDP support to mvneta driver for devices that rely on software
> buffer management. Currently supported verdicts are:
> - XDP_DROP
> - XDP_PASS
> - XDP_REDIRECT
>
> Signed-off-by: Lorenzo Bianconi
> ---
> drivers/net/e
On Tue, Oct 1, 2019 at 4:44 PM Song Liu wrote:
>
>
>
> > On Oct 1, 2019, at 3:42 PM, Andrii Nakryiko
> > wrote:
> >
> > On Tue, Oct 1, 2019 at 2:46 PM Song Liu wrote:
> >>
> >>
> >>
> >>> On Oct 1, 2019, at 2:25 PM, Andrii Nakryiko
> >>> wrote:
> >>>
> >>> On Tue, Oct 1, 2019 at 2:14 PM Song
On Sun, Sep 29, 2019 at 7:09 PM wrote:
>
> From: Tonghao Zhang
>
> The most case *index < ma->max, we add likely for performance.
>
> Signed-off-by: Tonghao Zhang
> ---
> net/openvswitch/flow_table.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/openvswitch/flow_t
On Sun, Sep 29, 2019 at 7:09 PM wrote:
>
> From: Tonghao Zhang
>
> The full looking up on flow table traverses all mask array.
> If mask-array is too large, the number of invalid flow-mask
> increase, performance will be drop.
>
> This patch optimizes mask-array operation:
>
> * Inserting, insert
On Sun, Sep 29, 2019 at 7:09 PM wrote:
>
> From: Tonghao Zhang
>
> Port the codes to linux upstream and with little changes.
>
> Pravin B Shelar, says:
> | mask caches index of mask in mask_list. On packet recv OVS
> | need to traverse mask-list to get cached mask. Therefore array
> | is better f
On Tue, Oct 1, 2019 at 11:16 PM Björn Töpel wrote:
>
> On Tue, 1 Oct 2019 at 14:33, Masahiro Yamada
> wrote:
> >
> > Hi Bjorn
> >
> > On Tue, Oct 1, 2019 at 7:14 PM Björn Töpel wrote:
> > >
> [...]
> > > subdir-$(CONFIG_SAMPLE_VFS)+= vfs
> > > +subdir-$(CONFIG_SAMPLE_BPF)
From: David Ahern
Date: Mon, 30 Sep 2019 20:28:34 -0700
> From: David Ahern
>
> Rajendra reported a kernel panic when a link was taken down:
...
> addrconf_dad_work is kicked to be scheduled when a device is brought
> up. There is a race between addrcond_dad_work getting scheduled and
> taking
From: Eric Dumazet
Date: Mon, 30 Sep 2019 15:44:44 -0700
> The cited commit exposed an old retransmits_timed_out() bug
> which assumed it could call tcp_model_timeout() with
> TCP_RTO_MIN as rto_base for all states.
>
> But flows in SYN_SENT or SYN_RECV state uses a different
> RTO base (1 sec i
From: Vishal Kulkarni
Date: Tue, 1 Oct 2019 04:07:57 +0530
> When fetching free MSI-X vectors for ULDs, check for the
> error code before accessing MSI-X info array. Otherwise,
> an out-of-bounds access is attempted, which results in
> kernel panic.
>
> Fixes: 94cdb8bb993a ("cxgb4: Add support
From: Nicolas Dichtel
Date: Mon, 30 Sep 2019 18:02:12 +0200
> The goal of the series is to ease nsid allocation from userland.
> The first patch is a preparation work and the second enables to receive the
> new nsid in the answer to RTM_NEWNSID.
The new reply message could break existing apps.
On Mon, Sep 30, 2019 at 09:10:18PM +0800, Xin Long wrote:
> This patch is to fix a NULL-ptr deref crash in selinux_sctp_bind_connect:
>
> [...] kasan: GPF could be caused by NULL-ptr deref or user memory access
> [...] RIP: 0010:selinux_sctp_bind_connect+0x16a/0x230
> [...] Call Trace:
> [
> On Oct 1, 2019, at 3:42 PM, Andrii Nakryiko wrote:
>
> On Tue, Oct 1, 2019 at 2:46 PM Song Liu wrote:
>>
>>
>>
>>> On Oct 1, 2019, at 2:25 PM, Andrii Nakryiko
>>> wrote:
>>>
>>> On Tue, Oct 1, 2019 at 2:14 PM Song Liu wrote:
> On Sep 30, 2019, at 11:58 AM, Andrii Nakr
On Tue, Oct 1, 2019 at 2:49 PM Toke Høiland-Jørgensen wrote:
>
> Andrii Nakryiko writes:
>
> > On Tue, Oct 1, 2019 at 1:42 AM Toke Høiland-Jørgensen
> > wrote:
> >>
> >> Andrii Nakryiko writes:
> >>
> >> > Add new set of bpf_object__open APIs using new approach to optional
> >> > parameters ex
Log vendor error if work requests fail. Vendor error provides
more information that is used for debugging the issue.
Signed-off-by: Sudhakar Dindukurti
Acked-by: Santosh Shilimkar
---
net/rds/ib_recv.c | 5 +++--
net/rds/ib_send.c | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
dif
On Tue, Oct 1, 2019 at 4:31 PM Andrii Nakryiko
wrote:
>
> On Tue, Oct 1, 2019 at 3:45 PM Daniel Borkmann wrote:
> >
> > On Mon, Sep 30, 2019 at 11:58:51AM -0700, Andrii Nakryiko wrote:
> > > Make bpf_helpers.h and bpf_endian.h official part of libbpf. Ensure they
> > > are installed along the oth
Thanks Santosh.
Will send the v2 with the below suggestion
regards,
Sudhakar
On 10/01/2019 04:08 PM, santosh.shilim...@oracle.com wrote:
On 10/1/19 3:41 PM, Sudhakar Dindukurti wrote:
Logs vendor error if work requests fail. Vendor error provides
s/Logs/Log
more information that is used
On Tue, Oct 1, 2019 at 3:45 PM Daniel Borkmann wrote:
>
> On Mon, Sep 30, 2019 at 11:58:51AM -0700, Andrii Nakryiko wrote:
> > Make bpf_helpers.h and bpf_endian.h official part of libbpf. Ensure they
> > are installed along the other libbpf headers.
> >
> > Signed-off-by: Andrii Nakryiko
>
> [...
On 10/1/19 3:41 PM, Sudhakar Dindukurti wrote:
Logs vendor error if work requests fail. Vendor error provides
s/Logs/Log
more information that is used for debugging the issue.
Signed-off-by: Sudhakar Dindukurti
---
rds_ib_mr_cqe_handler() is already patched so good to patch these
two message
On Mon, Sep 30, 2019 at 03:25:03PM -0700, Andrii Nakryiko wrote:
> New release cycle started, let's bump to v0.0.6 proactively.
>
> Acked-by: Song Liu
> Signed-off-by: Andrii Nakryiko
Applied, thanks!
On Tue, Oct 1, 2019 at 1:53 PM Eric Dumazet wrote:
>
> On 10/1/19 1:45 PM, John Ousterhout wrote:
>
> >
> > But this isn't really about socket resource limits (though that is
> > conflated in the implementation); it's about limiting the time spent
> > in a single call to __release_sock, no?
>
> Th
Logs vendor error if work requests fail. Vendor error provides
more information that is used for debugging the issue.
Signed-off-by: Sudhakar Dindukurti
---
net/rds/ib_recv.c | 5 +++--
net/rds/ib_send.c | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/net/rds/ib_recv.c b
On Tue, 1 Oct 2019 22:18:18 +
Alexei Starovoitov wrote:
> > And then you can just format the string from the bpf_trace_printk()
> > into msg, and then have:
> >
> > trace_bpf_print(msg);
>
> It's an interesting idea, but I don't think it can work.
> Please see bpf_trace_printk impleme
On Mon, Sep 30, 2019 at 11:58:51AM -0700, Andrii Nakryiko wrote:
> Make bpf_helpers.h and bpf_endian.h official part of libbpf. Ensure they
> are installed along the other libbpf headers.
>
> Signed-off-by: Andrii Nakryiko
[...]
> new file mode 100644
> index ..fbe28008450f
> --- /de
On Tue, Oct 1, 2019 at 2:46 PM Song Liu wrote:
>
>
>
> > On Oct 1, 2019, at 2:25 PM, Andrii Nakryiko
> > wrote:
> >
> > On Tue, Oct 1, 2019 at 2:14 PM Song Liu wrote:
> >>
> >>
> >>> On Sep 30, 2019, at 11:58 AM, Andrii Nakryiko wrote:
> >>>
> >>> Add few macros simplifying BCC-like multi-leve
From: Xin Long
Date: Mon, 30 Sep 2019 21:10:18 +0800
> This patch is to fix a NULL-ptr deref crash in selinux_sctp_bind_connect:
...
Marcel and Neil, please review.
From: Peter Fink
Date: Mon, 30 Sep 2019 14:04:03 +0200
> From: Peter Fink
>
> Adopt and integrate the feature to pass the MAC address via device tree
> from asix_device.c (03fc5d4) also to other ax88179 based asix chips.
> E.g. the bootloader fills in local-mac-address and the driver will then
On Mon, Sep 30, 2019 at 03:30:12PM +0200, Magnus Karlsson wrote:
> Fixes a crash in poll() when an AF_XDP socket is opened in copy mode
> with the XDP_USE_NEED_WAKEUP flag set and the bound device does not
> have ndo_xsk_wakeup defined. Avoid trying to call the non-existing ndo
> and instead call t
On 10/1/19 3:10 PM, Steven Rostedt wrote:
> On Mon, 30 Sep 2019 18:22:28 -0700
> Alexei Starovoitov wrote:
>
>> tracefs is a file system, so clearly file based acls are much better fit
>> for all tracefs operations.
>> But that is not the case for ftrace overall.
>> bpf_trace_printk() calls trace
On Mon, 30 Sep 2019 18:22:28 -0700
Alexei Starovoitov wrote:
> tracefs is a file system, so clearly file based acls are much better fit
> for all tracefs operations.
> But that is not the case for ftrace overall.
> bpf_trace_printk() calls trace_printk() that dumps into trace pipe.
> Technically
Andrii Nakryiko wrote:
> On Tue, Oct 1, 2019 at 12:18 PM John Fastabend
> wrote:
> >
> > Toke Høiland-Jørgensen wrote:
> > >
> > > > +struct bpf_map_def {
> > > > + unsigned int type;
> > > > + unsigned int key_size;
> > > > + unsigned int value_size;
> > > > + unsigned int max_entries;
>
From: Nicolas Dichtel
Date: Mon, 30 Sep 2019 14:02:16 +0200
> Just put related code together to ease code reading: the memcpy() is
> related to the nla_reserve().
>
> Signed-off-by: Nicolas Dichtel
Applied.
From: xiangxia.m@gmail.com
Date: Mon, 30 Sep 2019 01:09:57 +0800
> This series patch optimize openvswitch.
Someone please review this series.
Thank you.
From: Jiri Pirko
Date: Mon, 30 Sep 2019 11:48:13 +0200
> This patchset introduces alternative names for network interfaces.
> Main goal is to:
> 1) Overcome the IFNAMSIZ limitation (altname limitation is 128 bytes)
> 2) Allow to have multiple names at the same time (multiple udev patterns)
> 3) A
Andrii Nakryiko writes:
> On Tue, Oct 1, 2019 at 1:42 AM Toke Høiland-Jørgensen wrote:
>>
>> Andrii Nakryiko writes:
>>
>> > Add new set of bpf_object__open APIs using new approach to optional
>> > parameters extensibility allowing simpler ABI compatibility approach.
>> >
>> > This patch demons
> On Sep 30, 2019, at 11:58 AM, Andrii Nakryiko wrote:
>
> Given introduction of variadic BPF_CORE_READ with slightly different
> syntax and semantics, define CORE_READ, which is a thin wrapper around
> low-level bpf_core_read() macro, which in turn is just a wrapper around
> bpf_probe_read().
> On Oct 1, 2019, at 2:25 PM, Andrii Nakryiko wrote:
>
> On Tue, Oct 1, 2019 at 2:14 PM Song Liu wrote:
>>
>>
>>> On Sep 30, 2019, at 11:58 AM, Andrii Nakryiko wrote:
>>>
>>> Add few macros simplifying BCC-like multi-level probe reads, while also
>>> emitting CO-RE relocations for each re
Currently bpf_get_current_pid_tgid(), is used to do pid filtering in bcc's
scripts but this helper returns the pid as seen by the root namespace which is
fine when a bcc script is not executed inside a container.
When the process of interest is inside a container, pid filtering will not work
if bpf
sync tools/include/uapi/linux/bpf.h to include new helper.
Signed-off-by: Carlos Neira
---
tools/include/uapi/linux/bpf.h | 18 +-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 77c6be96d676..ea8
ns_match returns true if the namespace inode and dev_t matches the ones
provided by the caller.
Signed-off-by: Carlos Neira
---
fs/nsfs.c | 8
include/linux/proc_ns.h | 2 ++
2 files changed, 10 insertions(+)
diff --git a/fs/nsfs.c b/fs/nsfs.c
index a0431642c6b5..256f6295
Self tests added for new helper
Signed-off-by: Carlos Neira
---
tools/testing/selftests/bpf/bpf_helpers.h | 3 +
.../bpf/prog_tests/get_ns_current_pid_tgid.c | 85 +++
.../bpf/progs/get_ns_current_pid_tgid_kern.c | 47 ++
3 files changed, 135 insertions(+)
create
New bpf helper bpf_get_ns_current_pid_tgid,
This helper will return pid and tgid from current task
which namespace matches dev_t and inode number provided,
this will allows us to instrument a process inside a container.
Signed-off-by: Carlos Neira
---
include/linux/bpf.h | 1 +
include/uap
On Tue, Oct 1, 2019 at 12:14 PM John Fastabend wrote:
>
> Andrii Nakryiko wrote:
> > Given introduction of variadic BPF_CORE_READ with slightly different
> > syntax and semantics, define CORE_READ, which is a thin wrapper around
> > low-level bpf_core_read() macro, which in turn is just a wrapper
On Tue, Oct 1, 2019 at 2:19 PM Song Liu wrote:
>
>
>
> > On Sep 30, 2019, at 11:58 AM, Andrii Nakryiko wrote:
> >
> > Make bpf_helpers.h and bpf_endian.h official part of libbpf. Ensure they
> > are installed along the other libbpf headers.
> >
> > Signed-off-by: Andrii Nakryiko
> > ---
> > tool
On Tue, Oct 1, 2019 at 2:14 PM Song Liu wrote:
>
>
> > On Sep 30, 2019, at 11:58 AM, Andrii Nakryiko wrote:
> >
> > Add few macros simplifying BCC-like multi-level probe reads, while also
> > emitting CO-RE relocations for each read.
> >
> > Signed-off-by: Andrii Nakryiko
> > ---
> > tools/lib/b
> On Oct 1, 2019, at 12:19 PM, John Fastabend wrote:
>
> Andrii Nakryiko wrote:
>> Validate BPF_CORE_READ correctness and handling of up to 9 levels of
>> nestedness using cyclic task->(group_leader->)*->tgid chains.
>>
>> Also add a test of maximum-dpeth BPF_CORE_READ_STR_INTO() macro.
>>
>
> On Sep 30, 2019, at 11:58 AM, Andrii Nakryiko wrote:
>
> Make bpf_helpers.h and bpf_endian.h official part of libbpf. Ensure they
> are installed along the other libbpf headers.
>
> Signed-off-by: Andrii Nakryiko
> ---
> tools/lib/bpf/Makefile | 4 +-
> tools/lib/bpf/bpf_endian.h |
> On Sep 30, 2019, at 11:58 AM, Andrii Nakryiko wrote:
>
> Add few macros simplifying BCC-like multi-level probe reads, while also
> emitting CO-RE relocations for each read.
>
> Signed-off-by: Andrii Nakryiko
> ---
> tools/lib/bpf/bpf_helpers.h | 151 +++-
> 1
The introduction of this schedule point was done in commit
2ba2506ca7ca ("[NET]: Add preemption point in qdisc_run")
at a time the loop was not bounded.
Then later in commit d5b8aa1d246f ("net_sched: fix dequeuer fairness")
we added a limit on the number of packets.
Now is the time to remove the
On 10/1/19 1:45 PM, John Ousterhout wrote:
>
> But this isn't really about socket resource limits (though that is
> conflated in the implementation); it's about limiting the time spent
> in a single call to __release_sock, no?
The proxy used is memory usage, not time usage.
cond_resched() or
On Tue, Oct 1, 2019 at 11:34 AM Eric Dumazet wrote:
>
> On 10/1/19 10:25 AM, John Ousterhout wrote:
> > On Tue, Oct 1, 2019 at 9:19 AM Eric Dumazet wrote:
> >> ...
> >> Sorry, I have no idea what is the problem you see.
> >
> > OK, let me try again from the start. Consider two values:
> > * sk->s
From: Eric Dumazet
Date: Tue, 1 Oct 2019 10:49:06 -0700
> tcp_twsk_unique() has a hard coded assumption about ipv4 loopback
> being 127/8
>
> Lets instead use the standard ipv4_is_loopback() method,
> in a new ipv6_addr_v4mapped_loopback() helper.
>
> Signed-off-by: Eric Dumazet
Applied, tha
On Tue, Oct 1, 2019 at 12:18 PM John Fastabend wrote:
>
> Toke Høiland-Jørgensen wrote:
> >
> > > +struct bpf_map_def {
> > > + unsigned int type;
> > > + unsigned int key_size;
> > > + unsigned int value_size;
> > > + unsigned int max_entries;
> > > + unsigned int map_flags;
> > > + u
On Tue, Oct 1, 2019 at 12:10 AM Toke Høiland-Jørgensen wrote:
>
>
> > +struct bpf_map_def {
> > + unsigned int type;
> > + unsigned int key_size;
> > + unsigned int value_size;
> > + unsigned int max_entries;
> > + unsigned int map_flags;
> > + unsigned int inner_map_idx;
>
Andrii Nakryiko wrote:
> Validate BPF_CORE_READ correctness and handling of up to 9 levels of
> nestedness using cyclic task->(group_leader->)*->tgid chains.
>
> Also add a test of maximum-dpeth BPF_CORE_READ_STR_INTO() macro.
>
> Signed-off-by: Andrii Nakryiko
> ---
Acked-by: John Fastabend
The most commonly called function in the driver is long due for a
rename. The "packed" word is redundant (it doesn't make sense to
transfer an unpacked structure, since that is in CPU endianness yadda
yadda), and the "spi" word is also redundant since argument 2 of the
function is SPI_READ or SPI_W
Having a function that takes a variable number of unpacked bytes which
it generically calls an "int" is confusing and makes auditing patches
next to impossible.
We only use spi_send_int with the int sizes of 32 and 64 bits. So just
make the spi_send_int function less generic and replace it with th
This series provides some mechanical cleanup patches related to function
names and prototypes.
Vladimir Oltean (3):
net: dsa: sja1105: Don't use "inline" function declarations in C files
net: dsa: sja1105: Replace sja1105_spi_send_int with
sja1105_xfer_{u32,u64}
net: dsa: sja1105: Rename
Let the compiler decide.
Signed-off-by: Vladimir Oltean
---
drivers/net/dsa/sja1105/sja1105_clocking.c | 2 +-
drivers/net/dsa/sja1105/sja1105_main.c | 7 +++
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/net/dsa/sja1105/sja1105_clocking.c
b/drivers/net/dsa/sja1
Toke Høiland-Jørgensen wrote:
>
> > +struct bpf_map_def {
> > + unsigned int type;
> > + unsigned int key_size;
> > + unsigned int value_size;
> > + unsigned int max_entries;
> > + unsigned int map_flags;
> > + unsigned int inner_map_idx;
> > + unsigned int numa_node;
> > +};
>
> Di
Andrii Nakryiko wrote:
> Given introduction of variadic BPF_CORE_READ with slightly different
> syntax and semantics, define CORE_READ, which is a thin wrapper around
> low-level bpf_core_read() macro, which in turn is just a wrapper around
> bpf_probe_read(). BPF_CORE_READ is higher-level variadic
The struct __dsa_skb_cb is supposed to span the entire 48-byte skb
control block, while the struct dsa_skb_cb only the portion of it which
is used by the DSA core (the rest is available as private data to
drivers).
The DSA_SKB_CB and __DSA_SKB_CB helpers are supposed to help retrieve
this pointer
Andrii Nakryiko wrote:
> Having GCC provide its own bpf-helper.h is not the right approach and is
> going to be changed. Undo bpf_helpers.h change before moving
> bpf_helpers.h into libbpf.
>
> Signed-off-by: Andrii Nakryiko
> ---
> tools/testing/selftests/bpf/bpf_helpers.h | 8
> 1 fil
Andrii Nakryiko wrote:
> Add few macros simplifying BCC-like multi-level probe reads, while also
> emitting CO-RE relocations for each read.
>
> Signed-off-by: Andrii Nakryiko
LGTM.
Acked-by: John Fastabend
Because ptp_qoriq_settime is being called prior to spin_lock_init, the
following stack trace can be seen at driver probe time:
[2.269117] the code is fine but needs lockdep annotation.
[2.274569] turning off the locking correctness validator.
[2.280027] CPU: 1 PID: 1 Comm: swapper/0 No
On Tue, Oct 1, 2019 at 9:48 AM Jesper Dangaard Brouer wrote:
>
> On Mon, 30 Sep 2019 09:42:39 -0700
> Andrii Nakryiko wrote:
>
> > diff --git a/tools/lib/bpf/libbpf_internal.h
> > b/tools/lib/bpf/libbpf_internal.h
> > index 2e83a34f8c79..1cf2cf8d80f3 100644
> > --- a/tools/lib/bpf/libbpf_interna
Otherwise, with CONFIG_DEBUG_SPINLOCK=y, this stack trace gets printed
when enabling RX timestamping and receiving a PTP frame:
[ 318.537078] INFO: trying to register non-static key.
[ 318.542040] the code is fine but needs lockdep annotation.
[ 318.547500] turning off the locking correctness v
Currently this stack trace can be seen with CONFIG_DEBUG_ATOMIC_SLEEP=y:
[ 41.568348] BUG: sleeping function called from invalid context at
kernel/locking/mutex.c:909
[ 41.576757] in_atomic(): 1, irqs_disabled(): 0, pid: 208, name: ptp4l
[ 41.583212] INFO: lockdep is turned off.
[ 41.5871
This series fixes the locking API usage problems spotted when compiling
the kernel with CONFIG_DEBUG_ATOMIC_SLEEP=y and CONFIG_DEBUG_SPINLOCK=y.
Vladimir Oltean (2):
net: dsa: sja1105: Initialize the meta_lock
net: dsa: sja1105: Fix sleeping while atomic in .port_hwtstamp_set
drivers/net/dsa
On Tue, Oct 1, 2019 at 1:42 AM Toke Høiland-Jørgensen wrote:
>
> Andrii Nakryiko writes:
>
> > Add new set of bpf_object__open APIs using new approach to optional
> > parameters extensibility allowing simpler ABI compatibility approach.
> >
> > This patch demonstrates an approach to implementing
On 10/1/19 10:25 AM, John Ousterhout wrote:
> On Tue, Oct 1, 2019 at 9:19 AM Eric Dumazet wrote:
>> ...
>> Sorry, I have no idea what is the problem you see.
>
> OK, let me try again from the start. Consider two values:
> * sk->sk_backlog.len
> * The actual number of bytes in buffers in the cu
On 9/30/19 8:28 PM, David Ahern wrote:
> From: David Ahern
>
> Rajendra reported a kernel panic when a link was taken down:
>
> [ 6870.263084] BUG: unable to handle kernel NULL pointer dereference at
> 00a8
> [ 6870.271856] IP: [] __ipv6_ifa_notify+0x154/0x290
>
>
>
Reviewed-
On Tue, Oct 1, 2019 at 7:31 AM Rudolf Spring wrote:
>
> Hello - Since Kernel Version 5.0 (5.0.x/5.1.x/5.2.x and now 5.3.x) my
> BCM57765 refuses to work correctly. The same system configuration works
> without problems on the latest stable Gentoo 4.19.72 Kernel. So the changes
> from 4.19 to 5.
tcp_twsk_unique() has a hard coded assumption about ipv4 loopback
being 127/8
Lets instead use the standard ipv4_is_loopback() method,
in a new ipv6_addr_v4mapped_loopback() helper.
Signed-off-by: Eric Dumazet
---
include/net/ipv6.h | 5 +
net/ipv4/tcp_ipv4.c | 6 ++
2 files changed, 7
On 10/1/19 10:21 AM, Sudhakar Dindukurti wrote:
From: Dotan Barak
rds_ibdev:ipaddr_list and rds_ibdev:conn_list are initialized
after allocation some resources such as protection domain.
If allocation of such resources fail, then these uninitialized
variables are accessed in rds_ib_dev_free() i
From: Dotan Barak
rds_ibdev:ipaddr_list and rds_ibdev:conn_list are initialized
after allocation some resources such as protection domain.
If allocation of such resources fail, then these uninitialized
variables are accessed in rds_ib_dev_free() in failure path. This
can potentially crash the sys
On Tue, Oct 1, 2019 at 9:19 AM Eric Dumazet wrote:
> ...
> Sorry, I have no idea what is the problem you see.
OK, let me try again from the start. Consider two values:
* sk->sk_backlog.len
* The actual number of bytes in buffers in the current backlog list
Now consider a series of propositions:
From: Ka-Cheong Poon
Date: Mon, 30 Sep 2019 02:08:00 -0700
> Currently, RDS calls ib_dma_alloc_coherent() to allocate a large piece
> of contiguous DMA coherent memory to store struct rds_header for
> sending/receiving packets. The memory allocated is then partitioned
> into struct rds_header.
The experimental root file system support in cifs.ko relies on
ipconfig to set up the network stack and then accessing the SMB share
that contains the rootfs files.
Signed-off-by: Paulo Alcantara (SUSE)
---
net/ipv4/ipconfig.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
dif
Hi,
This patch series enables Linux to mount root file systems over the
network by utilizing SMB protocol.
Upstream commit 8eecd1c2e5bc ("cifs: Add support for root file
systems") introduced a new CONFIG_CIFS_ROOT option, a virtual device
(Root_CIFS) and a kernel cmdline parameter "cifsroot=" whi
Add a new virtual device named /dev/cifs (0xfe) to tell the kernel to
mount the root file system over the network by using SMB protocol.
cifs_root_data() will be responsible to retrieve the parsed
information of the new command-line option (cifsroot=) and then call
do_mount_root() with the appropr
From: Vasundhara Volam
Date: Mon, 30 Sep 2019 11:52:21 +0530
> If any of the param or info_get op returns error, dumpit cb is
> skipping to dump remaining params or info_get ops for all the
> drivers.
>
> Fix to not return if any of the param/info_get op returns error
> as not supported and cont
On Sun, Sep 29, 2019 at 08:54:03PM +0200, Florian Westphal wrote:
> commit 174e23810cd31
> ("sk_buff: drop all skb extensions on free and skb scrubbing") made napi
> recycle always drop skb extensions. The additional skb_ext_del() that is
> performed via nf_reset on napi skb recycle is not needed
On Tue, Oct 01, 2019 at 09:47:08AM -0700, Florian Fainelli wrote:
> On 10/1/19 1:29 AM, Icenowy Zheng wrote:
> > There're some Pine64+ boards known to have broken RTL8211E chips, and
> > a hack is given by Pine64+, which is said to be from Realtek.
> >
> > This patchset adds the hack.
> >
> > The
From: Bjørn Mork
[ Upstream commit 3fe4b3351301660653a2bc73f2226da0ebd2b95e ]
Endpoints with zero wMaxPacketSize are not usable for transferring
data. Ignore such endpoints when looking for valid in, out and
status pipes, to make the driver more robust against invalid and
meaningless descriptors
From: Davide Caratti
[ Upstream commit 92974a1d006ad8b30d53047c70974c9e065eb7df ]
current 'sample' action doesn't push the mac header of ingress packets if
they are received by a layer 3 tunnel (like gre or sit); but it forgot to
check for gre over ipv6, so the following script:
# tc q a dev $
From: Vladimir Oltean
Date: Sun, 29 Sep 2019 02:39:48 +0300
> As explained in the "net: sched: taprio: Avoid division by zero on
> invalid link speed" commit, it is legal for the ethtool API to return
> zero as a link speed. So guard against it to ensure we don't perform a
> division by zero in k
From: Xin Long
[ Upstream commit ba56d8ce38c8252fff5b745db3899cf092578ede ]
Fei Liu reported a crash when doing netperf on a topo of macsec
dev over veth:
[ 448.919128] refcount_t: underflow; use-after-free.
[ 449.090460] Call trace:
[ 449.092895] refcount_sub_and_test+0xb4/0xc0
[
From: Vladimir Oltean
Date: Sun, 29 Sep 2019 02:37:22 +0300
> The check in taprio_set_picos_per_byte is currently not robust enough
> and will trigger this division by zero, due to e.g. PHYLINK not setting
> kset->base.speed when there is no PHY connected:
...
> Russell King points out that the
From: Bjørn Mork
[ Upstream commit 3fe4b3351301660653a2bc73f2226da0ebd2b95e ]
Endpoints with zero wMaxPacketSize are not usable for transferring
data. Ignore such endpoints when looking for valid in, out and
status pipes, to make the driver more robust against invalid and
meaningless descriptors
On Mon, 30 Sep 2019 09:42:39 -0700
Andrii Nakryiko wrote:
> diff --git a/tools/lib/bpf/libbpf_internal.h b/tools/lib/bpf/libbpf_internal.h
> index 2e83a34f8c79..1cf2cf8d80f3 100644
> --- a/tools/lib/bpf/libbpf_internal.h
> +++ b/tools/lib/bpf/libbpf_internal.h
> @@ -47,6 +47,12 @@ do {
From: jcfara...@gmail.com
Date: Tue, 1 Oct 2019 11:39:04 -0300
> From: Julio Faracco
>
> Function netif_schedule_queue() has a hardcoded comparison between queue
> state and any xoff flag. This comparison does the same thing as method
> netif_xmit_stopped(). In terms of code clarity, it is bett
1 - 100 of 156 matches
Mail list logo