Skip to content

Commit 8f49a65

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: "First batch of fixes in the new merge window: 1) Double dst_cache free in act_tunnel_key, from Wenxu. 2) Avoid NULL deref in IN_DEV_MFORWARD() by failing early in the ip_route_input_rcu() path, from Paolo Abeni. 3) Fix appletalk compile regression, from Arnd Bergmann. 4) If SLAB objects reach the TCP sendpage method we are in serious trouble, so put a debugging check there. From Vasily Averin. 5) Memory leak in hsr layer, from Mao Wenan. 6) Only test GSO type on GSO packets, from Willem de Bruijn. 7) Fix crash in xsk_diag_put_umem(), from Eric Dumazet. 8) Fix VNIC mailbox length in nfp, from Dirk van der Merwe. 9) Fix race in ipv4 route exception handling, from Xin Long. 10) Missing DMA memory barrier in hns3 driver, from Jian Shen. 11) Use after free in __tcf_chain_put(), from Vlad Buslov. 12) Handle inet_csk_reqsk_queue_add() failures, from Guillaume Nault. 13) Return value correction when ip_mc_may_pull() fails, from Eric Dumazet. 14) Use after free in x25_device_event(), also from Eric" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (72 commits) gro_cells: make sure device is up in gro_cells_receive() vxlan: test dev->flags & IFF_UP before calling gro_cells_receive() net/x25: fix use-after-free in x25_device_event() isdn: mISDNinfineon: fix potential NULL pointer dereference net: hns3: fix to stop multiple HNS reset due to the AER changes ip: fix ip_mc_may_pull() return value net: keep refcount warning in reqsk_free() net: stmmac: Avoid one more sometimes uninitialized Clang warning net: dsa: mv88e6xxx: Set correct interface mode for CPU/DSA ports rxrpc: Fix client call queueing, waiting for channel tcp: handle inet_csk_reqsk_queue_add() failures net: ethernet: sun: Zero initialize class in default case in niu_add_ethtool_tcam_entry 8139too : Add support for U.S. Robotics USR997901A 10/100 Cardbus NIC fou, fou6: avoid uninit-value in gue_err() and gue6_err() net: sched: fix potential use-after-free in __tcf_chain_put() vhost: silence an unused-variable warning vsock/virtio: fix kernel panic from virtio_transport_reset_no_sock connector: fix unsafe usage of ->real_parent vxlan: do not need BH again in vxlan_cleanup() net: hns3: add dma_rmb() for rx description ...
2 parents ffd602e + 2a5ff07 commit 8f49a65

75 files changed

Lines changed: 705 additions & 231 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/net/stm32-dwmac.txt‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ Required properties:
1414
- clock-names: Should be "stmmaceth" for the host clock.
1515
Should be "mac-clk-tx" for the MAC TX clock.
1616
Should be "mac-clk-rx" for the MAC RX clock.
17-
For MPU family need to add also "ethstp" for power mode clock and,
18-
"syscfg-clk" for SYSCFG clock.
17+
For MPU family need to add also "ethstp" for power mode clock
1918
- interrupt-names: Should contain a list of interrupt names corresponding to
2019
the interrupts in the interrupts property, if available.
2120
Should be "macirq" for the main MAC IRQ
@@ -24,9 +23,9 @@ Required properties:
2423
encompases the glue register, and the offset of the control register.
2524

2625
Optional properties:
27-
- clock-names: For MPU family "mac-clk-ck" for PHY without quartz
28-
- st,int-phyclk (boolean) : valid only where PHY do not have quartz and need to be clock
29-
by RCC
26+
- clock-names: For MPU family "eth-ck" for PHY without quartz
27+
- st,eth-clk-sel (boolean) : set this property in RGMII PHY when you want to select RCC clock instead of ETH_CLK125.
28+
- st,eth-ref-clk-sel (boolean) : set this property in RMII mode when you have PHY without crystal 50MHz and want to select RCC clock instead of ETH_REF_CLK.
3029

3130
Example:
3231

‎MAINTAINERS‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,8 @@ L: netdev@vger.kernel.org
10591059
S: Odd fixes
10601060
F: drivers/net/appletalk/
10611061
F: net/appletalk/
1062+
F: include/linux/atalk.h
1063+
F: include/uapi/linux/atalk.h
10621064

10631065
APPLIED MICRO (APM) X-GENE DEVICE TREE SUPPORT
10641066
M: Khuong Dinh <khuong@os.amperecomputing.com>

‎arch/arm/boot/dts/stm32h743-pinctrl.dtsi‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,21 @@
173173
};
174174
};
175175

176+
ethernet_rmii: rmii@0 {
177+
pins {
178+
pinmux = <STM32_PINMUX('G', 11, AF11)>,
179+
<STM32_PINMUX('G', 13, AF11)>,
180+
<STM32_PINMUX('G', 12, AF11)>,
181+
<STM32_PINMUX('C', 4, AF11)>,
182+
<STM32_PINMUX('C', 5, AF11)>,
183+
<STM32_PINMUX('A', 7, AF11)>,
184+
<STM32_PINMUX('C', 1, AF11)>,
185+
<STM32_PINMUX('A', 2, AF11)>,
186+
<STM32_PINMUX('A', 1, AF11)>;
187+
slew-rate = <2>;
188+
};
189+
};
190+
176191
usart1_pins: usart1@0 {
177192
pins1 {
178193
pinmux = <STM32_PINMUX('B', 14, AF4)>; /* USART1_TX */

‎arch/arm/boot/dts/stm32h743.dtsi‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,19 @@
513513
status = "disabled";
514514
};
515515
};
516+
517+
mac: ethernet@40028000 {
518+
compatible = "st,stm32-dwmac", "snps,dwmac-4.10a";
519+
reg = <0x40028000 0x8000>;
520+
reg-names = "stmmaceth";
521+
interrupts = <61>;
522+
interrupt-names = "macirq";
523+
clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
524+
clocks = <&rcc ETH1MAC_CK>, <&rcc ETH1TX_CK>, <&rcc ETH1RX_CK>;
525+
st,syscon = <&syscfg 0x4>;
526+
snps,pbl = <8>;
527+
status = "disabled";
528+
};
516529
};
517530
};
518531

‎arch/arm/boot/dts/stm32h743i-disco.dts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,23 @@
6767
clock-frequency = <25000000>;
6868
};
6969

70+
&mac {
71+
status = "disabled";
72+
pinctrl-0 = <&ethernet_rmii>;
73+
pinctrl-names = "default";
74+
phy-mode = "rmii";
75+
phy-handle = <&phy0>;
76+
77+
mdio0 {
78+
#address-cells = <1>;
79+
#size-cells = <0>;
80+
compatible = "snps,dwmac-mdio";
81+
phy0: ethernet-phy@0 {
82+
reg = <0>;
83+
};
84+
};
85+
};
86+
7087
&usart2 {
7188
pinctrl-0 = <&usart2_pins>;
7289
pinctrl-names = "default";

‎arch/arm/boot/dts/stm32h743i-eval.dts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,23 @@
105105
status = "okay";
106106
};
107107

108+
&mac {
109+
status = "disabled";
110+
pinctrl-0 = <&ethernet_rmii>;
111+
pinctrl-names = "default";
112+
phy-mode = "rmii";
113+
phy-handle = <&phy0>;
114+
115+
mdio0 {
116+
#address-cells = <1>;
117+
#size-cells = <0>;
118+
compatible = "snps,dwmac-mdio";
119+
phy0: ethernet-phy@0 {
120+
reg = <0>;
121+
};
122+
};
123+
};
124+
108125
&usart1 {
109126
pinctrl-0 = <&usart1_pins>;
110127
pinctrl-names = "default";

‎drivers/connector/cn_proc.c‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ void proc_coredump_connector(struct task_struct *task)
250250
{
251251
struct cn_msg *msg;
252252
struct proc_event *ev;
253+
struct task_struct *parent;
253254
__u8 buffer[CN_PROC_MSG_SIZE] __aligned(8);
254255

255256
if (atomic_read(&proc_event_num_listeners) < 1)
@@ -262,8 +263,14 @@ void proc_coredump_connector(struct task_struct *task)
262263
ev->what = PROC_EVENT_COREDUMP;
263264
ev->event_data.coredump.process_pid = task->pid;
264265
ev->event_data.coredump.process_tgid = task->tgid;
265-
ev->event_data.coredump.parent_pid = task->real_parent->pid;
266-
ev->event_data.coredump.parent_tgid = task->real_parent->tgid;
266+
267+
rcu_read_lock();
268+
if (pid_alive(task)) {
269+
parent = rcu_dereference(task->real_parent);
270+
ev->event_data.coredump.parent_pid = parent->pid;
271+
ev->event_data.coredump.parent_tgid = parent->tgid;
272+
}
273+
rcu_read_unlock();
267274

268275
memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id));
269276
msg->ack = 0; /* not used */
@@ -276,6 +283,7 @@ void proc_exit_connector(struct task_struct *task)
276283
{
277284
struct cn_msg *msg;
278285
struct proc_event *ev;
286+
struct task_struct *parent;
279287
__u8 buffer[CN_PROC_MSG_SIZE] __aligned(8);
280288

281289
if (atomic_read(&proc_event_num_listeners) < 1)
@@ -290,8 +298,14 @@ void proc_exit_connector(struct task_struct *task)
290298
ev->event_data.exit.process_tgid = task->tgid;
291299
ev->event_data.exit.exit_code = task->exit_code;
292300
ev->event_data.exit.exit_signal = task->exit_signal;
293-
ev->event_data.exit.parent_pid = task->real_parent->pid;
294-
ev->event_data.exit.parent_tgid = task->real_parent->tgid;
301+
302+
rcu_read_lock();
303+
if (pid_alive(task)) {
304+
parent = rcu_dereference(task->real_parent);
305+
ev->event_data.exit.parent_pid = parent->pid;
306+
ev->event_data.exit.parent_tgid = parent->tgid;
307+
}
308+
rcu_read_unlock();
295309

296310
memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id));
297311
msg->ack = 0; /* not used */

‎drivers/isdn/hardware/mISDN/mISDNinfineon.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,11 @@ setup_io(struct inf_hw *hw)
712712
(ulong)hw->addr.start, (ulong)hw->addr.size);
713713
return err;
714714
}
715-
if (hw->ci->addr_mode == AM_MEMIO)
715+
if (hw->ci->addr_mode == AM_MEMIO) {
716716
hw->addr.p = ioremap(hw->addr.start, hw->addr.size);
717+
if (unlikely(!hw->addr.p))
718+
return -ENOMEM;
719+
}
717720
hw->addr.mode = hw->ci->addr_mode;
718721
if (debug & DEBUG_HW)
719722
pr_notice("%s: IO addr %lx (%lu bytes) mode%d\n",

‎drivers/isdn/isdnloop/isdnloop.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ isdnloop_atimeout(isdnloop_card *card, int ch)
570570
char buf[60];
571571

572572
spin_lock_irqsave(&card->isdnloop_lock, flags);
573-
if (card->rcard) {
573+
if (card->rcard[ch]) {
574574
isdnloop_fake(card->rcard[ch], "DDIS_I", card->rch[ch] + 1);
575575
card->rcard[ch]->rcard[card->rch[ch]] = NULL;
576576
card->rcard[ch] = NULL;

‎drivers/net/can/usb/peak_usb/pcan_usb_pro.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static u8 *pcan_msg_init_empty(struct pcan_usb_pro_msg *pm,
127127
/*
128128
* add one record to a message being built
129129
*/
130-
static int pcan_msg_add_rec(struct pcan_usb_pro_msg *pm, u8 id, ...)
130+
static int pcan_msg_add_rec(struct pcan_usb_pro_msg *pm, int id, ...)
131131
{
132132
int len, i;
133133
u8 *pc;

0 commit comments

Comments
 (0)