<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/cifs/dfs_cache.c, branch linux-5.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-07-14T14:59:27Z</updated>
<entry>
<title>cifs: fix check of dfs interlinks</title>
<updated>2021-07-14T14:59:27Z</updated>
<author>
<name>Paulo Alcantara</name>
</author>
<published>2021-06-14T15:58:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=022474831133ed85d0216ee761b0fa4f6a55ca83'/>
<id>urn:sha1:022474831133ed85d0216ee761b0fa4f6a55ca83</id>
<content type='text'>
[ Upstream commit 889c2a700799f3b6f82210925e1faf4a9b833c4a ]

Interlink is a special type of DFS link that resolves to a different
DFS domain-based namespace.  To determine whether it is an interlink
or not, check if ReferralServers and StorageServers bits are set to 1
and 0 respectively in ReferralHeaderFlags, as specified in MS-DFSC
3.1.5.4.5 Determining Whether a Referral Response is an Interlink.

Signed-off-by: Paulo Alcantara (SUSE) &lt;pc@cjr.nz&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>cifs: introduce helper for finding referral server to improve DFS target resolution</title>
<updated>2021-02-25T18:19:15Z</updated>
<author>
<name>Paulo Alcantara</name>
</author>
<published>2021-02-24T23:59:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5ff2836ed3a5c24420a7235be25a462594cdc4ea'/>
<id>urn:sha1:5ff2836ed3a5c24420a7235be25a462594cdc4ea</id>
<content type='text'>
Some servers seem to mistakenly report different values for
capabilities and share flags, so we can't always rely on those values
to decide whether the resolved target can handle any new DFS
referrals.

Add a new helper is_referral_server() to check if all resolved targets
can handle new DFS referrals by directly looking at the
GET_DFS_REFERRAL.ReferralHeaderFlags value as specified in MS-DFSC
2.2.4 RESP_GET_DFS_REFERRAL in addition to is_tcon_dfs().

Signed-off-by: Paulo Alcantara (SUSE) &lt;pc@cjr.nz&gt;
Cc: stable@vger.kernel.org # 5.11
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: fix dfs domain referrals</title>
<updated>2021-01-29T03:40:43Z</updated>
<author>
<name>Ronnie Sahlberg</name>
</author>
<published>2021-01-29T03:35:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d4873f9aa4ff8fc1d63a5755395b794d32ce046'/>
<id>urn:sha1:0d4873f9aa4ff8fc1d63a5755395b794d32ce046</id>
<content type='text'>
The new mount API requires additional changes to how DFS
is handled. Additional testing of DFS uncovered problems
with domain based DFS referrals (a follow on patch addresses
DFS links) which this patch addresses.

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Signed-off-by: Paulo Alcantara (SUSE) &lt;pc@cjr.nz&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: check pointer before freeing</title>
<updated>2021-01-13T18:55:29Z</updated>
<author>
<name>Tom Rix</name>
</author>
<published>2021-01-05T20:21:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=77b6ec01c29aade01701aa30bf1469acc7f2be76'/>
<id>urn:sha1:77b6ec01c29aade01701aa30bf1469acc7f2be76</id>
<content type='text'>
clang static analysis reports this problem

dfs_cache.c:591:2: warning: Argument to kfree() is a constant address
  (18446744073709551614), which is not memory allocated by malloc()
        kfree(vi);
        ^~~~~~~~~

In dfs_cache_del_vol() the volume info pointer 'vi' being freed
is the return of a call to find_vol().  The large constant address
is find_vol() returning an error.

Add an error check to dfs_cache_del_vol() similar to the one done
in dfs_cache_update_vol().

Fixes: 54be1f6c1c37 ("cifs: Add DFS cache routines")
Signed-off-by: Tom Rix &lt;trix@redhat.com&gt;
Reviewed-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
CC: &lt;stable@vger.kernel.org&gt; # v5.0+
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: move cifs_cleanup_volume_info[_content] to fs_context.c</title>
<updated>2020-12-14T15:26:30Z</updated>
<author>
<name>Ronnie Sahlberg</name>
</author>
<published>2020-12-14T06:40:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c741cba2cd1d145c71f928c329cac007e6f99e42'/>
<id>urn:sha1:c741cba2cd1d145c71f928c329cac007e6f99e42</id>
<content type='text'>
and rename it to smb3_cleanup_fs_context[_content]

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: remove the devname argument to cifs_compose_mount_options</title>
<updated>2020-12-14T01:12:07Z</updated>
<author>
<name>Ronnie Sahlberg</name>
</author>
<published>2020-12-10T06:08:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4deb075985ec52961cf43666cd9e12af1241b3cf'/>
<id>urn:sha1:4deb075985ec52961cf43666cd9e12af1241b3cf</id>
<content type='text'>
none of the callers use this argument any more.

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: switch to new mount api</title>
<updated>2020-12-14T01:12:07Z</updated>
<author>
<name>Ronnie Sahlberg</name>
</author>
<published>2020-12-10T06:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24e0a1eff9e2b9835a6e7c17039dfb6ecfd81f1f'/>
<id>urn:sha1:24e0a1eff9e2b9835a6e7c17039dfb6ecfd81f1f</id>
<content type='text'>
See Documentation/filesystems/mount_api.rst for details on new mount API

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: rename dup_vol to smb3_fs_context_dup and move it into fs_context.c</title>
<updated>2020-12-14T01:12:07Z</updated>
<author>
<name>Ronnie Sahlberg</name>
</author>
<published>2020-11-01T23:36:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=837e3a1bbfdc105216972c83f693e96969c62351'/>
<id>urn:sha1:837e3a1bbfdc105216972c83f693e96969c62351</id>
<content type='text'>
Continue restructuring needed for support of new mount API

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: rename smb_vol as smb3_fs_context and move it to fs_context.h</title>
<updated>2020-12-14T01:12:07Z</updated>
<author>
<name>Ronnie Sahlberg</name>
</author>
<published>2020-12-10T05:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3fa1c6d1b8f5c3d9be9e8047ad894ab3de67dc6e'/>
<id>urn:sha1:3fa1c6d1b8f5c3d9be9e8047ad894ab3de67dc6e</id>
<content type='text'>
Harmonize and change all such variables to 'ctx', where possible.
No changes to actual logic.

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'akpm' (patches from Andrew)</title>
<updated>2020-08-07T18:39:33Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2020-08-07T18:39:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=81e11336d97e7a4c25a65c302ef2bf9cd9808ed4'/>
<id>urn:sha1:81e11336d97e7a4c25a65c302ef2bf9cd9808ed4</id>
<content type='text'>
Merge misc updates from Andrew Morton:

 - a few MM hotfixes

 - kthread, tools, scripts, ntfs and ocfs2

 - some of MM

Subsystems affected by this patch series: kthread, tools, scripts, ntfs,
ocfs2 and mm (hofixes, pagealloc, slab-generic, slab, slub, kcsan,
debug, pagecache, gup, swap, shmem, memcg, pagemap, mremap, mincore,
sparsemem, vmalloc, kasan, pagealloc, hugetlb and vmscan).

* emailed patches from Andrew Morton &lt;akpm@linux-foundation.org&gt;: (162 commits)
  mm: vmscan: consistent update to pgrefill
  mm/vmscan.c: fix typo
  khugepaged: khugepaged_test_exit() check mmget_still_valid()
  khugepaged: retract_page_tables() remember to test exit
  khugepaged: collapse_pte_mapped_thp() protect the pmd lock
  khugepaged: collapse_pte_mapped_thp() flush the right range
  mm/hugetlb: fix calculation of adjust_range_if_pmd_sharing_possible
  mm: thp: replace HTTP links with HTTPS ones
  mm/page_alloc: fix memalloc_nocma_{save/restore} APIs
  mm/page_alloc.c: skip setting nodemask when we are in interrupt
  mm/page_alloc: fallbacks at most has 3 elements
  mm/page_alloc: silence a KASAN false positive
  mm/page_alloc.c: remove unnecessary end_bitidx for [set|get]_pfnblock_flags_mask()
  mm/page_alloc.c: simplify pageblock bitmap access
  mm/page_alloc.c: extract the common part in pfn_to_bitidx()
  mm/page_alloc.c: replace the definition of NR_MIGRATETYPE_BITS with PB_migratetype_bits
  mm/shuffle: remove dynamic reconfiguration
  mm/memory_hotplug: document why shuffle_zone() is relevant
  mm/page_alloc: remove nr_free_pagecache_pages()
  mm: remove vm_total_pages
  ...
</content>
</entry>
</feed>
