This is a note to let you know that I've just added the patch titled
eventpoll.h: fix epoll event masks
to the 4.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git%3Ba=su...
The filename of the patch is: eventpoll.h-fix-epoll-event-masks.patch and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let stable@vger.kernel.org know about it.
From foo@baz Sun Mar 18 16:55:33 CET 2018
From: Greg KH gregkh@linuxfoundation.org Date: Wed, 8 Mar 2017 19:03:03 +0100 Subject: eventpoll.h: fix epoll event masks
From: Greg KH gregkh@linuxfoundation.org
[ Upstream commit 6f051e4a685b768f3704c7c069aa1edee3010622 ]
[resend due to me forgetting to cc: linux-api the first time around I posted these back on Feb 23]
From: Greg Kroah-Hartman gregkh@linuxfoundation.org
When userspace tries to use these defines, it complains that it needs to be an unsigned 1 that is shifted, so libc implementations have to create their own version. Fix this by defining it properly so that libcs can just use the kernel uapi header.
Reported-by: Elliott Hughes enh@google.com Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org Signed-off-by: Sasha Levin alexander.levin@microsoft.com Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org --- include/uapi/linux/eventpoll.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
--- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h @@ -40,7 +40,7 @@ #define EPOLLRDHUP 0x00002000
/* Set exclusive wakeup mode for the target file descriptor */ -#define EPOLLEXCLUSIVE (1 << 28) +#define EPOLLEXCLUSIVE (1U << 28)
/* * Request the handling of system wakeup events so as to prevent system suspends @@ -52,13 +52,13 @@ * * Requires CAP_BLOCK_SUSPEND */ -#define EPOLLWAKEUP (1 << 29) +#define EPOLLWAKEUP (1U << 29)
/* Set the One Shot behaviour for the target file descriptor */ -#define EPOLLONESHOT (1 << 30) +#define EPOLLONESHOT (1U << 30)
/* Set the Edge Triggered behaviour for the target file descriptor */ -#define EPOLLET (1 << 31) +#define EPOLLET (1U << 31)
/* * On x86-64 make the 64bit structure have the same alignment as the
Patches currently in stable-queue which might be from gregkh@linuxfoundation.org are
queue-4.9/nfc-pn533-change-order-of-free_irq-and-dev-unregistration.patch queue-4.9/dmaengine-bcm2835-dma-use-vchan_terminate_vdesc-instead-of-desc_free.patch queue-4.9/asoc-rt5677-add-of-device-id-table.patch queue-4.9/arm-dra7-hwmod_data-prevent-wait_target_disable-error-for-usb_otg_ss.patch queue-4.9/arm-dts-omap3-n900-fix-the-audio-codec-s-reset-pin.patch queue-4.9/hid-elo-clear-btn_left-mapping.patch queue-4.9/sched-stop-resched_cpu-from-sending-ipis-to-offline-cpus.patch queue-4.9/arm64-dts-r8a7796-remove-unit-address-and-reg-from-integrated-cache.patch queue-4.9/mips-bpf-quit-clobbering-callee-saved-registers-in-jit-code.patch queue-4.9/net-faraday-add-missing-include-of-of.h.patch queue-4.9/asoc-rcar-ssi-don-t-set-ssicr.ckdv-000-with-ssiwsr.cont.patch queue-4.9/selinux-check-for-address-length-in-selinux_socket_bind.patch queue-4.9/drm-ttm-never-add-bo-that-failed-to-validate-to-the-lru-list.patch queue-4.9/alsa-hda-add-geminilake-id-to-skl_plus.patch queue-4.9/arm-dts-r8a7791-remove-unit-address-and-reg-from-integrated-cache.patch queue-4.9/perf-buildid-do-not-assume-that-readlink-returns-a-null-terminated-string.patch queue-4.9/v4l-vsp1-prevent-multiple-streamon-race-commencing-pipeline-early.patch queue-4.9/net-thunderx-set-max-queue-count-taking-xdp_tx-into-account.patch queue-4.9/arm-dts-adjust-moxart-irq-controller-and-flags.patch queue-4.9/drm-defer-disabling-the-vblank-irq-until-the-next-interrupt-for-instant-off.patch queue-4.9/spi-omap2-mcspi-poll-omap2_mcspi_chstat_rxs-for-pio-transfer.patch queue-4.9/ath10k-fix-invalid-sts_cap_offset_mask.patch queue-4.9/drm-sun4i-fix-up-error-path-cleanup-for-master-bind-function.patch queue-4.9/qed-always-publish-vf-link-from-leading-hwfn.patch queue-4.9/qed-fix-tm-block-ilt-allocation.patch queue-4.9/printk-correctly-handle-preemption-in-console_unlock.patch queue-4.9/powerpc-nohash-fix-use-of-mmu_has_feature-in-setup_initial_memory_limit.patch queue-4.9/media-cpia2-fix-a-couple-off-by-one-bugs.patch queue-4.9/arm-dts-r7s72100-fix-ethernet-clock-parent.patch queue-4.9/net-hns-correct-hns-rss-key-set-function.patch queue-4.9/bonding-make-speed-duplex-setting-consistent-with-link-state.patch queue-4.9/sched-stop-switched_to_rt-from-sending-ipis-to-offline-cpus.patch queue-4.9/mac80211-remove-bug-when-interface-type-is-invalid.patch queue-4.9/perf-session-don-t-rely-on-evlist-in-pipe-mode.patch queue-4.9/net-fec-add-phy-reset-gpios-probe_defer-check.patch queue-4.9/vfio-spapr_tce-check-kzalloc-return-when-preregistering-memory.patch queue-4.9/kvm-nvmx-disallow-userspace-injected-exceptions-in-guest-mode.patch queue-4.9/sched-act_csum-don-t-mangle-tcp-and-udp-gso-packets.patch queue-4.9/arm-dts-r8a7791-correct-parent-of-ssi-clocks.patch queue-4.9/powerpc-avoid-taking-a-data-miss-on-every-userspace-instruction-miss.patch queue-4.9/net-xfrm-allow-clearing-socket-xfrm-policies.patch queue-4.9/omapfb-dss-handle-return-errors-in-dss_init_ports.patch queue-4.9/mtd-nand-ifc-update-bufnum-mask-for-ver-2.0.0.patch queue-4.9/mips-r2-on-r6-emu-clear-bltzall-and-bgezall-debugfs-counters.patch queue-4.9/regulator-core-limit-propagation-of-parent-voltage-count-and-list.patch queue-4.9/dmaengine-imx-sdma-add-1ms-delay-to-ensure-sdma-channel-is-stopped.patch queue-4.9/wil6210-fix-protection-against-connections-during-reset.patch queue-4.9/md.c-didn-t-unlock-the-mddev-before-return-einval-in-array_size_store.patch queue-4.9/net-8021q-create-device-with-all-possible-features-in-wanted_features.patch queue-4.9/lkdtm-turn-off-kcov-for-lkdtm_rodata_do_nothing.patch queue-4.9/drivers-net-xgene-fix-wrong-logical-operation.patch queue-4.9/pci-hv-lock-pci-bus-on-device-eject.patch queue-4.9/ath10k-fix-fetching-channel-during-potential-radar-detection.patch queue-4.9/net-ethernet-bgmac-allow-mac-address-to-be-specified-in-dtb.patch queue-4.9/powerpc-modules-don-t-try-to-restore-r2-after-a-sibling-call.patch queue-4.9/rtmutex-fix-pi-chain-order-integrity.patch queue-4.9/alsa-firewire-digi00x-handle-all-midi-messages-on-streaming-packets.patch queue-4.9/drm-amdgpu-fail-fb-creation-from-imported-dma-bufs.-v2.patch queue-4.9/leds-pm8058-silence-pointer-to-integer-size-warning.patch queue-4.9/qed-correct-msi-x-for-storage.patch queue-4.9/s390-topology-fix-typo-in-early-topology-code.patch queue-4.9/ath10k-fix-compile-time-sanity-check-for-ce4-buffer-size.patch queue-4.9/arm-dts-silk-correct-clock-of-du1.patch queue-4.9/of-fix-of_device_get_modalias-returned-length-when-truncating-buffers.patch queue-4.9/clk-qcom-msm8916-fix-mnd_width-for-codec_digcodec.patch queue-4.9/alsa-firewire-digi00x-add-support-for-console-models-of-digi00x-series.patch queue-4.9/arm-dts-exynos-correct-trats2-panel-reset-line.patch queue-4.9/power-supply-ab8500_charger-fix-an-error-handling-path.patch queue-4.9/perf-tools-make-perf_event__synthesize_mmap_events-scale.patch queue-4.9/perf-annotate-fix-a-bug-following-symbolic-link-of-a-build-id-file.patch queue-4.9/usb-dwc2-make-sure-we-disconnect-the-gadget-state.patch queue-4.9/veth-set-peer-gso-values.patch queue-4.9/arm-dts-r8a7792-remove-unit-address-and-reg-from-integrated-cache.patch queue-4.9/mips-r2-on-r6-emu-fix-blezl-and-bgtzl-identification.patch queue-4.9/i40e-acquire-nvm-lock-before-reads-on-all-devices.patch queue-4.9/drivers-net-xgene-fix-hardware-checksum-setting.patch queue-4.9/usb-misc-lvs-fix-race-condition-in-disconnect-handling.patch queue-4.9/bonding-refine-bond_fold_stats-wrap-detection.patch queue-4.9/mac80211_hwsim-enforce-ps_manual_poll-to-be-set-after-ps_enabled.patch queue-4.9/driver-adm1275-set-the-m-b-and-r-coefficients-correctly-for-power.patch queue-4.9/pwm-stmpe-fix-wrong-register-offset-for-hwpwm-2-case.patch queue-4.9/scsi-sg-check-for-valid-direction-before-starting-the-request.patch queue-4.9/x86-mce-handle-broadcasted-mce-gracefully-with-kexec.patch queue-4.9/drm-radeon-fail-fb-creation-from-imported-dma-bufs.patch queue-4.9/clk-meson-gxbb-fix-wrong-clock-for-saradc-sana.patch queue-4.9/iwlwifi-mvm-rs-don-t-override-the-rate-history-in-the-search-cycle.patch queue-4.9/mm-fix-false-positive-vm_bug_on-in-page_cache_-get-add-_speculative.patch queue-4.9/sysrq-reset-the-watchdog-timers-while-displaying-high-resolution-timers.patch queue-4.9/locking-locktorture-fix-num-reader-writer-corner-cases.patch queue-4.9/ath10k-update-tdls-teardown-state-to-target.patch queue-4.9/nfc-nfcmrvl-include-unaligned.h-instead-of-access_ok.h.patch queue-4.9/v4l-vsp1-register-pipe-with-output-wpf.patch queue-4.9/rcutorture-configinit-fix-build-directory-error-message.patch queue-4.9/ath10k-fix-a-warning-during-channel-switch-with-multiple-vaps.patch queue-4.9/netem-apply-correct-delay-when-rate-throttling.patch queue-4.9/zd1211rw-fix-null-deref-at-probe.patch queue-4.9/mac80211_hwsim-use-per-interface-power-level.patch queue-4.9/scsi-devinfo-apply-to-hp-xp-the-same-flags-as-hitachi-vsp.patch queue-4.9/tty-amba-pl011-fix-spurious-tx-interrupts.patch queue-4.9/kprobes-x86-set-kprobes-pages-read-only.patch queue-4.9/batman-adv-handle-race-condition-for-claims-between-gateways.patch queue-4.9/input-qt1070-add-of-device-id-table.patch queue-4.9/hid-clamp-input-to-logical-range-if-no-null-state.patch queue-4.9/input-tsc2007-check-for-presence-and-power-down-tsc2007-during-probe.patch queue-4.9/perf-stat-issue-a-hw-watchdog-disable-hint.patch queue-4.9/vxlan-vxlan-dev-should-inherit-lowerdev-s-gso_max_size.patch queue-4.9/braille-console-fix-value-returned-by-_braille_console_setup.patch queue-4.9/drm-sun4i-set-drm_crtc.port-to-the-underlying-tcon-s-output-port-node.patch queue-4.9/fm10k-correctly-check-if-interface-is-removed.patch queue-4.9/x86-mm-make-mmap-map_32bit-work-correctly.patch queue-4.9/drm-sun4i-fix-tcon-clock-and-regmap-initialization-sequence.patch queue-4.9/drm-rcar-du-handle-event-when-disabling-crtcs.patch queue-4.9/regulator-isl9305-fix-array-size.patch queue-4.9/kprobes-x86-fix-kprobe-booster-not-to-boost-far-call-instructions.patch queue-4.9/arm-dts-koelsch-correct-clock-frequency-of-x2-du-clock-input.patch queue-4.9/arm-dts-r8a7794-correct-clock-of-du1.patch queue-4.9/arm-brcmstb-enable-zone_dma-for-non-64-bit-capable-peripherals.patch queue-4.9/arm-dts-r8a7794-remove-unit-address-and-reg-from-integrated-cache.patch queue-4.9/scsi-ipr-fix-missed-eh-wakeup.patch queue-4.9/perf-sort-fix-segfault-with-basic-block-cycles-sort-dimension.patch queue-4.9/iommu-iova-fix-underflow-bug-in-__alloc_and_insert_iova_range.patch queue-4.9/timers-sched_clock-update-timeout-for-clock-wrap.patch queue-4.9/perf-trace-handle-unpaired-raw_syscalls-sys_exit-event.patch queue-4.9/reiserfs-make-cancel_old_flush-reliable.patch queue-4.9/nfc-nfcmrvl-double-free-on-error-path.patch queue-4.9/clk-sunxi-ng-a33-add-offset-and-minimum-value-for-ddr1-pll-n-factor.patch queue-4.9/md-raid6-fix-anomily-when-recovering-a-single-device-in-raid6.patch queue-4.9/perf-probe-fix-concat_probe_trace_events.patch queue-4.9/bnxt_en-don-t-print-link-speed-1-no-longer-supported-messages.patch queue-4.9/drm-qxl-don-t-alloc-fbdev-if-emulation-is-not-supported.patch queue-4.9/arm-dts-bcm2835-add-index-to-the-ethernet-alias.patch queue-4.9/userns-don-t-fail-follow_automount-based-on-s_user_ns.patch queue-4.9/blk-throttle-make-sure-expire-time-isn-t-too-big.patch queue-4.9/blkcg-fix-double-free-of-new_blkg-in-blkcg_init_queue.patch queue-4.9/wil6210-fix-memory-access-violation-in-wil_memcpy_from-toio_32.patch queue-4.9/video-hdmi-allow-empty-hdmi-infoframes.patch queue-4.9/powerpc-xmon-fix-an-unexpected-xmon-on-off-state-change.patch queue-4.9/serial-imx-setup-dcedte-early-and-ensure-dcd-and-ri-irqs-to-be-off.patch queue-4.9/bluetooth-6lowpan-fix-delay-work-init-in-add_peer_chan.patch queue-4.9/soc-tegra-fix-link-errors-with-pmc-disabled.patch queue-4.9/test_firmware-fix-setting-old-custom-fw-path-back-on-exit.patch queue-4.9/scsi-fnic-fix-for-number-of-active-ios-in-fnicstats-becoming-negative.patch queue-4.9/arm-dts-r8a7793-remove-unit-address-and-reg-from-integrated-cache.patch queue-4.9/staging-speakup-replace-bug_on-with-warn_on.patch queue-4.9/hid-reject-input-outside-logical-range-only-if-null-state-is-set.patch queue-4.9/scsi-sg-close-race-condition-in-sg_remove_sfp_usercontext.patch queue-4.9/ima-relax-requiring-a-file-signature-for-new-files-with-zero-length.patch queue-4.9/edac-altera-fix-peripheral-warnings-for-cyclone5.patch queue-4.9/arm-dts-r8a7793-correct-parent-of-ssi-clocks.patch queue-4.9/x86-boot-32-defer-resyncing-initial_page_table-until-per-cpu-is-set-up.patch queue-4.9/pci-msi-stop-disabling-msi-msi-x-in-pci_device_shutdown.patch queue-4.9/staging-wilc1000-add-check-for-kmalloc-allocation-failure.patch queue-4.9/scsi-be2iscsi-check-tag-in-beiscsi_mccq_compl_wait.patch queue-4.9/kvm-svm-setup-mcg_cap-on-amd-properly.patch queue-4.9/usb-gadget-dummy_hcd-fix-wrong-power-status-bit-clear-reset-in-dummy_hub_control.patch queue-4.9/ib-hfi1-check-for-qsfp-presence-before-attempting-reads.patch queue-4.9/usb-dwc3-make-sure-ux_exit_px-is-cleared.patch queue-4.9/perf-inject-copy-events-when-reordering-events-in-pipe-mode.patch queue-4.9/power-supply-ab8500_charger-bail-out-in-case-of-error-in-ab8500_charger_init_hw_registers.patch queue-4.9/media-vsp1-prevent-suspending-and-resuming-drm-pipelines.patch queue-4.9/scsi-ses-don-t-get-power-status-of-ses-device-slot-on-probe.patch queue-4.9/drm-vmwgfx-fixes-to-vmwgfx_fb.patch queue-4.9/eventpoll.h-fix-epoll-event-masks.patch queue-4.9/clk-qcom-msm8996-fix-the-vfe1-powerdomain-name.patch queue-4.9/pci-apply-cavium-acs-quirk-only-to-cn81xx-cn83xx-cn88xx-devices.patch queue-4.9/perf-probe-return-errno-when-not-hitting-any-event.patch queue-4.9/spi-sun6i-disable-unprepare-clocks-on-remove.patch queue-4.9/x86-mce-init-some-cpu-features-early.patch queue-4.9/arm-dts-r8a7790-correct-parent-of-ssi-clocks.patch queue-4.9/mips-bpf-fix-multiple-problems-in-jit-skb-access-helpers.patch queue-4.9/net-mvpp2-set-dma-mask-and-coherent-dma-mask-on-ppv2.2.patch queue-4.9/mwifiex-cfg80211-do-not-change-virtual-interface-during-scan-processing.patch queue-4.9/ipvlan-add-l2-check-for-packets-arriving-via-virtual-devices.patch queue-4.9/video-arm-clcd-fix-dma-allocation-size.patch queue-4.9/drm-edid-set-eld-connector-type-in-drm_edid_to_eld.patch queue-4.9/iwlwifi-mvm-fix-rx-skb-header-size-and-align-it-properly.patch queue-4.9/drm-amdkfd-fix-memory-leaks-in-kfd-topology.patch queue-4.9/pci-hv-properly-handle-pci-bus-remove.patch queue-4.9/drivers-net-xgene-fix-rx-checksum-validation-logic.patch queue-4.9/media-i2c-soc_camera-fix-ov6650-sensor-getting-wrong-clock.patch queue-4.9/pwm-tegra-increase-precision-in-pwm-rate-calculation.patch queue-4.9/net-ieee802154-adf7242-fix-bug-if-defined-debug.patch queue-4.9/arm-bcm2835-enable-missing-cma-settings-for-vc4-driver.patch queue-4.9/agp-intel-flush-all-chipset-writes-after-updating-the-ggtt.patch queue-4.9/arm-dts-am335x-pepper-fix-the-audio-codec-s-reset-pin.patch queue-4.9/drivers-net-phy-xgene-fix-mdio-write.patch queue-4.9/apparmor-make-path_max-parameter-readonly.patch queue-4.9/perf-evsel-return-exact-sub-event-which-failed-with-eperm-for-wildcards.patch queue-4.9/powerpc-mm-hugetlb-filter-out-hugepage-size-not-supported-by-page-table-layout.patch queue-4.9/scsi-core-scsi_get_device_flags_keyed-always-return-device-flags.patch queue-4.9/f2fs-relax-node-version-check-for-victim-data-in-gc.patch queue-4.9/scsi-dh-add-new-rdac-devices.patch queue-4.9/scsi-ses-don-t-ask-for-diagnostic-pages-repeatedly-during-probe.patch queue-4.9/mwifiex-fix-invalid-port-issue.patch queue-4.9/solo6x10-release-vb2-buffers-in-solo_stop_streaming.patch queue-4.9/i40e-fix-ethtool-to-get-eeprom-data-from-x722-interface.patch queue-4.9/drm-rockchip-vop-enable-pm-domain-before-vop_initial.patch queue-4.9/bluetooth-avoid-bt_accept_unlink-double-unlinking.patch queue-4.9/i40e-only-register-client-on-iwarp-capable-devices.patch queue-4.9/alsa-firewire-lib-add-a-quirk-of-packet-without-valid-eoh-in-cip-format.patch queue-4.9/drivers-perf-arm_pmu-handle-no-platform_device.patch queue-4.9/tcp-sysctl-fix-a-race-to-avoid-unexpected-0-window-from-space.patch queue-4.9/i40e-i40evf-fix-use-after-free-in-rx-cleanup-path.patch queue-4.9/asoc-nuc900-fix-a-loop-timeout-test.patch queue-4.9/tools-usbip-fixes-build-with-musl-libc-toolchain.patch queue-4.9/coresight-fixes-coresight-dt-parse-to-get-correct-output-port-id.patch queue-4.9/mtd-nand-fix-interpretation-of-nand_cmd_none-in-nand_command.patch queue-4.9/perf-stat-fix-bug-in-handling-events-in-error-state.patch queue-4.9/vfio-powerpc-spapr_tce-enforce-iommu-type-compatibility-check.patch queue-4.9/ath10k-disallow-dfs-simulation-if-dfs-channel-is-not-enabled.patch