Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.4] Track PF uksmd patches #5

Closed
wants to merge 2,115 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
2115 commits
Select commit Hold shift + click to select a range
d30dce3
mm, debug_pagealloc: don't rely on static keys too early
tehcaster Jan 14, 2020
a8ac2da
btrfs: rework arguments of btrfs_unlink_subvol
josefbacik Dec 18, 2019
d5e3478
btrfs: fix invalid removal of root ref
josefbacik Dec 18, 2019
4c281ce
btrfs: do not delete mismatched root refs
josefbacik Dec 18, 2019
707de9c
btrfs: relocation: fix reloc_root lifespan and access
adam900710 Jan 8, 2020
b25e68d
btrfs: fix memory leak in qgroup accounting
morbidrsa Jan 8, 2020
2f7050c
btrfs: check rw_devices, not num_devices for balance
josefbacik Jan 10, 2020
cef6f2a
Btrfs: always copy scrub arguments back to user space
fdmanana Jan 16, 2020
5147a51
mm/memory_hotplug: don't free usage map when removing a re-added earl…
davidhildenbrand Jan 14, 2020
3687520
mm/page-writeback.c: avoid potential division by zero in wb_min_max_r…
taskset Jan 14, 2020
6943bdd
mm: khugepaged: add trace status description for SCAN_PAGE_HAS_PRIVATE
Jan 14, 2020
42f4578
ARM: dts: imx6qdl-sabresd: Remove incorrect power supply assignment
Anson-Huang Dec 30, 2019
20a7201
ARM: dts: imx6sx-sdb: Remove incorrect power supply assignment
Anson-Huang Dec 30, 2019
ef5eb02
ARM: dts: imx6sl-evk: Remove incorrect power supply assignment
Anson-Huang Dec 30, 2019
f4b47a1
ARM: dts: imx6sll-evk: Remove incorrect power supply assignment
Anson-Huang Dec 30, 2019
34218ec
ARM: dts: imx6q-icore-mipi: Use 1.5 version of i.Core MX6DL
openedev Dec 30, 2019
11675e1
ARM: dts: imx7: Fix Toradex Colibri iMX7S 256MB NAND flash support
ziswiler Jan 8, 2020
77859b5
net: stmmac: 16KB buffer must be 16 byte aligned
joabreu Dec 18, 2019
6b5d161
net: stmmac: Enable 16KB buffer size
joabreu Dec 18, 2019
7ef078e
reset: Fix {of,devm}_reset_control_array_get kerneldoc return types
geertu Nov 20, 2019
f83b957
tipc: fix potential hanging after b/rcast changing
Dec 10, 2019
4e7c55a
tipc: fix retrans failure due to wrong destination
Dec 10, 2019
51ba5eb
net: fix kernel-doc warning in <linux/netdevice.h>
rddunlap Dec 17, 2019
7ecc610
block: Fix the type of 'sts' in bsg_queue_rq()
bvanassche Dec 18, 2019
879043d
drm/amd/display: Reorder detect_edp_sink_caps before link settings read.
kleinerm Jan 9, 2020
a19ed4a
bpf: Fix incorrect verifier simulation of ARSH under ALU32
borkmann Jan 15, 2020
2395bfd
bpf: Sockmap/tls, during free we may call tcp_bpf_unhash() in loop
jrfastab Jan 11, 2020
20ae0cb
bpf: Sockmap, ensure sock lock held during tear down
jrfastab Jan 11, 2020
2aa7a1e
bpf: Sockmap/tls, push write_space updates through ulp updates
jrfastab Jan 11, 2020
b332bff
bpf: Sockmap, skmsg helper overestimates push, pull, and pop bounds
jrfastab Jan 11, 2020
9ae0793
bpf: Sockmap/tls, msg_push_data may leave end mark in place
jrfastab Jan 11, 2020
147fd4d
bpf: Sockmap/tls, tls_sw can create a plaintext buf > encrypt buf
jrfastab Jan 11, 2020
d529d6c
bpf: Sockmap/tls, skmsg can have wrapped skmsg that needs extra chaining
jrfastab Jan 11, 2020
6c95e4f
bpf: Sockmap/tls, fix pop data with SK_DROP return code
jrfastab Jan 11, 2020
836162f
i2c: tegra: Fix suspending in active runtime PM state
digetx Jan 14, 2020
a0885de
i2c: tegra: Properly disable runtime PM on driver's probe error
digetx Jan 14, 2020
6ba1df7
cfg80211: fix deadlocks in autodisconnect work
thillux Jan 8, 2020
9a30704
cfg80211: fix memory leak in nl80211_probe_mesh_link
nbd168 Jan 8, 2020
b7c9d9d
cfg80211: fix memory leak in cfg80211_cqm_rssi_update
nbd168 Jan 8, 2020
98268bf
cfg80211: fix page refcount issue in A-MSDU decap
nbd168 Jan 13, 2020
049e7ab
bpf/sockmap: Read psock ingress_msg before sk_receive_queue
ChenLingPeng Jan 9, 2020
404ece7
i2c: iop3xx: Fix memory leak in probe error path
krzk Jan 13, 2020
7253498
netfilter: fix a use-after-free in mtype_destroy()
congwang Jan 10, 2020
e4650e3
netfilter: arp_tables: init netns pointer in xt_tgdtor_param struct
Jan 11, 2020
cbc0196
netfilter: nat: fix ICMP header corruption on ICMP errors
ebirger Jan 14, 2020
3d49538
netfilter: nft_tunnel: fix null-attribute check
Jan 16, 2020
9da5724
netfilter: nft_tunnel: ERSPAN_VERSION must not be null
Jan 16, 2020
ba8d5b1
netfilter: nf_tables: remove WARN and add NLA_STRING upper limits
Jan 16, 2020
d9b86a8
netfilter: nf_tables: store transaction list locally while requesting…
ummakynes Jan 13, 2020
8f4dc50
netfilter: nf_tables: fix flowtable list del corruption
Jan 16, 2020
a6c89cd
NFC: pn533: fix bulk-message timeout
jhovold Jan 13, 2020
4921b2b
net: bpf: Don't leak time wait and request sockets
lmb Jan 10, 2020
2548a72
bpftool: Fix printing incorrect pointer in btf_dump_ptr
iamkafai Jan 10, 2020
7c69f6a
batman-adv: Fix DAT candidate selection on little endian systems
ecsv Nov 28, 2019
c17e025
macvlan: use skb_reset_mac_header() in macvlan_queue_xmit()
Jan 14, 2020
d391b5c
hv_netvsc: Fix memory leak when removing rndis device
Jan 14, 2020
0e892fd
net: avoid updating qdisc_xmit_lock_key in netdev_update_lockdep_key()
congwang Jan 15, 2020
42667f3
net: dsa: tag_qca: fix doubled Tx statistics
solbjorn Jan 15, 2020
284678e
net: hns3: pad the short frame before sending to the hardware
Jan 15, 2020
8c642ca
net: hns: fix soft lockup when there is not enough memory
liuyonglong86 Jan 16, 2020
8af8396
net: phy: dp83867: Set FORCE_LINK_GOOD to default after reset
mgrzeschik Jan 16, 2020
332967b
net/sched: act_ife: initalize ife->metalist earlier
Jan 15, 2020
04eb36e
net: usb: lan78xx: limit size of local TSO packets
Jan 13, 2020
bb7f182
net/wan/fsl_ucc_hdlc: fix out of bounds write on array utdm_info
Jan 14, 2020
4fd16cf
ptp: free ptp device pin descriptors properly
nefigtut Jan 13, 2020
fdca076
r8152: add missing endpoint sanity check
jhovold Jan 14, 2020
07667c9
tcp: fix marked lost packets not being retransmitted
ws-yangpc Jan 14, 2020
fcbf295
bnxt_en: Fix NTUPLE firmware command failures.
Jan 17, 2020
e2c97ff
bnxt_en: Fix ipv6 RFS filter matching logic.
Jan 17, 2020
698f8c2
bnxt_en: Do not treat DSN (Digital Serial Number) read failure as fatal.
Jan 17, 2020
591c90e
net: ethernet: ave: Avoid lockdep warning
khayash1 Jan 15, 2020
80e06d0
net: systemport: Fixed queue mapping in internal ring map
ffainelli Jan 16, 2020
f668376
net: dsa: sja1105: Don't error out on disabled ports with no phy-mode
vladimiroltean Jan 16, 2020
e3bccc2
net: dsa: tag_gswip: fix typo in tagger name
solbjorn Jan 15, 2020
8c2e822
net: sched: act_ctinfo: fix memory leak
Jan 19, 2020
ff9d571
net: dsa: bcm_sf2: Configure IMP port for 2Gb/sec
ffainelli Jan 16, 2020
97e81f0
i40e: prevent memory leak in i40e_setup_macvlans
Navidem Sep 25, 2019
8742905
drm/amdgpu: allow direct upload save restore list for raven2
Nov 7, 2019
b2f4604
sh_eth: check sh_eth_cpu_data::dual_port when dumping registers
Jan 8, 2020
49d8853
mlxsw: spectrum: Do not modify cloned SKBs during xmit
idosch Jan 15, 2020
6bd1fbc
mlxsw: spectrum: Wipe xstats.backlog of down ports
pmachata Jan 15, 2020
f948b66
mlxsw: spectrum_qdisc: Include MC TCs in Qdisc counters
pmachata Jan 15, 2020
a67039c
net: stmmac: selftests: Make it work in Synopsys AXS101 boards
joabreu Jan 14, 2020
2a3e449
net: stmmac: selftests: Mark as fail when received VLAN ID != expected
joabreu Jan 14, 2020
6084f83
selftests: mlxsw: qos_mc_aware: Fix mausezahn invocation
pmachata Jan 15, 2020
ba1c4fa
net: stmmac: selftests: Update status when disabling RSS
joabreu Jan 10, 2020
79063cb
net: stmmac: tc: Do not setup flower filtering if RSS is enabled
joabreu Jan 10, 2020
e256f8d
devlink: Wait longer before warning about unset port type
idosch Jan 9, 2020
200f8b9
xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk
nathanchance Dec 9, 2019
0445c81
dt-bindings: Add missing 'properties' keyword enclosing 'snps,tso'
robherring Dec 17, 2019
1e67e24
tcp: refine rule to allow EPOLLOUT generation under mem pressure
Dec 12, 2019
ac7f852
irqchip: Place CONFIG_SIFIVE_PLIC into the menu
neuschaefer Oct 2, 2019
f690a8c
arm64: dts: qcom: msm8998: Disable coresight by default
Oct 3, 2019
c3e9f7d
cw1200: Fix a signedness bug in cw1200_load_firmware()
Oct 1, 2019
3495a27
arm64: dts: meson: axg: fix audio fifo reg size
jbrun3t Sep 5, 2019
c9c8012
arm64: dts: meson: g12: fix audio fifo reg size
jbrun3t Sep 5, 2019
0592c04
arm64: dts: meson-gxl-s905x-khadas-vim: fix gpio-keys-polled node
chewitt Sep 9, 2019
914ffed
arm64: dts: renesas: r8a77970: Fix PWM3
kbingham Sep 12, 2019
155f2fe
arm64: dts: marvell: Add AP806-dual missing CPU clocks
miquelraynal Oct 4, 2019
9d4ad8a
cfg80211: check for set_wiphy_params
jmberg-intel Jan 13, 2020
2523c26
tick/sched: Annotate lockless access to last_jiffies_update
Dec 5, 2019
796ffb0
arm64: dts: marvell: Fix CP110 NAND controller node multi-line commen…
miquelraynal Oct 4, 2019
64b8c50
arm64: dts: renesas: r8a774a1: Remove audio port node
bijudas Oct 4, 2019
3ccb2d7
arm64: dts: imx8mm-evk: Assigned clocks for audio plls
TE-N-ShengjiuWang Oct 16, 2019
fb65b57
arm64: dts: qcom: sdm845-cheza: delete zap-shader
robclark Oct 25, 2019
7045f88
ARM: dts: imx6ul-kontron-n6310-s: Disable the snvs-poweroff driver
fschrempf Nov 4, 2019
51cca51
arm64: dts: allwinner: a64: Re-add PMU node
Andre-ARM Nov 5, 2019
1ee117b
ARM: dts: dra7: fix cpsw mdio fck clock
grygoriyS Nov 18, 2019
893c9f9
arm64: dts: juno: Fix UART frequency
Andre-ARM Nov 19, 2019
16023af
ARM: dts: Fix sgx sysconfig register for omap4
tmlind Nov 24, 2019
835d761
Revert "arm64: dts: juno: add dma-ranges property"
sudeep-holla Nov 28, 2019
acc5e1a
mtd: devices: fix mchp23k256 read and write
adureghello-ts Oct 30, 2019
1883f60
mtd: cfi_cmdset_0002: only check errors when ready in cfi_check_err_s…
Oct 31, 2019
1a05d8b
mtd: cfi_cmdset_0002: fix delayed error detection on HyperFlash
Oct 31, 2019
0efee94
um: Don't trace irqflags during shutdown
jmberg-intel Sep 17, 2019
d8cdfd9
um: virtio_uml: Disallow modular build
jmberg-intel Oct 8, 2019
5090afc
reiserfs: fix handling of -EOPNOTSUPP in reiserfs_for_each_xattr
jeffmahoney Jan 15, 2020
37a15af
scsi: esas2r: unlock on error in esas2r_nvram_read_direct()
Oct 22, 2019
1397d34
scsi: hisi_sas: Don't create debugfs dump folder twice
Oct 24, 2019
1331942
scsi: hisi_sas: Set the BIST init value before enabling BIST
Oct 24, 2019
43c5bca
scsi: qla4xxx: fix double free bug
SinkFinder Nov 5, 2019
be4e660
scsi: bnx2i: fix potential use after free
SinkFinder Nov 6, 2019
005d327
scsi: target: core: Fix a pr_debug() argument
bvanassche Nov 7, 2019
e9866d5
scsi: lpfc: fix: Coverity: lpfc_get_scsi_buf_s3(): Null pointer deref…
jsmart-gh Nov 11, 2019
83d2e42
scsi: hisi_sas: Return directly if init hardware failed
Nov 12, 2019
c98dc7e
scsi: scsi_transport_sas: Fix memory leak when removing devices
Nov 20, 2019
fdad431
scsi: qla2xxx: Fix qla2x00_request_irqs() for MSI
chenhuacai Nov 21, 2019
6acefee
scsi: qla2xxx: fix rports not being mark as lost in sync fabric scan
mwilck Nov 22, 2019
240333d
scsi: core: scsi_trace: Use get_unaligned_be*()
bvanassche Nov 1, 2019
287a465
scsi: lpfc: Fix list corruption detected in lpfc_put_sgl_per_hdwq
jsmart-gh Sep 22, 2019
51a2104
scsi: lpfc: Fix hdwq sgl locks and irq handling
jsmart-gh Sep 22, 2019
0ec3e3b
scsi: lpfc: Fix a kernel warning triggered by lpfc_get_sgl_per_hdwq()
bvanassche Nov 7, 2019
6fd06c2
rtw88: fix potential read outside array boundary
Oct 25, 2019
a26701c
perf probe: Fix wrong address verification
mhiramat Oct 25, 2019
483cb2b
perf script: Allow --time with --reltime
Oct 2, 2019
7fabffe
clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap…
wangbaolin719 Oct 8, 2019
ddd66ba
clk: imx7ulp: Correct system clock source option #7
Anson-Huang Oct 14, 2019
aec2290
clk: imx7ulp: Correct DDR clock mux options
Anson-Huang Oct 11, 2019
6299d9c
regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id
stephan-gh Nov 6, 2019
c6743bc
hwmon: (pmbus/ibm-cffps) Switch LEDs to blocking brightness call
Nov 6, 2019
5a672be
hwmon: (pmbus/ibm-cffps) Fix LED blink behavior
Nov 6, 2019
0c079ad
perf script: Fix --reltime with --time
Oct 11, 2019
b1b105a
scsi: lpfc: use hdwq assigned cpu for allocation
jsmart-gh Nov 16, 2019
0fce94b
Linux 5.4.14
gregkh Jan 23, 2020
e380176
drm/i915: Fix pid leak with banned clients
tursulin Dec 17, 2019
8fb2e3c
libbpf: Fix compatibility for kernels without need_wakeup
magnus-karlsson Oct 25, 2019
2bc794f
libbpf: Fix memory leak/double free issue
anakryiko Nov 7, 2019
02d3c2f
libbpf: Fix potential overflow issue
anakryiko Nov 7, 2019
5a3c8e0
libbpf: Fix another potential overflow issue in bpf_prog_linfo
anakryiko Nov 7, 2019
2948fec
libbpf: Make btf__resolve_size logic always check size error condition
anakryiko Nov 7, 2019
c222798
bpf: Force .BTF section start to zero when dumping from vmlinux
fomichev Nov 27, 2019
76aff56
samples: bpf: update map definition to new syntax BTF-defined map
DanielTimLee Nov 7, 2019
634813e
samples/bpf: Fix broken xdp_rxq_info due to map order assumptions
netoptimizer Dec 2, 2019
7b9014d
ARM: dts: logicpd-torpedo-37xx-devkit-28: Reference new DRM panel
aford173 Oct 16, 2019
da22b36
ARM: OMAP2+: Add missing put_device() call in omapdss_init_of()
elfring Nov 9, 2019
dc08e44
xfs: Sanity check flags of Q_XQUOTARM call
jankara Oct 24, 2019
cd1061b
i2c: stm32f7: rework slave_id allocation
avolmat-st Oct 15, 2019
45f884c
i2c: i2c-stm32f7: fix 10-bits check in slave free id search loop
avolmat-st Nov 12, 2019
f8120a6
mfd: intel-lpss: Add default I2C device properties for Gemini Lake
jhnikula Sep 4, 2019
7be8c16
SUNRPC: Fix svcauth_gss_proxy_init()
chucklever Oct 24, 2019
46fabfd
SUNRPC: Fix backchannel latency metrics
chucklever Nov 20, 2019
d5c4594
powerpc/security: Fix debugfs data leak on 32-bit
geertu Oct 21, 2019
0254daa
powerpc/pseries: Enable support for ibm,drc-info property
tyreld Nov 11, 2019
618e593
powerpc/kasan: Fix boot failure with RELOCATABLE && FSL_BOOKE
chleroy Nov 29, 2019
81c13f3
powerpc/archrandom: fix arch_get_random_seed_int()
ardbiesheuvel Dec 4, 2019
b3182a6
tipc: reduce sensitive to retransmit failures
Nov 6, 2019
28845c2
tipc: update mon's self addr when node addr generated
Nov 12, 2019
55a0b2c
tipc: fix potential memory leak in __tipc_sendmsg()
Nov 28, 2019
58e0078
tipc: fix wrong socket reference counter after tipc_sk_timeout() returns
Nov 28, 2019
9bc7663
tipc: fix wrong timeout input for tipc_wait_for_cond()
Nov 28, 2019
142cb2b
net/mlx5e: Fix free peer_flow when refcount is 0
roidayan Dec 2, 2019
1f51f66
phy: lantiq: vrx200-pcie: fix error return code in ltq_vrx200_pcie_ph…
Sep 4, 2019
52fa627
net: phy: broadcom: Fix RGMII delays configuration for BCM54210E
ffainelli Oct 3, 2019
162854d
phy: ti: gmii-sel: fix mac tx internal delay for rgmii-rxid
grygoriyS Oct 23, 2019
1de9dd6
mt76: mt76u: fix endpoint definition order
LorenzoBianconi Nov 17, 2019
2bc814d
mt7601u: fix bbp version check in mt7601u_wait_bbp_ready
LorenzoBianconi Sep 21, 2019
d0198ab
ice: fix stack leakage
jbrandeb Nov 8, 2019
e8dea4e
s390/pkey: fix memory leak within _copy_apqns_from_user()
heicarst Nov 12, 2019
cdac804
nfsd: depend on CRYPTO_MD5 for legacy client tracking
pks-t Dec 4, 2019
36148a8
crypto: amcc - restore CRYPTO_AES dependency
chunkeey Oct 27, 2019
e1763c9
crypto: sun4i-ss - fix big endian issues
montjoie Nov 14, 2019
6498b7a
perf map: No need to adjust the long name of modules
acmel Nov 14, 2019
3af1974
leds: tlc591xx: update the maximum brightness
Sep 23, 2019
a9ec66b
soc/tegra: pmc: Fix crashes for hierarchical interrupts
thierryreding Oct 1, 2019
fe20bda
soc: qcom: llcc: Name regmaps to avoid collisions
bebarino Oct 8, 2019
f255ba7
soc: renesas: Add missing check for non-zero product register address
geertu Oct 16, 2019
8a43239
soc: aspeed: Fix snoop_file_poll()'s return type
lucvoo Nov 21, 2019
2b35a57
watchdog: sprd: Fix the incorrect pointer getting from driver data
Nov 8, 2019
57d748f
ipmi: Fix memory leak in __ipmi_bmc_register
Navidem Oct 21, 2019
37bb3c4
sched/core: Further clarify sched_class::set_next_task()
Nov 8, 2019
ddb46d9
gpiolib: No need to call gpiochip_remove_pin_ranges() twice
andy-shev Nov 5, 2019
6b6d5f5
rtw88: fix beaconing mode rsvd_page memory violation issue
Oct 2, 2019
f88ed5c
rtw88: fix error handling when setup efuse info
Oct 2, 2019
9bd9e94
drm/panfrost: Add missing check for pfdev->regulator
Aug 22, 2019
d500cba
drm: panel-lvds: Potential Oops in probe error handling
Sep 11, 2019
6bdbfb6
drm/amdgpu: remove excess function parameter description
YuKuai-huawei Sep 19, 2019
9af2753
hwrng: omap3-rom - Fix missing clock by probing with device tree
tmlind Sep 14, 2019
66f0a21
dpaa2-eth: Fix minor bug in ethtool stats reporting
Oct 7, 2019
3a77d9e
drm/rockchip: Round up _before_ giving to the clock framework
dianders Oct 3, 2019
3da1054
software node: Get reference to parent swnode in get_parent op
Oct 3, 2019
1865d64
PCI: mobiveil: Fix csr_read()/write() build issue
Oct 4, 2019
238ca64
drm: rcar_lvds: Fix color mismatches on R-Car H2 ES2.0 and later
geertu Sep 17, 2019
c99f4a8
net: netsec: Correct dma sync for XDP_TX frames
apalos Oct 16, 2019
aff509a
ACPI: platform: Unregister stale platform devices
andy-shev Aug 30, 2019
e70290b
pwm: sun4i: Fix incorrect calculation of duty_cycle/period
Oct 14, 2019
b6cb98e
regulator: bd70528: Add MODULE_ALIAS to allow module auto loading
M-Vaittinen Oct 23, 2019
bdfb762
drm/amdgpu/vi: silence an uninitialized variable warning
Oct 17, 2019
16232b0
power: supply: bd70528: Add MODULE_ALIAS to allow module auto loading
M-Vaittinen Oct 23, 2019
bd9d813
firmware: imx: Remove call to devm_of_platform_populate
dbaluta Oct 14, 2019
220ba32
libbpf: Don't use kernel-side u32 type in xsk.c
anakryiko Oct 29, 2019
e4e32af
rcu: Fix uninitialized variable in nocb_gp_wait()
Sep 23, 2019
54c45b8
dpaa_eth: perform DMA unmapping before read
madalinbucur Oct 31, 2019
7139477
dpaa_eth: avoid timestamp read on error paths
madalinbucur Oct 31, 2019
7c33278
scsi: ufs: delete redundant function ufshcd_def_desc_sizes()
beanhuo Oct 29, 2019
79310c4
net: openvswitch: don't unlock mutex when changing the user_features …
xpu22 Nov 1, 2019
ca52b5c
hv_netvsc: flag software created hash value
shemminger Nov 1, 2019
ab269ff
rt2800: remove errornous duplicate condition
dangowrt Nov 2, 2019
e9a6f09
net: neigh: use long type to store jiffies delta
Nov 5, 2019
e9870cd
net: axienet: Fix error return code in axienet_probe()
Nov 6, 2019
7bd7454
selftests: gen_kselftest_tar.sh: Do not clobber kselftest/
kees Oct 30, 2019
f3cf512
rtc: bd70528: fix module alias to autoload module
Nov 6, 2019
f6d3626
packet: fix data-race in fanout_flow_is_huge()
Nov 8, 2019
c570172
i2c: stm32f7: report dma error during probe
avolmat-st Oct 24, 2019
83ff921
kselftests: cgroup: Avoid the reuse of fd after it is deallocated
hewenliang4 Nov 12, 2019
8b8b5f9
firmware: arm_scmi: Fix doorbell ring logic for !CONFIG_64BIT
sudeep-holla Nov 11, 2019
f8afdce
mmc: sdio: fix wl1251 vendor id
goldelico Nov 7, 2019
2eb4d74
mmc: core: fix wl1251 sdio quirks
goldelico Nov 7, 2019
5c179c0
tee: optee: Fix dynamic shm pool allocations
b49020 Nov 8, 2019
b30a9b0
tee: optee: fix device enumeration error handling
jenswi-linaro Nov 6, 2019
1612894
workqueue: Add RCU annotation for pwq list walk
Nov 15, 2019
e0e2379
SUNRPC: Fix another issue with MIC buffer space
chucklever Nov 15, 2019
0e9619f
sched/cpufreq: Move the cfs_rq_util_change() call to cpufreq_update_u…
vingu-linaro Nov 18, 2019
0812e7d
mt76: mt76u: rely on usb_interface instead of usb_dev
LorenzoBianconi Oct 28, 2019
b8444fa
dma-direct: don't check swiotlb=force in dma_direct_map_resource
Nov 19, 2019
c1b9854
afs: Remove set but not used variables 'before', 'after'
zhengbin13 Nov 21, 2019
ca4c17f
dmaengine: ti: edma: fix missed failure handling
WillLester Nov 18, 2019
62ac16b
drm/radeon: fix bad DMA from INTERRUPT_CNTL2
Nov 17, 2019
074fd02
xdp: Fix cleanup on map free for devmap_hash map type
tohojo Nov 21, 2019
022321a
platform/chrome: wilco_ec: fix use after free issue
taskset Nov 30, 2019
ccbc5d0
block: fix memleak of bio integrity data
Dec 5, 2019
465b10f
s390/qeth: fix dangling IO buffers after halt/clear
julianwiedmann Dec 5, 2019
60d671d
net-sysfs: Call dev_hold always in netdev_queue_add_kobject
hogander-unikie Dec 5, 2019
ce28f98
gpio: aspeed: avoid return type warning
arndb Dec 10, 2019
88532d1
phy/rockchip: inno-hdmi: round clock rate down to closest 1000 Hz
Kwiboo Dec 23, 2019
15763f0
optee: Fix multi page dynamic shm pool alloc
b49020 Dec 30, 2019
111e415
Linux 5.4.15
gregkh Jan 26, 2020
a0b2dc6
mm/ksm: introduce ksm_madvise_merge() helper
pfactum May 10, 2019
b22f4b3
mm/ksm: introduce ksm_madvise_unmerge() helper
pfactum May 14, 2019
6c8a699
mm/ksm, proc: introduce remote merge
pfactum Oct 27, 2019
03ea354
mm/ksm, proc: add remote KSM documentation
pfactum May 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Btrfs: always copy scrub arguments back to user space
commit 5afe6ce upstream.

If scrub returns an error we are not copying back the scrub arguments
structure to user space. This prevents user space to know how much
progress scrub has done if an error happened - this includes -ECANCELED
which is returned when users ask for scrub to stop. A particular use
case, which is used in btrfs-progs, is to resume scrub after it is
canceled, in that case it relies on checking the progress from the scrub
arguments structure and then use that progress in a call to resume
scrub.

So fix this by always copying the scrub arguments structure to user
space, overwriting the value returned to user space with -EFAULT only if
copying the structure failed to let user space know that either that
copying did not happen, and therefore the structure is stale, or it
happened partially and the structure is probably not valid and corrupt
due to the partial copy.

Reported-by: Graham Cobb <g.btrfs@cobb.uk.net>
Link: https://lore.kernel.org/linux-btrfs/d0a97688-78be-08de-ca7d-bcb4c7fb397e@cobb.uk.net/
Fixes: 06fe39a ("Btrfs: do not overwrite scrub error with fault error in scrub ioctl")
CC: stable@vger.kernel.org # 5.1+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Tested-by: Graham Cobb <g.btrfs@cobb.uk.net>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
fdmanana authored and gregkh committed Jan 23, 2020
commit cef6f2aeda7f00a497e8a60ce78e6eb97a00105c
14 changes: 13 additions & 1 deletion fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4254,7 +4254,19 @@ static long btrfs_ioctl_scrub(struct file *file, void __user *arg)
&sa->progress, sa->flags & BTRFS_SCRUB_READONLY,
0);

if (ret == 0 && copy_to_user(arg, sa, sizeof(*sa)))
/*
* Copy scrub args to user space even if btrfs_scrub_dev() returned an
* error. This is important as it allows user space to know how much
* progress scrub has done. For example, if scrub is canceled we get
* -ECANCELED from btrfs_scrub_dev() and return that error back to user
* space. Later user space can inspect the progress from the structure
* btrfs_ioctl_scrub_args and resume scrub from where it left off
* previously (btrfs-progs does this).
* If we fail to copy the btrfs_ioctl_scrub_args structure to user space
* then return -EFAULT to signal the structure was not copied or it may
* be corrupt and unreliable due to a partial copy.
*/
if (copy_to_user(arg, sa, sizeof(*sa)))
ret = -EFAULT;

if (!(sa->flags & BTRFS_SCRUB_READONLY))
Expand Down