android_kernel_samsung_a7y1.../drivers
Marek Vasut 64f2cdfce0 PCI: sysfs: Ignore lockdep for remove attribute
[ Upstream commit dc6b698a86fe40a50525433eb8e92a267847f6f9 ]

With CONFIG_PROVE_LOCKING=y, using sysfs to remove a bridge with a device
below it causes a lockdep warning, e.g.,

  # echo 1 > /sys/class/pci_bus/0000:00/device/0000:00:00.0/remove
  ============================================
  WARNING: possible recursive locking detected
  ...
  pci_bus 0000:01: busn_res: [bus 01] is released

The remove recursively removes the subtree below the bridge.  Each call
uses a different lock so there's no deadlock, but the locks were all
created with the same lockdep key so the lockdep checker can't tell them
apart.

Mark the "remove" sysfs attribute with __ATTR_IGNORE_LOCKDEP() as it is
safe to ignore the lockdep check between different "remove" kernfs
instances.

There's discussion about a similar issue in USB at [1], which resulted in
356c05d58af0 ("sysfs: get rid of some lockdep false positives") and
e9b526fe7048 ("i2c: suppress lockdep warning on delete_device"), which do
basically the same thing for USB "remove" and i2c "delete_device" files.

[1] https://lore.kernel.org/r/Pine.LNX.4.44L0.1204251436140.1206-100000@iolanthe.rowland.org
Link: https://lore.kernel.org/r/20190526225151.3865-1-marek.vasut@gmail.com
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
[bhelgaas: trim commit log, details at above links]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Phil Edworthy <phil.edworthy@renesas.com>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Tejun Heo <tj@kernel.org>
Cc: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 20:06:10 +02:00
..
accessibility A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi ACPI / SBS: Fix GPE storm on recent MacBookPro's 2020-04-06 15:20:26 +02:00
amba A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
android coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping 2020-04-06 19:09:33 +02:00
ata libata: Extend quirks for the ST1000LM024 drives with NOLPM quirk 2020-04-06 19:02:52 +02:00
atm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
auxdisplay A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
base regmap: fix bulk writes on paged registers 2020-04-06 19:54:53 +02:00
battery A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
battery_v2 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bcma A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
block floppy: fix out-of-bounds read in copy_buffer 2020-04-06 20:04:41 +02:00
bluetooth Bluetooth: hci_bcsp: Fix memory leak in rx_skb 2020-04-06 19:55:37 +02:00
bts A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bus A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ccic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cdrom cdrom: Fix race condition in cdrom_sysctl_register 2020-04-06 14:51:44 +02:00
char virtio_console: initialize vtermno value for ports 2020-04-06 18:20:12 +02:00
clk clk: rockchip: Turn on "aclk_dmac1" for suspend on rk3288 2020-04-06 19:02:15 +02:00
clocksource A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
connector A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpufreq cpufreq: pmac32: fix possible object reference leak 2020-04-06 18:19:31 +02:00
cpuidle A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crypto crypto: talitos - fix skcipher failure due to wrong output IV 2020-04-06 19:54:15 +02:00
dca A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devfreq A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dio A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma dmaengine: imx-sdma: fix use-after-free on probe error path 2020-04-06 19:54:01 +02:00
dma-buf A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
edac EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec 2020-04-06 19:55:33 +02:00
eisa A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extcon extcon: arizona: Disable mic detect if running when driver is removed 2020-04-06 18:19:23 +02:00
fingerprint A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
firewire A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
firmware A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
five A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fmc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fpga A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gator A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gpio gpio: omap: ensure irq is enabled before wakeup 2020-04-06 19:54:51 +02:00
gps A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gpu drm/virtio: Add memory barriers for capset cache. 2020-04-06 20:06:02 +02:00
gud A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hid HID: core: move Usage Page concatenation to Main item 2020-04-06 18:20:00 +02:00
hsi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hv A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hwmon hwmon: (pmbus/core) Treat parameters as paged if on multiple pages 2020-04-06 19:16:40 +02:00
hwspinlock A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hwtracing intel_th: msu: Fix single mode with disabled IOMMU 2020-04-06 20:04:57 +02:00
i2c i2c: dev: fix potential memory leak in i2cdev_ioctl_rdwr 2020-04-06 19:04:00 +02:00
ide A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
idle A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iio iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2020-04-06 18:19:39 +02:00
infiniband coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping 2020-04-06 19:09:33 +02:00
input Input: gtco - bounds check collection indent level 2020-04-06 19:55:51 +02:00
iommu iommu/vt-d: Set intel_iommu_gfx_mapped correctly 2020-04-06 19:01:59 +02:00
ipack A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irqchip A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
isdn mISDN: make sure device name is NUL terminated 2020-04-06 19:03:48 +02:00
leds leds: lp55xx: fix null deref on firmware load failure 2020-04-06 14:51:15 +02:00
lguest A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lightnvm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
macintosh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mailbox A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mcb A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
md dm bufio: fix deadlock with loop device 2020-04-06 20:05:03 +02:00
media media: coda: Remove unbalanced and unneeded mutex unlock 2020-04-06 20:04:21 +02:00
memory memory: tegra: Fix integer overflow on tick value calculation 2020-04-06 18:14:02 +02:00
memstick memstick: Fix error cleanup path of memstick_init 2020-04-06 20:05:56 +02:00
message A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mfd mfd: omap-usb-tll: Fix register offsets 2020-04-06 19:20:48 +02:00
misc VMCI: Fix integer overflow in VMCI handle arrays 2020-04-06 19:30:20 +02:00
mmc mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support 2020-04-06 18:19:19 +02:00
motor A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mtd A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
muic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
net bonding: validate ip header before check IPPROTO_IGMP 2020-04-06 20:05:26 +02:00
nfc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ntb A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nubus A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nvdimm libnvdimm/btt: Fix a kmemdup failure check 2020-04-06 16:43:30 +02:00
nvme A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nvmem nvmem: core: fix read buffer in place 2020-04-06 19:02:03 +02:00
of A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
oprofile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
parisc parisc: Use implicit space register selection for loading the coherence index of I/O pdirs 2020-04-06 18:45:12 +02:00
parport parport: Fix mem leak in parport_register_dev_model 2020-04-06 19:16:22 +02:00
pci PCI: sysfs: Ignore lockdep for remove attribute 2020-04-06 20:06:10 +02:00
pcmcia A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy phy: renesas: rcar-gen2: Fix memory leak at error paths 2020-04-06 20:06:04 +02:00
pinctrl pinctrl: rockchip: fix leaked of_node references 2020-04-06 20:05:52 +02:00
platform platform/chrome: cros_ec_proto: check for NULL transfer function 2020-04-06 19:02:11 +02:00
pnp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
power power: supply: sysfs: prevent endless uevent loop with CONFIG_POWER_SUPPLY_DEBUG 2020-04-06 18:14:39 +02:00
powercap A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pps A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ps3 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ptp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pwm pwm: Fix deadlock warning when removing PWM device 2020-04-06 19:02:42 +02:00
rapidio A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ras A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
regulator regulator: s2mps11: Fix buck7 and buck8 wrong voltages 2020-04-06 20:03:59 +02:00
remoteproc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reset A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rpmsg A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rtc rtc: 88pm860x: prevent use-after-free on device remove 2020-04-06 18:15:42 +02:00
s390 s390/qdio: handle PENDING state for QEBSM devices 2020-04-06 19:54:45 +02:00
sbus A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
scsi scsi: hpsa: correct ioaccel2 chaining 2020-04-06 19:17:51 +02:00
security/samsung/icdrv A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sensorhub A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sensors A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sfi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sn A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
soc soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher 2020-04-06 19:02:13 +02:00
spi spi: bitbang: Fix NULL pointer dereference in spi_unregister_master 2020-04-06 19:17:43 +02:00
spmi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ssb ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit 2020-04-06 18:15:20 +02:00
staging media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails. 2020-04-06 19:54:29 +02:00
switch A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tee A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
thermal thermal/int340x_thermal: fix mode setting 2020-04-06 15:17:09 +02:00
thunderbolt A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tty tty: serial: msm_serial: avoid system lockup condition 2020-04-06 20:06:00 +02:00
uh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uio A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
usb usb: gadget: Zero ffs_io_data 2020-04-06 20:06:06 +02:00
uwb A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vfio vfio/pci: use correct format characters 2020-04-06 16:42:19 +02:00
vhost vhost_net: disable zerocopy by default 2020-04-06 19:55:03 +02:00
video video: imsttfb: fix potential NULL pointer dereferences 2020-04-06 19:02:29 +02:00
virt drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl 2020-04-06 17:01:49 +02:00
virtio A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vision A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vlynq A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vme A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
w1 w1: fix the resume command API 2020-04-06 18:15:45 +02:00
watchdog A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock 2020-04-06 18:47:45 +02:00
zorro A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30