13 Nov, 2020

4 commits

  • …cm/fs/fscrypt/fscrypt") into android-mainline

    Steps on the way to 5.10-rc4

    Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
    Change-Id: I8554ba37704bee02192ff6117d4909fde568fca2

    Greg Kroah-Hartman
     
  • Pull networking fixes from Jakub Kicinski:
    "Current release - regressions:

    - arm64: dts: fsl-ls1028a-kontron-sl28: specify in-band mode for
    ENETC

    Current release - bugs in new features:

    - mptcp: provide rmem[0] limit offset to fix oops

    Previous release - regressions:

    - IPv6: Set SIT tunnel hard_header_len to zero to fix path MTU
    calculations

    - lan743x: correctly handle chips with internal PHY

    - bpf: Don't rely on GCC __attribute__((optimize)) to disable GCSE

    - mlx5e: Fix VXLAN port table synchronization after function reload

    Previous release - always broken:

    - bpf: Zero-fill re-used per-cpu map element

    - fix out-of-order UDP packets when forwarding with UDP GSO fraglists
    turned on:
    - fix UDP header access on Fast/frag0 UDP GRO
    - fix IP header access and skb lookup on Fast/frag0 UDP GRO

    - ethtool: netlink: add missing netdev_features_change() call

    - net: Update window_clamp if SOCK_RCVBUF is set

    - igc: Fix returning wrong statistics

    - ch_ktls: fix multiple leaks and corner cases in Chelsio TLS offload

    - tunnels: Fix off-by-one in lower MTU bounds for ICMP/ICMPv6 replies

    - r8169: disable hw csum for short packets on all chip versions

    - vrf: Fix fast path output packet handling with async Netfilter
    rules"

    * tag 'net-5.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (65 commits)
    lan743x: fix use of uninitialized variable
    net: udp: fix IP header access and skb lookup on Fast/frag0 UDP GRO
    net: udp: fix UDP header access on Fast/frag0 UDP GRO
    devlink: Avoid overwriting port attributes of registered port
    vrf: Fix fast path output packet handling with async Netfilter rules
    cosa: Add missing kfree in error path of cosa_write
    net: switch to the kernel.org patchwork instance
    ch_ktls: stop the txq if reaches threshold
    ch_ktls: tcb update fails sometimes
    ch_ktls/cxgb4: handle partial tag alone SKBs
    ch_ktls: don't free skb before sending FIN
    ch_ktls: packet handling prior to start marker
    ch_ktls: Correction in middle record handling
    ch_ktls: missing handling of header alone
    ch_ktls: Correction in trimmed_len calculation
    cxgb4/ch_ktls: creating skbs causes panic
    ch_ktls: Update cheksum information
    ch_ktls: Correction in finding correct length
    cxgb4/ch_ktls: decrypted bit is not enough
    net/x25: Fix null-ptr-deref in x25_connect
    ...

    Linus Torvalds
     
  • Pull power management fixes from Rafael Wysocki:
    "Make the intel_pstate driver behave as expected when it operates in
    the passive mode with HWP enabled and the 'powersave' governor on top
    of it"

    * tag 'pm-5.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    cpufreq: intel_pstate: Take CPUFREQ_GOV_STRICT_TARGET into account
    cpufreq: Add strict_target to struct cpufreq_policy
    cpufreq: Introduce CPUFREQ_GOV_STRICT_TARGET
    cpufreq: Introduce governor flags

    Linus Torvalds
     
  • The FUSE_PASSTHROUGH flag has a conflict with linux-next, in which this id
    has been reserved for other purposes.
    Update FUSE_PASSTHROUGH bit id to one that has not been reserved upstream
    yet.

    Bug: 168023149
    Fixes: 314603f83de1 ("FROMLIST: fuse: Definitions and ioctl() for passthrough")
    Link: https://lore.kernel.org/lkml/20201026125016.1905945-2-balsini@android.com/
    Signed-off-by: Alessio Balsini
    Change-Id: Ida0097fd2f9adee3bc85526dc6c78c7a87ac8f13

    Alessio Balsini
     

12 Nov, 2020

4 commits


11 Nov, 2020

8 commits

  • Create a vendor hook for jiffies updates by the
    tick_do_timer_cpu.

    Bug: 148928265
    Change-Id: Ia442e20d446b8ce4f2b3f2be76655e72919c76eb
    Signed-off-by: Amir Vajid

    Amir Vajid
     
  • Add vendor hook for skipping console flush in cpu hotplug.

    Bug: 165340180
    Change-Id: I167e1595bbb50e57371bfabfde638624761d5f8a
    Signed-off-by: Prasad Sodagudi

    Prasad Sodagudi
     
  • Tasklets are supposed to finish their work quickly and
    should not block the current running process, but it is not
    guaranteed that. Currently softirq_entry/exit can be used to
    know total tasklets execution time, but not helpful to track
    individual tasklet's execution time. With that we can't find
    any culprit tasklet function, which is taking more time.

    Add {hi}-tasklet_entry/exit trace point support to track
    individual tasklet execution.

    Bug: 168521633
    Change-Id: I3496d15f64d020916774e673ccb4a8116ea2f2c9
    Signed-off-by: Lingutla Chandrasekhar
    [elavila: Port to mainline]
    Signed-off-by: J. Avila

    Lingutla Chandrasekhar
     
  • Defer the softirq processing to ksoftirqd if a RT task is running
    or queued on the current CPU. This complements the RT task placement
    algorithm which tries to find a CPU that is not currently busy with
    softirqs.

    Currently NET_TX, NET_RX, BLOCK and TASKLET softirqs are only deferred
    as they can potentially run for long time.

    Bug: 168521633
    Change-Id: Id7665244af6bbd5a96d9e591cf26154e9eaa860c
    Signed-off-by: Pavankumar Kondeti
    [satyap@codeaurora.org: trivial merge conflict resolution.]
    Signed-off-by: Satya Durga Srinivasu Prabhala
    [elavila: Port to mainline, squash with bugfix]
    Signed-off-by: J. Avila

    Pavankumar Kondeti
     
  • The scheduling change to avoid putting RT threads on cores that
    are handling softint's was catching cases where there was no reason
    to believe the softint would take a long time, resulting in unnecessary
    migration overhead. This patch reduces the migration to cases where
    the core has a softint that is actually likely to take a long time,
    as opposed to the RCU, SCHED, and TIMER softints that are rather quick.

    Bug: 31752786
    Bug: 168521633
    Change-Id: Ib4e179f1e15c736b2fdba31070494e357e9fbbe2
    Signed-off-by: John Dias
    [elavila: Amend commit text for AOSP, port to mainline]
    Signed-off-by: J. Avila

    John Dias
     
  • Add a new field to be set when the CPUFREQ_GOV_STRICT_TARGET flag is
    set for the current governor to struct cpufreq_policy, so that the
    drivers needing to check CPUFREQ_GOV_STRICT_TARGET do not have to
    access the governor object during every frequency transition.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Viresh Kumar

    Rafael J. Wysocki
     
  • Introduce a new governor flag, CPUFREQ_GOV_STRICT_TARGET, for the
    governors that want the target frequency to be set exactly to the
    given value without leaving any room for adjustments on the hardware
    side and set this flag for the powersave and performance governors.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Viresh Kumar

    Rafael J. Wysocki
     
  • A new cpufreq governor flag will be added subsequently, so replace
    the bool dynamic_switching fleid in struct cpufreq_governor with a
    flags field and introduce CPUFREQ_GOV_DYNAMIC_SWITCHING to set for
    the "dynamic switching" governors instead of it.

    No intentional functional impact.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Viresh Kumar

    Rafael J. Wysocki
     

10 Nov, 2020

2 commits

  • Pull nfsd fixes from Bruce Fields:
    "This is mainly server-to-server copy and fallout from Chuck's 5.10 rpc
    refactoring"

    * tag 'nfsd-5.10-1' of git://linux-nfs.org/~bfields/linux:
    net/sunrpc: fix useless comparison in proc_do_xprt()
    net/sunrpc: return 0 on attempt to write to "transports"
    NFSD: fix missing refcount in nfsd4_copy by nfsd4_do_async_copy
    NFSD: Fix use-after-free warning when doing inter-server copy
    NFSD: MKNOD should return NFSERR_BADTYPE instead of NFSERR_INVAL
    SUNRPC: Fix general protection fault in trace_rpc_xdr_overflow()
    NFSD: NFSv3 PATHCONF Reply is improperly formed

    Linus Torvalds
     
  • Pull ext4 fixes and cleanups from Ted Ts'o:
    "More fixes and cleanups for the new fast_commit features, but also a
    few other miscellaneous bug fixes and a cleanup for the MAINTAINERS
    file"

    * tag 'ext4_for_linus_cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (28 commits)
    jbd2: fix up sparse warnings in checkpoint code
    ext4: fix sparse warnings in fast_commit code
    ext4: cleanup fast commit mount options
    jbd2: don't start fast commit on aborted journal
    ext4: make s_mount_flags modifications atomic
    ext4: issue fsdev cache flush before starting fast commit
    ext4: disable fast commit with data journalling
    ext4: fix inode dirty check in case of fast commits
    ext4: remove unnecessary fast commit calls from ext4_file_mmap
    ext4: mark buf dirty before submitting fast commit buffer
    ext4: fix code documentatioon
    ext4: dedpulicate the code to wait on inode that's being committed
    jbd2: don't read journal->j_commit_sequence without taking a lock
    jbd2: don't touch buffer state until it is filled
    jbd2: add todo for a fast commit performance optimization
    jbd2: don't pass tid to jbd2_fc_end_commit_fallback()
    jbd2: don't use state lock during commit path
    jbd2: drop jbd2_fc_init documentation
    ext4: clean up the JBD2 API that initializes fast commits
    jbd2: rename j_maxlen to j_total_len and add jbd2_journal_max_txn_bufs
    ...

    Linus Torvalds
     

09 Nov, 2020

3 commits

  • Linux 5.10-rc3

    Signed-off-by: Greg Kroah-Hartman
    Change-Id: I7884051ea7b86204b2685b51462368e122ad0772

    Greg Kroah-Hartman
     
  • Pull xfs fixes from Darrick Wong:

    - Fix an uninitialized struct problem

    - Fix an iomap problem zeroing unwritten EOF blocks

    - Fix some clumsy error handling when writeback fails on filesystems
    with blocksize < pagesize

    - Fix a retry loop not resetting loop variables properly

    - Fix scrub flagging rtinherit inodes on a non-rt fs, since the kernel
    actually does permit that combination

    - Fix excessive page cache flushing when unsharing part of a file

    * tag 'xfs-5.10-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
    xfs: only flush the unshared range in xfs_reflink_unshare
    xfs: fix scrub flagging rtinherit even if there is no rt device
    xfs: fix missing CoW blocks writeback conversion retry
    iomap: clean up writeback state logic on writepage error
    iomap: support partial page discard on writeback block mapping failure
    xfs: flush new eof page on truncate to avoid post-eof corruption
    xfs: set xefi_discard when creating a deferred agfl free log intent item

    Linus Torvalds
     
  • Merge procfs splice read fixes from Christoph Hellwig:
    "Greg reported a problem due to the fact that Android tests use procfs
    files to test splice, which stopped working with the changes for
    set_fs() removal.

    This series adds read_iter support for seq_file, and uses those for
    various proc files using seq_file to restore splice read support"

    [ Side note: Christoph initially had a scripted "move everything over"
    patch, which looks fine, but I personally would prefer us to actively
    discourage splice() on random files. So this does just the minimal
    basic core set of proc file op conversions.

    For completeness, and in case people care, that script was

    sed -i -e 's/\.proc_read\(\s*=\s*\)seq_read/\.proc_read_iter\1seq_read_iter/g'

    but I'll wait and see if somebody has a strong argument for using
    splice on random small /proc files before I'd run it on the whole
    kernel. - Linus ]

    * emailed patches from Christoph Hellwig :
    proc "seq files": switch to ->read_iter
    proc "single files": switch to ->read_iter
    proc/stat: switch to ->read_iter
    proc/cpuinfo: switch to ->read_iter
    proc: wire up generic_file_splice_read for iter ops
    seq_file: add seq_read_iter

    Linus Torvalds
     

08 Nov, 2020

1 commit

  • Pull io_uring fixes from Jens Axboe:
    "A set of fixes for io_uring:

    - SQPOLL cancelation fixes

    - Two fixes for the io_identity COW

    - Cancelation overflow fix (Pavel)

    - Drain request cancelation fix (Pavel)

    - Link timeout race fix (Pavel)"

    * tag 'io_uring-5.10-2020-11-07' of git://git.kernel.dk/linux-block:
    io_uring: fix link lookup racing with link timeout
    io_uring: use correct pointer for io_uring_show_cred()
    io_uring: don't forget to task-cancel drained reqs
    io_uring: fix overflowed cancel w/ linked ->files
    io_uring: drop req/tctx io_identity separately
    io_uring: ensure consistent view of original task ->mm from SQPOLL
    io_uring: properly handle SQPOLL request cancelations
    io-wq: cancel request if it's asking for files and we don't have them

    Linus Torvalds
     

07 Nov, 2020

13 commits

  • Fast commits don't work with data journalling. This patch disables the
    fast commit support when data journalling is turned on.

    Suggested-by: Jan Kara
    Signed-off-by: Harshad Shirwadkar
    Reviewed-by: Jan Kara
    Link: https://lore.kernel.org/r/20201106035911.1942128-19-harshadshirwadkar@gmail.com
    Signed-off-by: Theodore Ts'o

    Harshad Shirwadkar
     
  • In jbd2_fc_end_commit_fallback(), we know which tid to commit. There's
    no need for caller to pass it.

    Suggested-by: Jan Kara
    Signed-off-by: Harshad Shirwadkar
    Link: https://lore.kernel.org/r/20201106035911.1942128-10-harshadshirwadkar@gmail.com
    Signed-off-by: Theodore Ts'o

    Harshad Shirwadkar
     
  • Variables journal->j_fc_off, journal->j_fc_wbuf are accessed during
    commit path. Since today we allow only one process to perform a fast
    commit, there is no need take state lock before accessing these
    variables. This patch removes these locks and adds comments to
    describe this.

    Suggested-by: Jan Kara
    Signed-off-by: Harshad Shirwadkar
    Link: https://lore.kernel.org/r/20201106035911.1942128-9-harshadshirwadkar@gmail.com
    Signed-off-by: Theodore Ts'o

    Harshad Shirwadkar
     
  • This patch removes jbd2_fc_init() API and its related functions to
    simplify enabling fast commits. With this change, the number of fast
    commit blocks to use is solely determined by the JBD2 layer. So, we
    move the default value for minimum number of fast commit blocks from
    ext4/fast_commit.h to include/linux/jbd2.h. However, whether or not to
    use fast commits is determined by the file system. The file system
    just sets the fast commit feature using
    jbd2_journal_set_features(). JBD2 layer then determines how many
    blocks to use for fast commits (based on the value found in the JBD2
    superblock).

    Note that the JBD2 feature flag of fast commits is just an indication
    that there are fast commit blocks present on disk. It doesn't tell
    JBD2 layer about the intent of the file system of whether to it wants
    to use fast commit or not. That's why, we blindly clear the fast
    commit flag in journal_reset() after the recovery is done.

    Suggested-by: Jan Kara
    Signed-off-by: Harshad Shirwadkar
    Link: https://lore.kernel.org/r/20201106035911.1942128-7-harshadshirwadkar@gmail.com
    Signed-off-by: Theodore Ts'o

    Harshad Shirwadkar
     
  • The on-disk superblock field sb->s_maxlen represents the total size of
    the journal including the fast commit area and is no more the max
    number of blocks available for a transaction. The maximum number of
    blocks available to a transaction is reduced by the number of fast
    commit blocks. So, this patch renames j_maxlen to j_total_len to
    better represent its intent. Also, it adds a function to calculate max
    number of bufs available for a transaction.

    Suggested-by: Jan Kara
    Signed-off-by: Harshad Shirwadkar
    Link: https://lore.kernel.org/r/20201106035911.1942128-6-harshadshirwadkar@gmail.com
    Signed-off-by: Theodore Ts'o

    Harshad Shirwadkar
     
  • If inode gets evicted due to memory pressure, we have to remove it
    from the fast commit list. However, that inode may have uncommitted
    changes that fast commits will lose. So, just fall back to full
    commits in this case. Also, rename the fast commit ineligiblity reason
    from "EXT4_FC_REASON_MEM" to "EXT4_FC_REASON_MEM_NOMEM" for better
    expression.

    Suggested-by: Jan Kara
    Signed-off-by: Harshad Shirwadkar
    Link: https://lore.kernel.org/r/20201106035911.1942128-3-harshadshirwadkar@gmail.com
    Signed-off-by: Theodore Ts'o

    Harshad Shirwadkar
     
  • Alexei Starovoitov says:

    ====================
    pull-request: bpf 2020-11-06

    1) Pre-allocated per-cpu hashmap needs to zero-fill reused element, from David.

    2) Tighten bpf_lsm function check, from KP.

    3) Fix bpftool attaching to flow dissector, from Lorenz.

    4) Use -fno-gcse for the whole kernel/bpf/core.c instead of function attribute, from Ard.

    * git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf:
    bpf: Update verification logic for LSM programs
    bpf: Zero-fill re-used per-cpu map element
    bpf: BPF_PRELOAD depends on BPF_SYSCALL
    tools/bpftool: Fix attaching flow dissector
    libbpf: Fix possible use after free in xsk_socket__delete
    libbpf: Fix null dereference in xsk_socket__delete
    libbpf, hashmap: Fix undefined behavior in hash_bits
    bpf: Don't rely on GCC __attribute__((optimize)) to disable GCSE
    tools, bpftool: Remove two unused variables.
    tools, bpftool: Avoid array index warnings.
    xsk: Fix possible memory leak at socket close
    bpf: Add struct bpf_redir_neigh forward declaration to BPF helper defs
    samples/bpf: Set rlimit for memlock to infinity in all samples
    bpf: Fix -Wshadow warnings
    selftest/bpf: Fix profiler test using CO-RE relocation for enums
    ====================

    Link: https://lore.kernel.org/r/20201106221759.24143-1-alexei.starovoitov@gmail.com
    Signed-off-by: Jakub Kicinski

    Jakub Kicinski
     
  • Pull sound fixes from Takashi Iwai:
    "Quite a bunch of small fixes that have been gathered since the last
    pull, including changes like below:

    - HD-audio runtime PM fixes and refactoring

    - HD-audio and USB-audio quirks

    - SOF warning fix

    - Various ASoC device-specific fixes for Intel, Qualcomm, etc"

    * tag 'sound-5.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (26 commits)
    ALSA: usb-audio: Add implicit feedback quirk for Qu-16
    ASoC: mchp-spdiftx: Do not set Validity bit(s)
    ALSA: usb-audio: Add implicit feedback quirk for MODX
    ALSA: usb-audio: add usb vendor id as DSD-capable for Khadas devices
    ALSA: hda/realtek - Enable headphone for ASUS TM420
    ALSA: hda: prevent undefined shift in snd_hdac_ext_bus_get_link()
    ASoC: qcom: lpass-cpu: Fix clock disable failure
    ASoC: qcom: lpass-sc7180: Fix MI2S bitwidth field bit positions
    ASoC: codecs: wcd9335: Set digital gain range correctly
    ASoC: codecs: wcd934x: Set digital gain range correctly
    ALSA: hda: Reinstate runtime_allow() for all hda controllers
    ALSA: hda: Separate runtime and system suspend
    ALSA: hda: Refactor codec PM to use direct-complete optimization
    ALSA: hda/realtek - Fixed HP headset Mic can't be detected
    ALSA: usb-audio: Add implicit feedback quirk for Zoom UAC-2
    ALSA: make snd_kcontrol_new name a normal string
    ALSA: fix kernel-doc markups
    ASoC: SOF: loader: handle all SOF_IPC_EXT types
    ASoC: cs42l51: manage mclk shutdown delay
    ASoC: qcom: sdm845: set driver name correctly
    ...

    Linus Torvalds
     
  • Pull drm fixes from Dave Airlie:
    "It's Friday here so that means another installment of drm fixes to
    distract you from the counting process.

    Changes all over the place, the amdgpu changes contain support for a
    new GPU that is close to current one already in the tree (Green
    Sardine) so it shouldn't have much side effects.

    Otherwise imx has a few cleanup patches and fixes, amdgpu and i915
    have around the usual smattering of fixes, fonts got constified, and
    vc4/panfrost has some minor fixes. All in all a fairly regular rc3.

    We have an outstanding nouveau regression, but the author is looking
    into the fix, so should be here next week.

    I now return you to counting.

    fonts:
    - constify font structures.

    MAINTAINERS:
    - Fix path for amdgpu power management

    amdgpu:
    - Add support for more navi1x SKUs
    - Fix for suspend on CI dGPUs
    - VCN DPG fix for Picasso
    - Sienna Cichlid fixes
    - Polaris DPM fix
    - Add support for Green Sardine

    amdkfd:
    - Fix an allocation failure check

    i915:
    - Fix set domain's cache coherency
    - Fixes around breadcrumbs
    - Fix encoder lookup during PSR atomic
    - Hold onto an explicit ref to i915_vma_work.pinned
    - gvt: HWSP reset handling fix
    - gvt: flush workaround
    - gvt: vGPU context pin/unpin
    - gvt: mmio cmd access fix for bxt/apl

    imx:
    - drop unused functions and callbacks
    - reuse imx_drm_encoder_parse_of
    - spinlock rework
    - memory leak fix
    - minor cleanups

    vc4:
    - resource cleanup fix

    panfrost:
    - madvise/shrinker fix"

    * tag 'drm-fixes-2020-11-06-1' of git://anongit.freedesktop.org/drm/drm: (55 commits)
    drm/amdgpu/display: remove DRM_AMD_DC_GREEN_SARDINE
    drm/amd/display: Add green_sardine support to DM
    drm/amd/display: Add green_sardine support to DC
    drm/amdgpu: enable vcn support for green_sardine (v2)
    drm/amdgpu: enable green_sardine_asd.bin loading (v2)
    drm/amdgpu/sdma: add sdma engine support for green_sardine (v2)
    drm/amdgpu: add gfx support for green_sardine (v2)
    drm/amdgpu: add soc15 common ip block support for green_sardine (v3)
    drm/amdgpu: add green_sardine support for gpu_info and ip block setting (v2)
    drm/amdgpu: add Green_Sardine APU flag
    drm/amdgpu: resolved ASD loading issue on sienna
    amdkfd: Check kvmalloc return before memcpy
    drm/amdgpu: update golden setting for sienna_cichlid
    amd/amdgpu: Disable VCN DPG mode for Picasso
    drm/amdgpu/swsmu: remove duplicate call to smu_set_default_dpm_table
    drm/i915: Hold onto an explicit ref to i915_vma_work.pinned
    drm/i915/gt: Flush xcs before tgl breadcrumbs
    drm/i915/gt: Expose more parameters for emitting writes into the ring
    drm/i915: Fix encoder lookup during PSR atomic check
    drm/i915/gt: Use the local HWSP offset during submission
    ...

    Linus Torvalds
     
  • Pull networking fixes from Jakub Kicinski:
    "Networking fixes for 5.10-rc3, including fixes from wireless, can, and
    netfilter subtrees.

    Current merge window - bugs in new features:

    - can: isotp: isotp_rcv_cf(): enable RX timeout handling in
    listen-only mode

    Previous releases - regressions:

    - mac80211:
    - don't require VHT elements for HE on 2.4 GHz
    - fix regression where EAPOL frames were sent in plaintext

    - netfilter:
    - ipset: Update byte and packet counters regardless of whether
    they match

    - ip_tunnel: fix over-mtu packet send by allowing fragmenting even if
    inner packet has IP_DF (don't fragment) set in its header (when
    TUNNEL_DONT_FRAGMENT flag is not set on the tunnel dev)

    - net: fec: fix MDIO probing for some FEC hardware blocks

    - ip6_tunnel: set inner ipproto before ip6_tnl_encap to un-break gso
    support

    - sctp: Fix COMM_LOST/CANT_STR_ASSOC err reporting on big-endian
    platforms, sparse-related fix used the wrong integer size

    Previous releases - always broken:

    - netfilter: use actual socket sk rather than skb sk when routing
    harder

    - r8169: work around short packet hw bug on RTL8125 by padding frames

    - net: ethernet: ti: cpsw: disable PTPv1 hw timestamping
    advertisement, the hardware does not support it

    - chelsio/chtls: fix always leaking ctrl_skb and another leak caused
    by a race condition

    - fix drivers incorrectly writing into skbs on TX:
    - cadence: force nonlinear buffers to be cloned
    - gianfar: Account for Tx PTP timestamp in the skb headroom
    - gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

    - can: flexcan:
    - remove FLEXCAN_QUIRK_DISABLE_MECR quirk for LS1021A
    - add ECC initialization for VF610 and LX2160A
    - flexcan_remove(): disable wakeup completely

    - can: fix packet echo functionality:
    - peak_canfd: fix echo management when loopback is on
    - make sure skbs are not freed in IRQ context in case they need to
    be dropped
    - always clone the skbs to make sure they have a reference on the
    socket, and prevent it from disappearing
    - fix real payload length return value for RTR frames

    - can: j1939: return failure on bind if netdev is down, rather than
    waiting indefinitely

    Misc:

    - IPv6: reply ICMP error if the first fragment don't include all
    headers to improve compliance with RFC 8200"

    * tag 'net-5.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (66 commits)
    ionic: check port ptr before use
    r8169: work around short packet hw bug on RTL8125
    net: openvswitch: silence suspicious RCU usage warning
    chelsio/chtls: fix always leaking ctrl_skb
    chelsio/chtls: fix memory leaks caused by a race
    can: flexcan: flexcan_remove(): disable wakeup completely
    can: flexcan: add ECC initialization for VF610
    can: flexcan: add ECC initialization for LX2160A
    can: flexcan: remove FLEXCAN_QUIRK_DISABLE_MECR quirk for LS1021A
    can: mcp251xfd: remove unneeded break
    can: mcp251xfd: mcp251xfd_regmap_nocrc_read(): fix semicolon.cocci warnings
    can: mcp251xfd: mcp251xfd_regmap_crc_read(): increase severity of CRC read error messages
    can: peak_canfd: pucan_handle_can_rx(): fix echo management when loopback is on
    can: peak_usb: peak_usb_get_ts_time(): fix timestamp wrapping
    can: peak_usb: add range checking in decode operations
    can: xilinx_can: handle failure cases of pm_runtime_get_sync
    can: ti_hecc: ti_hecc_probe(): add missed clk_disable_unprepare() in error path
    can: isotp: padlen(): make const array static, makes object smaller
    can: isotp: isotp_rcv_cf(): enable RX timeout handling in listen-only mode
    can: isotp: Explain PDU in CAN_ISOTP help text
    ...

    Linus Torvalds
     
  • Allows FUSE to report to inotify that it is acting as a layered filesystem.
    The userspace component returns a string representing the location of the
    underlying file. If the string cannot be resolved into a path, the top
    level path is returned instead.

    Bug: 23904372
    Bug: 171780975
    Test: FileObserverTest and FileObserverTestLegacyPath on cuttlefish
    Change-Id: Iabdca0bbedfbff59e9c820c58636a68ef9683d9f
    Signed-off-by: Daniel Rosenberg
    Signed-off-by: Alessio Balsini

    Daniel Rosenberg
     
  • Inotify does not currently know when a filesystem is acting as a wrapper
    around another fs. This means that inotify watchers will miss any
    modifications to the base file, as well as any made in a separate stacked
    fs that points to the same file.
    d_canonical_path solves this problem by allowing the fs to map a dentry to
    a path in the lower fs. Inotify can use it to find the appropriate place to
    watch to be informed of all changes to a file.

    Original-Change-Id: I09563baffad1711a045e45c1bd0bd8713c2cc0b6

    Test: FileObserverTest and FileObserverTestLegacyPath on Cuttlefish
    Bug: 171780975
    Signed-off-by: Daniel Rosenberg
    [astrachan: Folded 34df4102216e ("ANDROID: fsnotify: Notify lower fs of
    open") into this patch]
    Signed-off-by: Alistair Strachan
    Signed-off-by: Yongqin Liu
    Signed-off-by: Alessio Balsini
    Change-Id: Ifb6719eaa466ab9cc98ab4b02866de16f7c73cbf

    Alessio Balsini
     
  • iov_iter based variant for reading a seq_file. seq_read is
    reimplemented on top of the iter variant.

    Signed-off-by: Christoph Hellwig
    Tested-by: Greg Kroah-Hartman
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

06 Nov, 2020

5 commits