Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Upstream to 4.14.202, update README.md, enable ThinLTO #14

Closed
Closed
Changes from 1 commit
Commits
Show all changes
860 commits
Select commit Hold shift + click to select a range
b2905f1
geneve: add transport ports in route lookup for geneve
markdgray Sep 16, 2020
83475e9
serial: 8250: Avoid error message on reprobe
l1k May 12, 2020
5affee3
mm: fix double page fault on arm64 if PTE_AF is cleared
justin-he Oct 11, 2019
ca806e5
scsi: aacraid: fix illegal IO beyond last LBA
Oct 15, 2019
337a719
m68k: q40: Fix info-leak in rtc_ioctl
Yellow-Pay Sep 27, 2019
682ed44
gma/gma500: fix a memory disclosure bug due to uninitialized bytes
kengiter Oct 18, 2019
f3c4dce
ASoC: kirkwood: fix IRQ error handling
Oct 23, 2019
39dae2a
media: smiapp: Fix error handling at NVM reading
Sep 23, 2019
a92c03a
arch/x86/lib/usercopy_64.c: fix __copy_user_flushcache() cache writeback
Sep 26, 2020
28e595d
x86/ioapic: Unbreak check_timer()
KAGA-KOKO Sep 23, 2020
8c3b123
ALSA: usb-audio: Add delay quirk for H570e USB headsets
joakim-tjernlund Sep 10, 2020
e54e8db
ALSA: hda/realtek - Couldn't detect Mic if booting with headset plugged
jason77-wang Sep 14, 2020
8884012
PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out
digetx Nov 4, 2019
e462c36
scsi: fnic: fix use after free
SinkFinder Nov 4, 2019
bb1e283
clk/ti/adpll: allocate room for terminating null
skitt Oct 19, 2019
7807903
mtd: cfi_cmdset_0002: don't free cfi->cfiq in error path of cfi_amdst…
Oct 8, 2019
5a99ed7
mfd: mfd-core: Protect against NULL call-back function pointer
Oct 21, 2019
c0d49cd
tracing: Adding NULL checks for trace_array descriptor pointer
Aug 14, 2019
db07458
bcache: fix a lost wake-up problem caused by mca_cannibalize_lock
goldhorn Nov 13, 2019
7da9758
RDMA/i40iw: Fix potential use after free
SinkFinder Nov 6, 2019
7767fc4
xfs: fix attr leaf header freemap.size underflow
Nov 16, 2019
5e16cd5
RDMA/iw_cgxb4: Fix an error handling path in 'c4iw_connect()'
tititiou36 Sep 23, 2019
bb96b5b
mmc: core: Fix size overflow for mmc partitions
Nov 17, 2019
d94db7c
gfs2: clean up iopen glock mess in gfs2_create_inode
AstralBob Nov 19, 2019
1c0ea18
debugfs: Fix !DEBUG_FS debugfs_create_automount
k7k7 Nov 21, 2019
e8c6b4c
CIFS: Properly process SMB3 lease breaks
piastry Oct 29, 2019
bd1cdc0
kernel/sys.c: avoid copying possible padding bytes in copy_to_user
JoePerches Dec 5, 2019
f335c7f
neigh_stat_seq_next() should increase position index
vaverin Jan 23, 2020
d996bb4
rt_cpu_seq_next should increase position index
vaverin Jan 23, 2020
32d73e4
seqlock: Require WRITE_ONCE surrounding raw_seqcount_barrier
melver Nov 14, 2019
2a35631
media: ti-vpe: cal: Restrict DMA to avoid memory corruption
nikhildevshatwar Nov 12, 2019
05e8dd9
ACPI: EC: Reference count query handlers under lock
rafaeljw Dec 27, 2019
52c8288
dmaengine: zynqmp_dma: fix burst length configuration
mfend-wv Jan 15, 2020
ab568a4
powerpc/eeh: Only dump stack once if an MMIO loop is detected
oohal Oct 16, 2019
f326c3e
tracing: Set kernel_stack's caller size properly
Sep 24, 2014
28182cb
ar5523: Add USB ID of SMCWUSBT-G2 wireless adapter
mdirik Jan 16, 2020
145c604
selftests/ftrace: fix glob selftest
svens-s390 Jan 28, 2020
6075861
tools/power/x86/intel_pstate_tracer: changes for python 3 compatibility
Jan 28, 2020
a272c66
Bluetooth: Fix refcount use-after-free issue
liveusr Jan 28, 2020
553f8b5
mm: pagewalk: fix termination condition in walk_pte_range()
Feb 4, 2020
5864cf4
Bluetooth: prefetch channel before killing sock
Feb 5, 2020
b29240a
KVM: fix overflow of zero page refcount with ksm running
Oct 12, 2019
be1c68c
ALSA: hda: Clear RIRB status before reading WP
mkumard Feb 6, 2020
6174883
skbuff: fix a data race in skb_queue_len()
Feb 4, 2020
def46b0
audit: CONFIG_CHANGE don't log internal bookkeeping as an event
RH-steve-grubb Jan 24, 2020
c47f1fa
selinux: sel_avc_get_stat_idx should increase position index
vaverin Feb 1, 2020
cf55d3b
scsi: lpfc: Fix RQ buffer leakage when no IOCBs available
jsmart-gh Jan 28, 2020
5667567
scsi: lpfc: Fix coverity errors in fmdi attribute handling
jsmart-gh Jan 28, 2020
3b664b6
drm/omap: fix possible object reference leak
taskset Apr 8, 2019
49f7f19
perf test: Fix test trace+probe_vfs_getname.sh on s390
Feb 17, 2020
f7bc437
RDMA/rxe: Fix configuration of atomic queue pair attributes
bvanassche Feb 17, 2020
a8f01c9
KVM: x86: fix incorrect comparison in trace event
bonzini Feb 13, 2020
f8db173
media: staging/imx: Missing assignment in imx_media_capture_device_re…
Feb 11, 2020
96ca6fa
x86/pkeys: Add check for pkey "overflow"
hansendc Jan 22, 2020
710499c
bpf: Remove recursion prevention from rcu free callback
KAGA-KOKO Feb 24, 2020
4894bf8
dmaengine: tegra-apb: Prevent race conditions on channel's freeing
digetx Feb 9, 2020
3255238
media: go7007: Fix URB type for interrupt handling
tiwai Feb 6, 2020
d1735b8
Bluetooth: guard against controllers sending zero'd events
Mar 3, 2020
07256ed
timekeeping: Prevent 32bit truncation in scale64_check_overflow()
taskset Jan 20, 2020
e571905
ext4: fix a data race at inode->i_disksize
Feb 24, 2020
bff70ec
mm: avoid data corruption on CoW fault into PFN-mapped VMA
kiryl Mar 6, 2020
dd6c2de
drm/amdgpu: increase atombios cmd timeout
Mar 5, 2020
b60b2bd
ath10k: use kzalloc to read for ath10k_sdio_hif_diag_read
Feb 14, 2020
9ca2092
scsi: aacraid: Disabling TM path and only processing IOP reset
Feb 13, 2020
4737d62
Bluetooth: L2CAP: handle l2cap config request during open state
howardchungg Mar 12, 2020
fba9bf4
media: tda10071: fix unsigned sign extension overflow
Feb 10, 2020
5884126
xfs: don't ever return a stale pointer from __xfs_dir3_free_read
djwong Mar 11, 2020
150bb10
tpm: ibmvtpm: Wait for buffer to be set before proceeding
stefanberger Mar 12, 2020
382f9f7
rtc: ds1374: fix possible race condition
alexandrebelloni Mar 6, 2020
b1b5aa2
tracing: Use address-of operator on section symbols
nathanchance Feb 20, 2020
5137237
serial: 8250_port: Don't service RX FIFO if throttled
r-vignesh Mar 19, 2020
8a8fc1a
serial: 8250_omap: Fix sleeping function called from invalid context …
Mar 20, 2020
93fa4bf
serial: 8250: 8250_omap: Terminate DMA before pushing data on RX timeout
r-vignesh Mar 19, 2020
28f52bf
perf cpumap: Fix snprintf overflow check
tititiou36 Mar 24, 2020
f6332bf
cpufreq: powernv: Fix frame-size-overflow in powernv_cpufreq_work_fn
pratiksampat Mar 16, 2020
dc62c22
tools: gpio-hammer: Avoid potential overflow in main
GabrielRavier Mar 12, 2020
36741f0
RDMA/rxe: Set sys_image_guid to be aligned with HW IB devices
Mar 23, 2020
8a5946f
SUNRPC: Fix a potential buffer overflow in 'svc_print_xprts()'
tititiou36 Mar 27, 2020
d0b9691
svcrdma: Fix leak of transport addresses
chucklever Mar 24, 2020
a96a84c
ubifs: Fix out-of-bounds memory access caused by abnormal value of no…
Jan 16, 2020
8923bde
ALSA: usb-audio: Fix case when USB MIDI interface has more than one e…
anstein Mar 31, 2020
cca45a7
NFS: Fix races nfs_page_group_destroy() vs nfs_destroy_unlinked_subre…
Apr 1, 2020
2a1d587
mm/kmemleak.c: use address-of operator on section symbols
nathanchance Apr 2, 2020
1aaa07f
mm/filemap.c: clear page error before actual read
Apr 2, 2020
e9e3974
mm/vmscan.c: fix data races using kswapd_classzone_idx
Apr 2, 2020
8c0e8d7
mm/mmap.c: initialize align_offset explicitly for vm_unmapped_area
Jaewon31Kim Apr 10, 2020
7d44282
scsi: qedi: Fix termination timeouts in session logout
njavali Apr 8, 2020
42459ef
serial: uartps: Wait for tx_empty in console setup
Apr 9, 2020
de8df69
KVM: Remove CREATE_IRQCHIP/SET_PIT2 race
stevenrutherford Apr 16, 2020
82a31d7
bdev: Reduce time holding bd_mutex in sync in blkdev_close()
dianders Mar 24, 2020
df882a7
drivers: char: tlclk.c: Avoid data race between init and interrupt ha…
Apr 17, 2020
d7398eb
staging:r8188eu: avoid skb_clone for amsdu to msdu conversion
insafonov Apr 23, 2020
0383a5a
sparc64: vcc: Fix error return code in vcc_probe()
Apr 27, 2020
1d6c5c0
arm64: cpufeature: Relax checks for AArch32 support at EL[0-2]
willdeacon Apr 21, 2020
798a0d4
dt-bindings: sound: wm8994: Correct required supplies based on actual…
krzk May 1, 2020
f78e221
atm: fix a memory leak of vcc->user_back
congwang May 1, 2020
972c7aa
power: supply: max17040: Correct voltage reading
xc-racer99 May 4, 2020
b31ebac
phy: samsung: s5pv210-usb2: Add delay after reset
xc-racer99 Apr 25, 2020
260c676
Bluetooth: Handle Inquiry Cancel error after Inquiry Complete
May 6, 2020
822d95c
USB: EHCI: ehci-mv: fix error handling in mv_ehci_probe()
May 8, 2020
9fa8595
tty: serial: samsung: Correct clock selection logic
xc-racer99 May 9, 2020
8234832
ALSA: hda: Fix potential race in unsol event handler
tiwai May 16, 2020
3700b78
powerpc/traps: Make unrecoverable NMIs die instead of panic
npiggin May 8, 2020
4956d04
fuse: don't check refcount after stealing page
May 19, 2020
8528a54
USB: EHCI: ehci-mv: fix less than zero comparison of an unsigned int
May 15, 2020
55bc3a4
arm64/cpufeature: Drop TraceFilt feature exposure from ID_DFR0 register
May 19, 2020
1fdc54f
e1000: Do not perform reset in reset_task if we are already down
Apr 17, 2020
db95b00
drm/nouveau/debugfs: fix runtime pm imbalance on error
dinghaoliu May 20, 2020
7f58f3c
printk: handle blank console arguments passed in.
May 22, 2020
245bab1
usb: dwc3: Increase timeout for CmdAct cleared by device controller
chenyu56 May 21, 2020
0dad69b
btrfs: don't force read-only after error in drop snapshot
kdave Feb 25, 2020
81cd828
vfio/pci: fix memory leaks of eventfd ctx
May 11, 2020
bfa5ba7
perf util: Fix memory leak of prefix_if_not_in
May 21, 2020
2bb795a
perf kcore_copy: Fix module map when there are no modules loaded
ahunter6 May 12, 2020
6fabfa7
mtd: rawnand: omap_elm: Fix runtime PM imbalance on error
dinghaoliu May 22, 2020
17b6c3c
ceph: fix potential race in ceph_check_caps
jtlayton Mar 20, 2020
71092e5
mm/swap_state: fix a data race in swapin_nr_pages
Jun 2, 2020
97f2f62
rapidio: avoid data race between file operation callbacks and mport_c…
Jun 4, 2020
1e5a829
mtd: parser: cmdline: Support MTD names containing one or more colons
bbrezillon Apr 29, 2020
06ca368
x86/speculation/mds: Mark mds_user_clear_cpu_buffers() __always_inline
KAGA-KOKO Mar 4, 2020
b3ca6e2
vfio/pci: Clear error and request eventfd ctx after releasing
awilliam Jun 16, 2020
6239c98
cifs: Fix double add page to memcg when cifs_readpages
z00467499 Jun 22, 2020
2d21b99
scsi: libfc: Handling of extra kref
javed-h Jun 22, 2020
b718535
scsi: libfc: Skip additional kref updating work event
javed-h Jun 26, 2020
37d0128
selftests/x86/syscall_nt: Clear weird flags after each test
amluto Jun 26, 2020
988aca9
vfio/pci: fix racy on error and request eventfd ctx
prime-zeng Jul 15, 2020
f8f0662
btrfs: qgroup: fix data leak caused by race between writeback and tru…
adam900710 Jul 17, 2020
ad61728
s390/init: add missing __init annotations
iii-i Sep 9, 2020
18454f1
i2c: core: Call i2c_acpi_install_space_handler() before i2c_acpi_regi…
jwrdegoede Sep 9, 2020
900c88c
objtool: Fix noreturn detection for ignored functions
jpoimboe Sep 10, 2020
8344276
ieee802154: fix one possible memleak in ca8210_dev_com_init
liujian56 Jul 20, 2020
4c0f7bc
ieee802154/adf7242: check status of adf7242_read_reg
Aug 2, 2020
69e3347
clocksource/drivers/h8300_timer8: Fix wrong return value in h8300_8ti…
uudiin Aug 2, 2020
0f4963c
mwifiex: Increase AES key storage size to 256 bits
qzed Aug 25, 2020
5924f40
batman-adv: bla: fix type misuse for backbone_gw hash indexing
T-X Aug 27, 2020
4201573
atm: eni: fix the missed pci_disable_device() for eni_init_one()
hiss2018 Sep 4, 2020
709af93
batman-adv: mcast/TT: fix wrongly dropped or rerouted packets
T-X Sep 4, 2020
67b9eea
mac802154: tx: fix use-after-free
Sep 8, 2020
6f09adc
drm/vc4/vc4_hdmi: fill ASoC card owner
mszyprow Jul 1, 2020
7b5d575
net: qed: RDMA personality shouldn't fail VF load
logost Sep 9, 2020
d485f0a
batman-adv: Add missing include for in_interrupt()
ecsv Sep 14, 2020
00faebc
batman-adv: mcast: fix duplicate mcast packets in BLA backbone from mesh
T-X Sep 15, 2020
26001a7
ALSA: asihpi: fix iounmap in error handler
Sep 13, 2020
7c36697
MIPS: Add the missing 'CPU_1074K' into __get_cpu_type()
stkid Sep 23, 2020
8e773ee
s390/dasd: Fix zero write for FBA devices
hoeppnerj Sep 14, 2020
0127868
kprobes: Fix to check probe enabled before disarm_kprobe_ftrace()
mhiramat Aug 31, 2020
ff0f93a
mm, THP, swap: fix allocating cluster for swapfile by mistake
Sep 26, 2020
5f244b5
ata: define AC_ERR_OK
Oct 31, 2019
7bf0750
ata: make qc_prep return ata_completion_errors
Oct 31, 2019
45bfffb
ata: sata_mv, avoid trigerrable BUG_ON
Oct 31, 2019
8ad8873
Linux 4.14.200
gregkh Oct 1, 2020
ad6f3b9
Revert "overflow.h: Add allocation size calculation helpers"
ratatouille100 Dec 2, 2023
b4563ac
Revert "clk: Evict unregistered clks from parent caches"
ratatouille100 Dec 2, 2023
0a60dfb
Fix: scsi: ufs: Clean up completed request without interrupt notifica…
ratatouille100 Dec 2, 2023
c8c081d
Fix: tty: serial: samsung: Correct clock selection logic
ratatouille100 Dec 2, 2023
4842fff
vsock/virtio: use RCU to avoid use-after-free on the_virtio_vsock
stefano-garzarella Jul 5, 2019
a2fe886
vsock/virtio: stop workers during the .remove()
stefano-garzarella Jul 5, 2019
362a9d7
vsock/virtio: add transport parameter to the virtio_transport_reset_n…
stefano-garzarella Nov 14, 2019
d3d0686
net: virtio_vsock: Enhance connection semantics
Feb 14, 2020
d0a18a5
gpio: tc35894: fix up tc35894 interrupt configuration
dillon-min Sep 3, 2020
a03ed24
Input: i8042 - add nopnp quirk for Acer Aspire 5 A515
Sep 28, 2020
956d8b8
drm/amdgpu: restore proper ref count in amdgpu_display_crtc_set_config
jdelvare Sep 28, 2020
5c37027
drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices
Sep 3, 2020
8fb8e7c
drm/sun4i: mixer: Extend regmap max_register
mcerveny Sep 6, 2020
04f01cc
net: dec: de2104x: Increase receive ring size for Tulip
lucydyan Sep 10, 2020
55c1935
rndis_host: increase sleep time in the query-response loop
doga22 Sep 11, 2020
e7000c9
drivers/net/wan/lapbether: Make skb->protocol consistent with the header
Sep 16, 2020
81c4041
drivers/net/wan/hdlc: Set skb->protocol before transmitting
Sep 16, 2020
ad5b3b4
mac80211: do not allow bigger VHT MPDUs than the hardware supports
nbd168 Sep 17, 2020
0ca94b9
spi: fsl-espi: Only process interrupts for expected events
cpackham-atlnz Sep 4, 2020
5014408
nvme-fc: fail new connections to a deleted host or remote port
Sep 17, 2020
a4a5900
pinctrl: mvebu: Fix i2c sda definition for 98DX3236
cpackham-atlnz Sep 7, 2020
c30d25d
nfs: Fix security label length not being reset
JeffreyMitchellSL Sep 15, 2020
2ce307c
clk: samsung: exynos4: mark 'chipid' clock as CLK_IGNORE_UNUSED
mszyprow Sep 22, 2020
a625138
iommu/exynos: add missing put_device() call in exynos_iommu_of_xlate()
YuKuai-huawei Sep 18, 2020
8ca8c93
i2c: cpm: Fix i2c_ram structure
nvincent-vossloh Sep 23, 2020
a2c4d0b
Input: trackpoint - enable Synaptics trackpoints
synavincent Sep 28, 2020
acc31e0
random32: Restore __latent_entropy attribute on net_rand_state
tsautereau-anssi Oct 2, 2020
90564ba
epoll: do not insert into poll queues until all sanity checks are done
Sep 10, 2020
21561e4
epoll: replace ->visited/visited_list with generation count
Sep 10, 2020
cdc08a1
epoll: EPOLL_CTL_ADD: close the race in decision to take fast path
Sep 10, 2020
45f841a
ep_create_wakeup_source(): dentry name can change under you...
Sep 24, 2020
c905809
netfilter: ctnetlink: add a range check for l3/l4 protonum
Aug 24, 2020
70a8f73
drm/syncobj: Fix drm_syncobj_handle_to_fd refcount leak
myxoid Oct 14, 2020
fa72339
fbdev, newport_con: Move FONT_EXTRA_WORDS macros into linux/font.h
peilin-ye Sep 24, 2020
b8e1fc6
Fonts: Support FONT_EXTRA_WORDS macros for built-in fonts
peilin-ye Sep 24, 2020
d6d020a
Revert "ravb: Fixed to be able to unload modules"
geertu Sep 22, 2020
222e67c
fbcon: Fix global-out-of-bounds read in fbcon_get_font()
peilin-ye Sep 24, 2020
e53c3a5
net: wireless: nl80211: fix out-of-bounds access in nl80211_del_key()
thazhemadam Oct 7, 2020
36b29b9
usermodehelper: reset umask to default before executing user process
torvalds Oct 5, 2020
0fa0e62
platform/x86: thinkpad_acpi: initialize tp_nvram_state variable
Sep 13, 2020
a34b39c
platform/x86: thinkpad_acpi: re-initialize ACPI buffer size when reuse
pyma1 Oct 2, 2020
7a89082
driver core: Fix probe_count imbalance in really_probe()
Jul 13, 2020
c348d3e
perf top: Fix stdio interface input handling with glibc 2.28+
rantala Mar 5, 2020
8c60e2d
mtd: rawnand: sunxi: Fix the probe error path
miquelraynal May 19, 2020
8e76e3a
Btrfs: fix unexpected failure of nocow buffered writes after snapshot…
Aug 6, 2018
d87b60b
ftrace: Move RCU is watching check after recursion check
rostedt Sep 29, 2020
22aa247
macsec: avoid use-after-free in macsec_handle_frame()
Oct 7, 2020
2be38dc
mm/khugepaged: fix filemap page_to_pgoff(page) != offset
Oct 10, 2020
c27135e
cifs: Fix incomplete memory allocation on setxattr path
Oct 10, 2020
d0f0547
i2c: meson: fix clock setting overwrite
jbrun3t Oct 7, 2020
d906b46
sctp: fix sctp_auth_init_hmacs() error path
Oct 8, 2020
2ffedb7
team: set dev->needed_headroom in team_setup_by_port()
Sep 25, 2020
048a00a
net: team: fix memory leak in __team_options_register
thazhemadam Oct 4, 2020
9b78546
openvswitch: handle DNAT tuple collision
dceara Oct 7, 2020
ed3136b
drm/amdgpu: prevent double kfree ttm->sg
PhilipYangA Sep 15, 2020
d92143c
xfrm: clone XFRMA_REPLAY_ESN_VAL in xfrm_do_migrate
antonyantony Sep 4, 2020
a8881f6
xfrm: clone XFRMA_SEC_CTX in xfrm_do_migrate
antonyantony Sep 4, 2020
ac483a9
xfrm: clone whole liftime_cur structure in xfrm_do_migrate
antonyantony Sep 4, 2020
74333f0
net: stmmac: removed enabling eee in EEE set callback
wvoon Sep 23, 2020
38c8523
platform/x86: fix kconfig dependency warning for FUJITSU_LAPTOP
necipfazil Sep 17, 2020
19f014d
xfrm: Use correct address family in xfrm_state_find
herbertx Sep 25, 2020
edb303f
bonding: set dev->needed_headroom in bond_setup_by_slave()
Sep 25, 2020
bcdd207
mdio: fix mdio-thunder.c dependency & build error
rddunlap Sep 27, 2020
165eef0
net: usb: ax88179_178a: fix missing stop entry in driver_info
Sep 28, 2020
fc98a3a
rxrpc: Fix rxkad token xdr encoding
Sep 4, 2020
62ea96c
rxrpc: Downgrade the BUG() for unsupported token type in rxrpc_read()
dhowells Sep 8, 2020
af0ee91
rxrpc: Fix some missing _bh annotations on locking conn->state_lock
dhowells Oct 1, 2020
c8acb36
rxrpc: Fix server keyring leak
dhowells Oct 2, 2020
dcb09b5
perf: Fix task_function_call() error handling
kjain101 Aug 27, 2020
4dbad66
mmc: core: don't set limits.discard_granularity as 0
Oct 2, 2020
4ef0e5a
mm: khugepaged: recalculate min_free_kbytes after memory hotplug as e…
vijaybalakrishna Oct 11, 2020
b081088
net: usb: rtl8150: set random MAC address when set_ethernet_addr() fails
thazhemadam Oct 5, 2020
8c93288
Linux 4.14.201
gregkh Oct 14, 2020
bcbd021
Bluetooth: fix kernel oops in store_pending_adv_report
Jul 27, 2020
bc8bdc0
Bluetooth: A2MP: Fix not initializing all members
Vudentz Aug 6, 2020
3f9c514
Bluetooth: L2CAP: Fix calling sk_filter on non-socket based channel
Vudentz Aug 6, 2020
77e3311
Bluetooth: MGMT: Fix not checking if BT_HS is enabled
Vudentz Aug 6, 2020
e4f58f4
Bluetooth: Consolidate encryption handling in hci_encrypt_cfm
Vudentz May 19, 2020
1d2c3b9
Bluetooth: Fix update of connection state in `hci_encrypt_cfm`
pks-t Jul 15, 2020
8cf6f3f
Bluetooth: Disconnect if E0 is used for Level 4
Vudentz May 20, 2020
2de0463
media: usbtv: Fix refcounting mixup
oneukum Sep 24, 2020
2fa7ab0
USB: serial: option: add Cellient MPL200 card
Oct 3, 2020
e4689a1
USB: serial: option: Add Telit FT980-KS composition
blochl Oct 4, 2020
5676565
staging: comedi: check validity of wMaxPacketSize of usb endpoints found
thazhemadam Oct 10, 2020
a5410d4
USB: serial: pl2303: add device-id for HP GC device
LabauScott Sep 24, 2020
5b49fc3
USB: serial: ftdi_sio: add support for FreeCalypso JTAG+UART adapters
Sep 16, 2020
27f9c88
reiserfs: Initialize inode keys properly
jankara Sep 21, 2020
096be0b
reiserfs: Fix oops during mount
jankara Sep 30, 2020
b948e54
drivers/net/ethernet/marvell/mvmdio.c: Fix non OF case
thertp Aug 2, 2019
2fae735
crypto: bcm - Verify GCM/CCM key length in setkey
herbertx Oct 2, 2020
369d075
crypto: qat - check cipher length for aead AES-CBC-HMAC-SHA
dominik4658 Aug 31, 2020
b7ebbf7
Linux 4.14.202
gregkh Oct 17, 2020
2b3a6d2
Update: README.md
ratatouille100 Dec 2, 2023
aa30c67
Disable CONFIG_LTO_NONE
ratatouille100 Dec 2, 2023
f8ca193
Enable ThinLTO
ratatouille100 Dec 2, 2023
86f1f13
Update: README.md
ratatouille100 Dec 2, 2023
d4bbb20
Delete CONFIG_KSU
ratatouille100 Dec 2, 2023
7c4c367
Enable ThinLTO
ratatouille100 Dec 2, 2023
653ef7a
Revert "Disable CONFIG_LTO_NONE"
ratatouille100 Dec 2, 2023
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
gfs2: clean up iopen glock mess in gfs2_create_inode
[ Upstream commit 2c47c1be51fbded1f7baa2ceaed90f97932f79be ]

Before this patch, gfs2_create_inode had a use-after-free for the
iopen glock in some error paths because it did this:

	gfs2_glock_put(io_gl);
fail_gunlock2:
	if (io_gl)
		clear_bit(GLF_INODE_CREATING, &io_gl->gl_flags);

In some cases, the io_gl was used for create and only had one
reference, so the glock might be freed before the clear_bit().
This patch tries to straighten it out by only jumping to the
error paths where iopen is properly set, and moving the
gfs2_glock_put after the clear_bit.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
AstralBob authored and ratatouille100 committed Dec 2, 2023
commit d94db7cf1bbe3071959456df4d9cea5dcaf37be5
13 changes: 7 additions & 6 deletions fs/gfs2/inode.c
Original file line number Diff line number Diff line change
@@ -714,7 +714,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,

error = gfs2_trans_begin(sdp, blocks, 0);
if (error)
goto fail_gunlock2;
goto fail_free_inode;

if (blocks > 1) {
ip->i_eattr = ip->i_no_addr + 1;
@@ -725,7 +725,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,

error = gfs2_glock_get(sdp, ip->i_no_addr, &gfs2_iopen_glops, CREATE, &io_gl);
if (error)
goto fail_gunlock2;
goto fail_free_inode;

BUG_ON(test_and_set_bit(GLF_INODE_CREATING, &io_gl->gl_flags));

@@ -734,7 +734,6 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
goto fail_gunlock2;

glock_set_object(ip->i_iopen_gh.gh_gl, ip);
gfs2_glock_put(io_gl);
gfs2_set_iop(inode);
insert_inode_hash(inode);

@@ -767,22 +766,24 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,

mark_inode_dirty(inode);
d_instantiate(dentry, inode);
/* After instantiate, errors should result in evict which will destroy
* both inode and iopen glocks properly. */
if (file) {
*opened |= FILE_CREATED;
error = finish_open(file, dentry, gfs2_open_common, opened);
}
gfs2_glock_dq_uninit(ghs);
gfs2_glock_dq_uninit(ghs + 1);
clear_bit(GLF_INODE_CREATING, &io_gl->gl_flags);
gfs2_glock_put(io_gl);
return error;

fail_gunlock3:
glock_clear_object(io_gl, ip);
gfs2_glock_dq_uninit(&ip->i_iopen_gh);
gfs2_glock_put(io_gl);
fail_gunlock2:
if (io_gl)
clear_bit(GLF_INODE_CREATING, &io_gl->gl_flags);
clear_bit(GLF_INODE_CREATING, &io_gl->gl_flags);
gfs2_glock_put(io_gl);
fail_free_inode:
if (ip->i_gl) {
glock_clear_object(ip->i_gl, ip);