mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
* refs/heads/tmp-5c8d069: Revert "net: qrtr: Stop rx_worker before freeing node" Linux 4.14.147 Btrfs: fix race setting up and completing qgroup rescan workers btrfs: qgroup: Drop quota_root and fs_info parameters from update_qgroup_status_item mm/compaction.c: clear total_{migrate,free}_scanned before scanning a new zone md/raid0: avoid RAID0 data corruption due to layout confusion. CIFS: Fix oplock handling for SMB 2.1+ protocols CIFS: fix max ea value size i2c: riic: Clear NACK in tend isr hwrng: core - don't wait on add_early_randomness() quota: fix wrong condition in is_quota_modification() ext4: fix punch hole for inline_data file systems ext4: fix warning inside ext4_convert_unwritten_extents_endio /dev/mem: Bail out upon SIGKILL. cfg80211: Purge frame registrations on iftype change md: only call set_in_sync() when it is expected to succeed. md: don't report active array_state until after revalidate_disk() completes. md/raid6: Set R5_ReadError when there is read failure on parity disk btrfs: qgroup: Fix the wrong target io_tree when freeing reserved data space btrfs: Relinquish CPUs in btrfs_compare_trees Btrfs: fix use-after-free when using the tree modification log ovl: filter of trusted xattr results in audit memcg, kmem: do not fail __GFP_NOFAIL charges memcg, oom: don't require __GFP_FS when invoking memcg OOM killer gfs2: clear buf_in_tr when ending a transaction in sweep_bh_for_rgrps regulator: Defer init completion for a while after late_initcall alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP arm64: dts: rockchip: limit clock rate of MMC controllers for RK3328 ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up ARM: samsung: Fix system restart on S3C6410 ASoC: Intel: Fix use of potentially uninitialized variable ASoC: Intel: Skylake: Use correct function to access iomem space ASoC: Intel: NHLT: Fix debug print format binfmt_elf: Do not move brk for INTERP-less ET_EXEC media: sn9c20x: Add MSI MS-1039 laptop to flip_dmi_table KVM: x86: Manually calculate reserved bits when loading PDPTRS KVM: x86: set ctxt->have_exception in x86_decode_insn() KVM: x86: always stop emulation on page fault x86/retpolines: Fix up backport of a9d57ef15cbe parisc: Disable HP HSC-PCI Cards to prevent kernel crash fuse: fix missing unlock_page in fuse_writepage() ALSA: hda/realtek - Fixup mute led on HP Spectre x360 randstruct: Check member structs in is_pure_ops_struct() IB/hfi1: Define variables as unsigned long to fix KASAN warning printk: Do not lose last line in kmsg buffer dump scsi: scsi_dh_rdac: zero cdb in send_mode_select() ALSA: firewire-tascam: check intermediate state of clock status and retry ALSA: firewire-tascam: handle error code when getting current source of clock PM / devfreq: passive: fix compiler warning media: omap3isp: Set device on omap3isp subdevs btrfs: extent-tree: Make sure we only allocate extents from block groups with the same type ALSA: hda/realtek - Blacklist PC beep for Lenovo ThinkCentre M73/93 media: ttusb-dec: Fix info-leak in ttusb_dec_send_command() drm/amd/powerplay/smu7: enforce minimal VBITimeout (v2) ALSA: hda - Drop unsol event handler for Intel HDMI codecs e1000e: add workaround for possible stalled packet libertas: Add missing sentinel at end of if_usb.c fw_table raid5: don't increment read_errors on EILSEQ return mmc: sdhci: Fix incorrect switch to HS mode mmc: core: Clarify sdio_irq_pending flag for MMC_CAP2_SDIO_IRQ_NOTHREAD raid5: don't set STRIPE_HANDLE to stripe which is in batch list ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set s390/crypto: xts-aes-s390 fix extra run-time crypto self tests finding kprobes: Prohibit probing on BUG() and WARN() address dmaengine: ti: edma: Do not reset reserved paRAM slots md/raid1: fail run raid1 array when active disk less than one hwmon: (acpi_power_meter) Change log level for 'unsafe software power cap' ACPI / PCI: fix acpi_pci_irq_enable() memory leak ACPI: custom_method: fix memory leaks ARM: dts: exynos: Mark LDO10 as always-on on Peach Pit/Pi Chromebooks libtraceevent: Change users plugin directory iommu/iova: Avoid false sharing on fq_timer_on iommu/amd: Silence warnings under memory pressure nvmet: fix data units read and written counters in SMART log arm64: kpti: ensure patched kernel text is fetched from PoU ACPI / CPPC: do not require the _PSD method ASoC: es8316: fix headphone mixer volume table media: ov9650: add a sanity check perf trace beauty ioctl: Fix off-by-one error in cmd->string table media: saa7134: fix terminology around saa7134_i2c_eeprom_md7134_gate() media: cpia2_usb: fix memory leaks media: saa7146: add cleanup in hexium_attach() media: cec-notifier: clear cec_adap in cec_notifier_unregister PM / devfreq: exynos-bus: Correct clock enable sequence PM / devfreq: passive: Use non-devm notifiers EDAC/amd64: Decode syndrome before translating address EDAC/amd64: Recognize DRAM device type ECC capability libperf: Fix alignment trap with xyarray contents in 'perf stat' media: dvb-core: fix a memory leak bug nbd: add missing config put media: hdpvr: add terminating 0 at end of string media: radio/si470x: kill urb on error ARM: dts: imx7d: cl-som-imx7: make ethernet work again net: lpc-enet: fix printk format strings media: imx: mipi csi-2: Don't fail if initial state times-out media: omap3isp: Don't set streaming state on random subdevs media: i2c: ov5645: Fix power sequence perf record: Support aarch64 random socket_id assignment dmaengine: iop-adma: use correct printk format strings media: rc: imon: Allow iMON RC protocol for ffdc 7e device media: fdp1: Reduce FCP not found message level to debug media: mtk-mdp: fix reference count on old device tree perf test vfs_getname: Disable ~/.perfconfig to get default output media: gspca: zero usb_buf on error sched/fair: Use rq_lock/unlock in online_fair_sched_group efi: cper: print AER info of PCIe fatal error EDAC, pnd2: Fix ioremap() size in dnv_rd_reg() ACPI / processor: don't print errors for processorIDs == 0xff md: don't set In_sync if array is frozen md: don't call spare_active in md_reap_sync_thread if all member devices can't work md/raid1: end bio when the device faulty ASoC: rsnd: don't call clk_get_rate() under atomic context EDAC/altera: Use the proper type for the IRQ status bits ia64:unwind: fix double free for mod->arch.init_unw_table ALSA: usb-audio: Skip bSynchAddress endpoint check if it is invalid base: soc: Export soc_device_register/unregister APIs media: iguanair: add sanity checks EDAC/mc: Fix grain_bits calculation ALSA: i2c: ak4xxx-adda: Fix a possible null pointer dereference in build_adc_controls() ALSA: hda - Show the fatal CORB/RIRB error more clearly x86/apic: Soft disable APIC before initializing it x86/reboot: Always use NMI fallback when shutdown via reboot vector IPI fails sched/core: Fix CPU controller for !RT_GROUP_SCHED sched/fair: Fix imbalance due to CPU affinity media: i2c: ov5640: Check for devm_gpiod_get_optional() error media: hdpvr: Add device num check and handling media: exynos4-is: fix leaked of_node references media: mtk-cir: lower de-glitch counter for rc-mm protocol media: dib0700: fix link error for dibx000_i2c_set_speed leds: leds-lp5562 allow firmware files up to the maximum length dmaengine: bcm2835: Print error in case setting DMA mask fails ASoC: sgtl5000: Fix charge pump source assignment regulator: lm363x: Fix off-by-one n_voltages for lm3632 ldo_vpos/ldo_vneg ALSA: hda: Flush interrupts on disabling nfc: enforce CAP_NET_RAW for raw sockets ieee802154: enforce CAP_NET_RAW for raw sockets ax25: enforce CAP_NET_RAW for raw sockets appletalk: enforce CAP_NET_RAW for raw sockets mISDN: enforce CAP_NET_RAW for raw sockets net/mlx5: Add device ID of upcoming BlueField-2 usbnet: sanity checking of packet sizes and device mtu usbnet: ignore endpoints with invalid wMaxPacketSize skge: fix checksum byte order sch_netem: fix a divide by zero in tabledist() ppp: Fix memory leak in ppp_write openvswitch: change type of UPCALL_PID attribute to NLA_UNSPEC net_sched: add max len check for TCA_KIND net/sched: act_sample: don't push mac header on ip6gre ingress net: qrtr: Stop rx_worker before freeing node net/phy: fix DP83865 10 Mbps HDX loopback disable function macsec: drop skb sk before calling gro_cells_receive cdc_ncm: fix divide-by-zero caused by invalid wMaxPacketSize arcnet: provide a buffer big enough to actually receive packets f2fs: use generic EFSBADCRC/EFSCORRUPTED Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices xfs: don't crash on null attr fork xfs_bmapi_read ACPI: video: Add new hw_changes_brightness quirk, set it on PB Easynote MZ35 net: don't warn in inet diag when IPV6 is disabled drm: Flush output polling on shutdown f2fs: fix to do sanity check on segment bitmap of LFS curseg dm zoned: fix invalid memory access Revert "f2fs: avoid out-of-range memory access" blk-mq: move cancel of requeue_work to the front of blk_exit_queue PCI: hv: Avoid use of hv_pci_dev->pci_slot after freeing it f2fs: check all the data segments against all node ones irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices locking/lockdep: Add debug_locks check in __lock_downgrade() power: supply: sysfs: ratelimit property read error message pinctrl: sprd: Use define directive for sprd_pinconf_params values objtool: Clobber user CFLAGS variable ALSA: hda - Apply AMD controller workaround for Raven platform ALSA: hda - Add laptop imic fixup for ASUS M9V laptop arm64: kpti: Whitelist Cortex-A CPUs that don't implement the CSV3 field ASoC: fsl: Fix of-node refcount unbalance in fsl_ssi_probe_from_dt() media: tvp5150: fix switch exit in set control handler iwlwifi: mvm: send BCAST management frames to the right station crypto: talitos - fix missing break in switch statement mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword() HID: hidraw: Fix invalid read in hidraw_ioctl HID: logitech: Fix general protection fault caused by Logitech driver HID: sony: Fix memory corruption issue on cleanup. HID: prodikeys: Fix general protection fault during probe IB/core: Add an unbound WQ type to the new CQ API objtool: Query pkg-config for libelf location powerpc/xive: Fix bogus error code returned by OPAL Revert "Bluetooth: validate BLE connection interval updates" Conflicts: drivers/mmc/core/sdio_irq.c fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/inode.c Change-Id: I757f54737e4d58319f2866f687a39123f0889e1e Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
85 lines
2.0 KiB
C
85 lines
2.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_BUG_H
|
|
#define _LINUX_BUG_H
|
|
|
|
#include <asm/bug.h>
|
|
#include <linux/compiler.h>
|
|
#include <linux/build_bug.h>
|
|
|
|
enum bug_trap_type {
|
|
BUG_TRAP_TYPE_NONE = 0,
|
|
BUG_TRAP_TYPE_WARN = 1,
|
|
BUG_TRAP_TYPE_BUG = 2,
|
|
};
|
|
|
|
struct pt_regs;
|
|
|
|
#ifdef __CHECKER__
|
|
#define MAYBE_BUILD_BUG_ON(cond) (0)
|
|
#else /* __CHECKER__ */
|
|
|
|
#define MAYBE_BUILD_BUG_ON(cond) \
|
|
do { \
|
|
if (__builtin_constant_p((cond))) \
|
|
BUILD_BUG_ON(cond); \
|
|
else \
|
|
BUG_ON(cond); \
|
|
} while (0)
|
|
|
|
#endif /* __CHECKER__ */
|
|
|
|
#ifdef CONFIG_GENERIC_BUG
|
|
#include <asm-generic/bug.h>
|
|
|
|
static inline int is_warning_bug(const struct bug_entry *bug)
|
|
{
|
|
return bug->flags & BUGFLAG_WARNING;
|
|
}
|
|
|
|
struct bug_entry *find_bug(unsigned long bugaddr);
|
|
|
|
enum bug_trap_type report_bug(unsigned long bug_addr, struct pt_regs *regs);
|
|
|
|
/* These are defined by the architecture */
|
|
int is_valid_bugaddr(unsigned long addr);
|
|
|
|
#else /* !CONFIG_GENERIC_BUG */
|
|
|
|
static inline void *find_bug(unsigned long bugaddr)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline enum bug_trap_type report_bug(unsigned long bug_addr,
|
|
struct pt_regs *regs)
|
|
{
|
|
return BUG_TRAP_TYPE_BUG;
|
|
}
|
|
|
|
#endif /* CONFIG_GENERIC_BUG */
|
|
|
|
/*
|
|
* Since detected data corruption should stop operation on the affected
|
|
* structures. Return value must be checked and sanely acted on by caller.
|
|
*/
|
|
static inline __must_check bool check_data_corruption(bool v) { return v; }
|
|
#define CHECK_DATA_CORRUPTION(condition, fmt, ...) \
|
|
check_data_corruption(({ \
|
|
bool corruption = unlikely(condition); \
|
|
if (corruption) { \
|
|
if (IS_ENABLED(CONFIG_BUG_ON_DATA_CORRUPTION)) { \
|
|
pr_err(fmt, ##__VA_ARGS__); \
|
|
BUG(); \
|
|
} else \
|
|
WARN(1, fmt, ##__VA_ARGS__); \
|
|
} \
|
|
corruption; \
|
|
}))
|
|
|
|
#ifdef CONFIG_PANIC_ON_DATA_CORRUPTION
|
|
#define PANIC_CORRUPTION 1
|
|
#else
|
|
#define PANIC_CORRUPTION 0
|
|
#endif /* CONFIG_PANIC_ON_DATA_CORRUPTION */
|
|
#endif /* _LINUX_BUG_H */
|