Skip to content

Commit fe3be8c

Browse files
committed
Merge branch 'master' of https://github.com/torvalds/linux
2 parents c169910 + c072629 commit fe3be8c

111 files changed

Lines changed: 1160 additions & 487 deletions

File tree

Some content is hidden

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

‎CREDITS‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,6 +2231,10 @@ S: Markham, Ontario
22312231
S: L3R 8B2
22322232
S: Canada
22332233

2234+
N: Krzysztof Kozlowski
2235+
E: krzk@kernel.org
2236+
D: NFC network subsystem and drivers maintainer
2237+
22342238
N: Christian Krafft
22352239
D: PowerPC Cell support
22362240

‎Documentation/netlink/specs/fou.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ attribute-sets:
3939
-
4040
name: ipproto
4141
type: u8
42+
checks:
43+
min: 1
4244
-
4345
name: type
4446
type: u8

‎Documentation/process/maintainer-netdev.rst‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,18 @@ just do it. As a result, a sequence of smaller series gets merged quicker and
363363
with better review coverage. Re-posting large series also increases the mailing
364364
list traffic.
365365

366+
Limit patches outstanding on mailing list
367+
-----------------------------------------
368+
369+
Avoid having more than 15 patches, across all series, outstanding for
370+
review on the mailing list for a single tree. In other words, a maximum of
371+
15 patches under review on net, and a maximum of 15 patches under review on
372+
net-next.
373+
374+
This limit is intended to focus developer effort on testing patches before
375+
upstream review. Aiding the quality of upstream submissions, and easing the
376+
load on reviewers.
377+
366378
.. _rcs:
367379

368380
Local variable ordering ("reverse xmas tree", "RCS")

‎MAINTAINERS‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18486,9 +18486,8 @@ F: include/uapi/linux/nexthop.h
1848618486
F: net/ipv4/nexthop.c
1848718487

1848818488
NFC SUBSYSTEM
18489-
M: Krzysztof Kozlowski <krzk@kernel.org>
1849018489
L: netdev@vger.kernel.org
18491-
S: Maintained
18490+
S: Orphan
1849218491
F: Documentation/devicetree/bindings/net/nfc/
1849318492
F: drivers/nfc/
1849418493
F: include/net/nfc/

‎arch/x86/mm/fault.c‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,6 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code,
821821
force_sig_pkuerr((void __user *)address, pkey);
822822
else
823823
force_sig_fault(SIGSEGV, si_code, (void __user *)address);
824-
825-
local_irq_disable();
826824
}
827825

828826
static noinline void
@@ -1474,15 +1472,12 @@ handle_page_fault(struct pt_regs *regs, unsigned long error_code,
14741472
do_kern_addr_fault(regs, error_code, address);
14751473
} else {
14761474
do_user_addr_fault(regs, error_code, address);
1477-
/*
1478-
* User address page fault handling might have reenabled
1479-
* interrupts. Fixing up all potential exit points of
1480-
* do_user_addr_fault() and its leaf functions is just not
1481-
* doable w/o creating an unholy mess or turning the code
1482-
* upside down.
1483-
*/
1484-
local_irq_disable();
14851475
}
1476+
/*
1477+
* page fault handling might have reenabled interrupts,
1478+
* make sure to disable them again.
1479+
*/
1480+
local_irq_disable();
14861481
}
14871482

14881483
DEFINE_IDTENTRY_RAW_ERRORCODE(exc_page_fault)

‎crypto/authencesn.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ static int crypto_authenc_esn_encrypt(struct aead_request *req)
169169
struct scatterlist *src, *dst;
170170
int err;
171171

172+
if (assoclen < 8)
173+
return -EINVAL;
174+
172175
sg_init_table(areq_ctx->src, 2);
173176
src = scatterwalk_ffwd(areq_ctx->src, req->src, assoclen);
174177
dst = src;
@@ -256,6 +259,9 @@ static int crypto_authenc_esn_decrypt(struct aead_request *req)
256259
u32 tmp[2];
257260
int err;
258261

262+
if (assoclen < 8)
263+
return -EINVAL;
264+
259265
cryptlen -= authsize;
260266

261267
if (req->src != dst)

‎drivers/dpll/dpll_core.c‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ dpll_xa_ref_pin_add(struct xarray *xa_pins, struct dpll_pin *pin,
8383
if (ref->pin != pin)
8484
continue;
8585
reg = dpll_pin_registration_find(ref, ops, priv, cookie);
86-
if (reg) {
87-
refcount_inc(&ref->refcount);
88-
return 0;
89-
}
86+
if (reg)
87+
return -EEXIST;
9088
ref_exists = true;
9189
break;
9290
}
@@ -164,10 +162,8 @@ dpll_xa_ref_dpll_add(struct xarray *xa_dplls, struct dpll_device *dpll,
164162
if (ref->dpll != dpll)
165163
continue;
166164
reg = dpll_pin_registration_find(ref, ops, priv, cookie);
167-
if (reg) {
168-
refcount_inc(&ref->refcount);
169-
return 0;
170-
}
165+
if (reg)
166+
return -EEXIST;
171167
ref_exists = true;
172168
break;
173169
}

‎drivers/isdn/mISDN/timerdev.c‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off)
109109
spin_unlock_irq(&dev->lock);
110110
if (filep->f_flags & O_NONBLOCK)
111111
return -EAGAIN;
112-
wait_event_interruptible(dev->wait, (dev->work ||
112+
wait_event_interruptible(dev->wait, (READ_ONCE(dev->work) ||
113113
!list_empty(list)));
114114
if (signal_pending(current))
115115
return -ERESTARTSYS;
116116
spin_lock_irq(&dev->lock);
117117
}
118118
if (dev->work)
119-
dev->work = 0;
119+
WRITE_ONCE(dev->work, 0);
120120
if (!list_empty(list)) {
121121
timer = list_first_entry(list, struct mISDNtimer, list);
122122
list_del(&timer->list);
@@ -141,13 +141,16 @@ mISDN_poll(struct file *filep, poll_table *wait)
141141
if (*debug & DEBUG_TIMER)
142142
printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait);
143143
if (dev) {
144+
u32 work;
145+
144146
poll_wait(filep, &dev->wait, wait);
145147
mask = 0;
146-
if (dev->work || !list_empty(&dev->expired))
148+
work = READ_ONCE(dev->work);
149+
if (work || !list_empty(&dev->expired))
147150
mask |= (EPOLLIN | EPOLLRDNORM);
148151
if (*debug & DEBUG_TIMER)
149152
printk(KERN_DEBUG "%s work(%d) empty(%d)\n", __func__,
150-
dev->work, list_empty(&dev->expired));
153+
work, list_empty(&dev->expired));
151154
}
152155
return mask;
153156
}
@@ -172,7 +175,7 @@ misdn_add_timer(struct mISDNtimerdev *dev, int timeout)
172175
struct mISDNtimer *timer;
173176

174177
if (!timeout) {
175-
dev->work = 1;
178+
WRITE_ONCE(dev->work, 1);
176179
wake_up_interruptible(&dev->wait);
177180
id = 0;
178181
} else {

‎drivers/leds/led-class.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -560,11 +560,6 @@ int led_classdev_register_ext(struct device *parent,
560560
#ifdef CONFIG_LEDS_BRIGHTNESS_HW_CHANGED
561561
led_cdev->brightness_hw_changed = -1;
562562
#endif
563-
/* add to the list of leds */
564-
down_write(&leds_list_lock);
565-
list_add_tail(&led_cdev->node, &leds_list);
566-
up_write(&leds_list_lock);
567-
568563
if (!led_cdev->max_brightness)
569564
led_cdev->max_brightness = LED_FULL;
570565

@@ -574,6 +569,11 @@ int led_classdev_register_ext(struct device *parent,
574569

575570
led_init_core(led_cdev);
576571

572+
/* add to the list of leds */
573+
down_write(&leds_list_lock);
574+
list_add_tail(&led_cdev->node, &leds_list);
575+
up_write(&leds_list_lock);
576+
577577
#ifdef CONFIG_LEDS_TRIGGERS
578578
led_trigger_set_default(led_cdev);
579579
#endif

‎drivers/net/bonding/bond_main.c‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,6 +1862,12 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,
18621862
*/
18631863
if (!bond_has_slaves(bond)) {
18641864
if (bond_dev->type != slave_dev->type) {
1865+
if (slave_dev->type != ARPHRD_ETHER &&
1866+
BOND_MODE(bond) == BOND_MODE_8023AD) {
1867+
SLAVE_NL_ERR(bond_dev, slave_dev, extack,
1868+
"8023AD mode requires Ethernet devices");
1869+
return -EINVAL;
1870+
}
18651871
slave_dbg(bond_dev, slave_dev, "change device type from %d to %d\n",
18661872
bond_dev->type, slave_dev->type);
18671873

@@ -4090,8 +4096,9 @@ static bool bond_flow_dissect(struct bonding *bond, struct sk_buff *skb, const v
40904096
case BOND_XMIT_POLICY_ENCAP23:
40914097
case BOND_XMIT_POLICY_ENCAP34:
40924098
memset(fk, 0, sizeof(*fk));
4093-
return __skb_flow_dissect(NULL, skb, &flow_keys_bonding,
4094-
fk, data, l2_proto, nhoff, hlen, 0);
4099+
return __skb_flow_dissect(dev_net(bond->dev), skb,
4100+
&flow_keys_bonding, fk, data,
4101+
l2_proto, nhoff, hlen, 0);
40954102
default:
40964103
break;
40974104
}

0 commit comments

Comments
 (0)