Convert to filemap_get_folios_tag()
Subsystems (12)
v3 cover Convert to filemap_get_folios_tag()
This patch series replaces find_get_pages_range_tag() with filemap_get_folios_tag(). This also allows the removal of multiple calls to compound_head() throughout.
It also makes a good chunk of the straightforward conversions to folios, and takes the opportunity to introduce a function that grabs a folio from the pagecache.
F2fs and Ceph have quite alot of work to be done regarding folios, so for now those patches only have the changes necessary for the removal of find_get_pages_range_tag(), and only support folios of size 1 (which is all they use right now anyways).
I've run xfstests on btrfs, ext4, f2fs, and nilfs2, but more testing may be beneficial. The page-writeback and filemap changes implicitly work. Testing and review of the other changes (afs, ceph, cifs, gfs2) would be appreciated.
---
v3:
Rebased onto upstream 6.1
Simplified the ceph patch to only necessary changes Changed commit messages throughout to be clearer Got an Acked-by for another nilfs patch
Got Tested-by for afs
v2:
Got Acked-By tags for nilfs and btrfs changes Fixed an error arising in f2fs
- Reported-by: kernel test robot <[email protected]>
Vishal Moola (Oracle) (23):
pagemap: Add filemap_grab_folio()
filemap: Added filemap_get_folios_tag()
filemap: Convert __filemap_fdatawait_range() to use
filemap_get_folios_tag()
page-writeback: Convert write_cache_pages() to use
filemap_get_folios_tag()
afs: Convert afs_writepages_region() to use filemap_get_folios_tag()
btrfs: Convert btree_write_cache_pages() to use
filemap_get_folio_tag()
btrfs: Convert extent_write_cache_pages() to use
filemap_get_folios_tag()
ceph: Convert ceph_writepages_start() to use filemap_get_folios_tag()
cifs: Convert wdata_alloc_and_fillpages() to use
filemap_get_folios_tag()
ext4: Convert mpage_prepare_extent_to_map() to use
filemap_get_folios_tag()
f2fs: Convert f2fs_fsync_node_pages() to use filemap_get_folios_tag()
f2fs: Convert f2fs_flush_inline_data() to use filemap_get_folios_tag()
f2fs: Convert f2fs_sync_node_pages() to use filemap_get_folios_tag()
f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
f2fs: Convert last_fsync_dnode() to use filemap_get_folios_tag()
f2fs: Convert f2fs_sync_meta_pages() to use filemap_get_folios_tag()
gfs2: Convert gfs2_write_cache_jdata() to use filemap_get_folios_tag()
nilfs2: Convert nilfs_lookup_dirty_data_buffers() to use
filemap_get_folios_tag()
nilfs2: Convert nilfs_lookup_dirty_node_buffers() to use
filemap_get_folios_tag()
nilfs2: Convert nilfs_btree_lookup_dirty_buffers() to use
filemap_get_folios_tag()
nilfs2: Convert nilfs_copy_dirty_pages() to use
filemap_get_folios_tag()
nilfs2: Convert nilfs_clear_dirty_pages() to use
filemap_get_folios_tag()
filemap: Remove find_get_pages_range_tag()
fs/afs/write.c | 114 +++++++++++++++++++++------------------- fs/btrfs/extent_io.c | 57 ++++++++++---------- fs/ceph/addr.c | 58 ++++++++++---------- fs/cifs/file.c | 33 ++++++++++-- fs/ext4/inode.c | 55 ++++++++++--------- fs/f2fs/checkpoint.c | 49 +++++++++-------- fs/f2fs/compress.c | 13 ++--- fs/f2fs/data.c | 69 +++++++++++++----------- fs/f2fs/f2fs.h | 5 +- fs/f2fs/node.c | 72 +++++++++++++------------ fs/gfs2/aops.c | 64 ++++++++++++---------- fs/nilfs2/btree.c | 14 ++--- fs/nilfs2/page.c | 59 +++++++++++---------- fs/nilfs2/segment.c | 44 ++++++++-------- include/linux/pagemap.h | 32 +++++++---- include/linux/pagevec.h | 8 --- mm/filemap.c | 87 +++++++++++++++--------------- mm/page-writeback.c | 44 ++++++++-------- mm/swap.c | 10 ---- 19 files changed, 467 insertions(+), 420 deletions(-)
Signature · 1 line
2.36.1
PATCH v3 1/23 pagemap: Add filemap_grab_folio()
Add function filemap_grab_folio() to grab a folio from the page cache. This function is meant to serve as a folio replacement for grab_cache_page, and is used to facilitate the removal of find_get_pages_range_tag().
--- include/linux/pagemap.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
include/linux/pagemap.h +20 -0
@@ -547,6 +547,26 @@ static inline struct folio *filemap_lock_folio(struct address_space *mapping,return __filemap_get_folio (mapping, index,FGP_LOCK ,0 ); } +/** +* filemap_grab_folio - grab a folio from the page cache +* @mapping: The address space to search +* @index: The page index +* +* Looks up the page cache entry at @mapping & @index. If no folio is found, +* a new folio is created. The folio is locked, marked as accessed, and +* returned. +* +* Return: A found or created folio. NULL if no folio is found and failed to +* create a folio. +*/ +static inline struct folio *filemap_grab_folio (struct address_space *mapping, +pgoff_t index) +{ +return __filemap_get_folio (mapping, index, +FGP_LOCK |FGP_ACCESSED |FGP_CREAT , +mapping_gfp_mask (mapping)); +} +/** * find_get_page - find and get a page reference * @mapping: the address_space to search
Signature · 1 line
2.36.1
Re: [PATCH v3 01/23] pagemap: Add filemap_grab_folio()
Quoted 43 lines · Vishal Moola (Oracle)
Add function
filemap_grab_folio()to grab a folio from the page cache. This function is meant to serve as a folio replacement forgrab_cache_page, and is used to facilitate the removal offind_get_pages_range_tag().Signed-off-by Vishal Moola (Oracle) <[email protected]>--- include/linux/pagemap.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)include/linux/pagemap.h +20
-1@@ -547,6 +547,26 @@ static inline struct folio *filemap_lock_folio(struct address_space *mapping,return __filemap_get_folio (mapping, index,FGP_LOCK ,0 ); } +/** +* filemap_grab_folio - grab a folio from the page cache +* @mapping: The address space to search +* @index: The page index +* +* Looks up the page cache entry at @mapping & @index. If no folio is found, +* a new folio is created. The folio is locked, marked as accessed, and +* returned. +* +* Return: A found or created folio. NULL if no folio is found and failed to +* create a folio. +*/ +static inline struct folio *filemap_grab_folio (struct address_space *mapping, +pgoff_t index) +{ +return __filemap_get_folio (mapping, index, +FGP_LOCK |FGP_ACCESSED |FGP_CREAT , +mapping_gfp_mask (mapping)); +} +/** * find_get_page - find and get a page reference * @mapping: the address_space to search --
Quoted 2 lines
2.36.1
Following up on the filemap-related patches (01/23, 02/23, 03/23, 04/23), does anyone have time to review them this week?
Re: [PATCH v3 01/23] pagemap: Add filemap_grab_folio()
In reply to Vishal Moola (Oracle)Quoted 4 lines · Vishal Moola (Oracle)
Add function
filemap_grab_folio()to grab a folio from the page cache. This function is meant to serve as a folio replacement forgrab_cache_page, and is used to facilitate the removal offind_get_pages_range_tag().
I'm still not loving the name, but it does have historical precedent and I can't think of a better one.
PATCH v3 2/23 filemap: Added filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)This is the equivalent of find_get_pages_range_tag(), except for folios instead of pages.
One noteable difference is filemap_get_folios_tag() does not take in a maximum pages argument. It instead tries to fill a folio batch and stops either once full (15 folios) or reaching the end of the search range.
The new function supports large folios, the initial function did not since all callers don't use large folios.
--- include/linux/pagemap.h | 2 ++ mm/filemap.c | 53 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+)
include/linux/pagemap.h +2 -0
@@ -740,6 +740,8 @@ unsigned filemap_get_folios(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch);unsigned filemap_get_folios_contig (struct address_space *mapping,pgoff_t *start,pgoff_t end,struct folio_batch *fbatch); +unsigned filemap_get_folios_tag (struct address_space *mapping,pgoff_t *start, +pgoff_t end,xa_mark_t tag,struct folio_batch *fbatch);unsigned find_get_pages_range_tag (struct address_space *mapping,pgoff_t *index,pgoff_t end,xa_mark_t tag,unsigned int nr_pages,struct page **pages);
mm/filemap.c +53 -0
59 lines not on this page · raw message
Signature · 1 line
2.36.1
Re: [PATCH v3 02/23] filemap: Added filemap_get_folios_tag()
Quoted 9 lines · Vishal Moola (Oracle)
This is the equivalent of
find_get_pages_range_tag(), except for folios instead of pages.One noteable difference is
filemap_get_folios_tag()does not take in a maximum pages argument. It instead tries to fill a folio batch and stops either once full (15 folios) or reaching the end of the search range.The new function supports large folios, the initial function did not since all callers don't use large folios.
Quoted 9 lines
+/**
+ *filemap_get_folios_tag- Get a batch of folios matching @tag.+ * @mapping: The address_space to search + * @start: The starting page index + * @end: The final page index (inclusive) + * @tag: The tag index + * @fbatch: The batch to fill+ *
+ * Same asfilemap_get_folios, but only returning folios tagged with @tag
If you add () after filemap_get_folios, it turns into a nice link in the html documentation.
Quoted 2 lines
+ *
+ * Return: The number of folios found
Missing full stop at the end of this line.
Quoted 1 line
+ * Also update @start to index the next folio for traversal
Ditto.
mm/filemap.c unsigned filemap_get_folios_contig(struct address_space *mapping, · line 2289
Quoted 13 lines
+ */
mm/filemap.c +12
-0+unsigned filemap_get_folios_tag (struct address_space *mapping,pgoff_t *start, +pgoff_t end,xa_mark_t tag,struct folio_batch *fbatch) +{ +XA_STATE (xas, &mapping->i_pages, *start); +struct folio *folio; + +rcu_read_lock (); +while ((folio =find_get_entry (&xas, end, tag)) !=NULL ) { +/* Shadow entries should never be tagged, but this iteration +* is lockless so there is a window for page reclaim to evict +* a page we saw tagged. Skip over it. +*/
For multiline comments, the "/*" should be on a line by itself.
PATCH v3 3/23 filemap: Convert __filemap_fdatawait_range() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Converted function to use folios. This is in preparation for the removal of find_get_pages_range_tag().
--- mm/filemap.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)
mm/filemap.c +13 -11
@@ -503,28 +503,30 @@ static void __filemap_fdatawait_range(struct address_space *mapping, {pgoff_t index = start_byte >>PAGE_SHIFT ;pgoff_t end = end_byte >>PAGE_SHIFT ; -struct pagevec pvec; -int nr_pages; +struct folio_batch fbatch; +unsigned nr_folios;if (end_byte < start_byte)return ; -pagevec_init (&pvec); +folio_batch_init (&fbatch); +while (index <= end) {unsigned i; - nr_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, - end,PAGECACHE_TAG_WRITEBACK ); -if (!nr_pages) + nr_folios =filemap_get_folios_tag (mapping, &index, end, +PAGECACHE_TAG_WRITEBACK , &fbatch); + +if (!nr_folios)break ; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i]; -wait_on_page_writeback (page); -ClearPageError (page); +folio_wait_writeback (folio); +folio_clear_error (folio); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } }
Signature · 1 line
2.36.1
Re: [PATCH v3 03/23] filemap: Convert __filemap_fdatawait_range() to use filemap_get_folios_tag()
Quoted 2 lines · Vishal Moola (Oracle)
Converted function to use folios. This is in preparation for the removal of
find_get_pages_range_tag().
Yes, it is, but this patch also has some nice advantages of its own:
- Removes a call to wait_on_page_writeback(), which removes a call to compound_head()
- Removes a call to ClearPageError(), which removes another call to compound_head()
- Removes a call to pagevec_release(), which will eventually remove a third call to compound_head() (it doesn't today, but one day ...)
So you can definitely say that it removes 50 bytes of text and two calls to compound_head(). And that way, this patch justifies its existance by itself ;-)
Quoted 1 line
Signed-off-by Vishal Moola (Oracle) <[email protected]>
PATCH v3 4/23 page-writeback: Convert write_cache_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Converted function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag().
--- mm/page-writeback.c | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-)
mm/page-writeback.c +23 -21
@@ -2286,15 +2286,15 @@ int write_cache_pages(struct address_space *mapping,int ret =0 ;int done =0 ;int error; -struct pagevec pvec; -int nr_pages; +struct folio_batch fbatch; +int nr_folios;pgoff_t index;pgoff_t end;/* Inclusive */ pgoff_t done_index;int range_whole =0 ;xa_mark_t tag; -pagevec_init (&pvec); +folio_batch_init (&fbatch);if (wbc->range_cyclic) { index = mapping->writeback_index;/* prev offset */ end =-1 ;
@@ -2314,17 +2314,18 @@ int write_cache_pages(struct address_space *mapping,while (!done && (index <= end)) {int i; - nr_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, end, - tag); -if (nr_pages ==0 ) + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); + +if (nr_folios ==0 )break ; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i]; - done_index = page->index; + done_index = folio->index; -lock_page (page); +folio_lock (folio);/* * Page truncated or invalidated. We can freely skip it
@@ -2334,30 +2335,30 @@ int write_cache_pages(struct address_space *mapping,* even if there is now a new, dirty page at the same * pagecache address. */ -if (unlikely (page->mapping != mapping)) { +if (unlikely (folio->mapping != mapping)) { continue_unlock: -unlock_page (page); +folio_unlock (folio);continue ; } -if (!PageDirty (page)) { +if (!folio_test_dirty (folio)) {/* someone wrote it for us */ goto continue_unlock; } -if (PageWriteback (page)) { +if (folio_test_writeback (folio)) {if (wbc->sync_mode !=WB_SYNC_NONE ) -wait_on_page_writeback (page); +folio_wait_writeback (folio);else goto continue_unlock; } -BUG_ON (PageWriteback (page)); -if (!clear_page_dirty_for_io (page)) +BUG_ON (folio_test_writeback (folio)); +if (!folio_clear_dirty_for_io (folio)) goto continue_unlock;trace_wbc_writepage (wbc,inode_to_bdi (mapping->host)); - error = (*writepage)(page, wbc, data); + error =writepage (&folio->page, wbc, data);if (unlikely (error)) {/* * Handle errors according to the type of
@@ -2372,11 +2373,12 @@ int write_cache_pages(struct address_space *mapping,* the first error. */ if (error ==AOP_WRITEPAGE_ACTIVATE ) { -unlock_page (page); +folio_unlock (folio); error =0 ; }else if (wbc->sync_mode !=WB_SYNC_ALL ) { ret = error; - done_index = page->index +1 ; + done_index = folio->index + +folio_nr_pages (folio); done =1 ;break ; }
@@ -2396,7 +2398,7 @@ int write_cache_pages(struct address_space *mapping,break ; } } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); }
Signature · 1 line
2.36.1
Re: [PATCH v3 04/23] page-writeback: Convert write_cache_pages() to use filemap_get_folios_tag()
Quoted 2 lines · Vishal Moola (Oracle)
Converted function to use folios throughout. This is in preparation for the removal of
find_get_pages_range_tag().
And removes eight calls to compound_head(), saving 296 bytes of kernel text (!) It also adds support for large folios to this function.
Quoted 1 line
Signed-off-by Vishal Moola (Oracle) <[email protected]>
PATCH v3 5/23 afs: Convert afs_writepages_region() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert to use folios throughout. This function is in preparation to remove find_get_pages_range_tag().
Also modified this function to write the whole batch one at a time, rather than calling for a new set every single write.
--- fs/afs/write.c | 114 +++++++++++++++++++++++++------------------------ 1 file changed, 59 insertions(+), 55 deletions(-)
fs/afs/write.c +59 -55
@@ -699,82 +699,86 @@ static int afs_writepages_region(struct address_space *mapping, loff_t start, loff_t end, loff_t *_next) { struct folio *folio; -struct page *head_page; +struct folio_batch fbatch;ssize_t ret; +unsigned int i;int n, skips =0 ;_enter ("%llx,%llx," , start, end); +folio_batch_init (&fbatch);do {pgoff_t index = start /PAGE_SIZE ; - n =find_get_pages_range_tag (mapping, &index, end /PAGE_SIZE , -PAGECACHE_TAG_DIRTY ,1 , &head_page); + n =filemap_get_folios_tag (mapping, &index, end /PAGE_SIZE , +PAGECACHE_TAG_DIRTY , &fbatch); +if (!n)break ; +for (i =0 ; i < n; i++) { + folio = fbatch.folios[i]; + start =folio_pos (folio);/* May regress with THPs */ - folio =page_folio (head_page); - start =folio_pos (folio);/* May regress with THPs */ - -_debug ("wback %lx" ,folio_index (folio)); +_debug ("wback %lx" ,folio_index (folio)); -/* At this point we hold neither the i_pages lock nor the -* page lock: the page may be truncated or invalidated -* (changing page->mapping to NULL), or even swizzled -* back from swapper_space to tmpfs file mapping -*/ -if (wbc->sync_mode !=WB_SYNC_NONE ) { - ret =folio_lock_killable (folio); -if (ret <0 ) { -folio_put (folio); -return ret; - } - }else { -if (!folio_trylock (folio)) { -folio_put (folio); -return 0 ; +/* At this point we hold neither the i_pages lock nor the +* page lock: the page may be truncated or invalidated +* (changing page->mapping to NULL), or even swizzled +* back from swapper_space to tmpfs file mapping +*/ +if (wbc->sync_mode !=WB_SYNC_NONE ) { + ret =folio_lock_killable (folio); +if (ret <0 ) { +folio_batch_release (&fbatch); +return ret; + } + }else { +if (!folio_trylock (folio)) +continue ; } - } -if (folio_mapping (folio) != mapping || - !folio_test_dirty (folio)) { - start +=folio_size (folio); -folio_unlock (folio); -folio_put (folio); -continue ; - } +if (folio->mapping != mapping || + !folio_test_dirty (folio)) { + start +=folio_size (folio); +folio_unlock (folio); +continue ; + } -if (folio_test_writeback (folio) || -folio_test_fscache (folio)) { -folio_unlock (folio); -if (wbc->sync_mode !=WB_SYNC_NONE ) { -folio_wait_writeback (folio); +if (folio_test_writeback (folio) || +folio_test_fscache (folio)) { +folio_unlock (folio); +if (wbc->sync_mode !=WB_SYNC_NONE ) { +folio_wait_writeback (folio);#ifdef CONFIG_AFS_FSCACHE -folio_wait_fscache (folio); +folio_wait_fscache (folio);#endif - }else { - start +=folio_size (folio); + }else { + start +=folio_size (folio); + } +if (wbc->sync_mode ==WB_SYNC_NONE ) { +if (skips >=5 ||need_resched ()) { + *_next = start; +_leave (" = 0 [%llx]" , *_next); +return 0 ; + } + skips++; + } +continue ; } -folio_put (folio); -if (wbc->sync_mode ==WB_SYNC_NONE ) { -if (skips >=5 ||need_resched ()) -break ; - skips++; + +if (!folio_clear_dirty_for_io (folio)) +BUG (); + ret =afs_write_back_from_locked_folio (mapping, wbc, + folio, start, end); +if (ret <0 ) { +_leave (" = %zd" , ret); +folio_batch_release (&fbatch); +return ret; } -continue ; - } -if (!folio_clear_dirty_for_io (folio)) -BUG (); - ret =afs_write_back_from_locked_folio (mapping, wbc, folio, start, end); -folio_put (folio); -if (ret <0 ) { -_leave (" = %zd" , ret); -return ret; + start += ret; } - - start += ret; - +folio_batch_release (&fbatch);cond_resched (); }while (wbc->nr_to_write >0 );
Signature · 1 line
2.36.1
PATCH v3 6/23 btrfs: Convert btree_write_cache_pages() to use filemap_get_folio_tag()
In reply to Vishal Moola (Oracle)Converted function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/btrfs/extent_io.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
fs/btrfs/extent_io.c +10 -9
@@ -2960,14 +2960,14 @@ int btree_write_cache_pages(struct address_space *mapping,int ret =0 ;int done =0 ;int nr_to_write_done =0 ; -struct pagevec pvec; -int nr_pages; +struct folio_batch fbatch; +unsigned int nr_folios;pgoff_t index;pgoff_t end;/* Inclusive */ int scanned =0 ;xa_mark_t tag; -pagevec_init (&pvec); +folio_batch_init (&fbatch);if (wbc->range_cyclic) { index = mapping->writeback_index;/* Start from prev offset */ end =-1 ;
@@ -2990,14 +2990,15 @@ int btree_write_cache_pages(struct address_space *mapping,if (wbc->sync_mode ==WB_SYNC_ALL )tag_pages_for_writeback (mapping, index, end);while (!done && !nr_to_write_done && (index <= end) && - (nr_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, end, - tag))) { + (nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch))) {unsigned i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i]; - ret =submit_eb_page (page, wbc, &epd, &eb_context); + ret =submit_eb_page (&folio->page, wbc, &epd, + &eb_context);if (ret ==0 )continue ;if (ret <0 ) {
@@ -3012,7 +3013,7 @@ int btree_write_cache_pages(struct address_space *mapping,*/ nr_to_write_done = wbc->nr_to_write <=0 ; } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); }if (!scanned && !done) {
Signature · 1 line
2.36.1
PATCH v3 7/23 btrfs: Convert extent_write_cache_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Converted function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag(). Now also supports large folios.
--- fs/btrfs/extent_io.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)
fs/btrfs/extent_io.c +19 -19
@@ -3088,8 +3088,8 @@ static int extent_write_cache_pages(struct address_space *mapping,int ret =0 ;int done =0 ;int nr_to_write_done =0 ; -struct pagevec pvec; -int nr_pages; +struct folio_batch fbatch; +unsigned int nr_folios;pgoff_t index;pgoff_t end;/* Inclusive */ pgoff_t done_index;
@@ -3109,7 +3109,7 @@ static int extent_write_cache_pages(struct address_space *mapping,if (!igrab (inode))return 0 ; -pagevec_init (&pvec); +folio_batch_init (&fbatch);if (wbc->range_cyclic) { index = mapping->writeback_index;/* Start from prev offset */ end =-1 ;
@@ -3147,14 +3147,14 @@ static int extent_write_cache_pages(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && !nr_to_write_done && (index <= end) && - (nr_pages =pagevec_lookup_range_tag (&pvec, mapping, - &index, end, tag))) { + (nr_folios =filemap_get_folios_tag (mapping, &index, + end, tag, &fbatch))) {unsigned i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i]; - done_index = page->index +1 ; + done_index = folio->index +folio_nr_pages (folio);/* * At this point we hold neither the i_pages lock nor * the page lock: the page may be truncated or
@@ -3162,29 +3162,29 @@ static int extent_write_cache_pages(struct address_space *mapping,* or even swizzled back from swapper_space to * tmpfs file mapping */ -if (!trylock_page (page)) { +if (!folio_trylock (folio)) {submit_write_bio (epd,0 ); -lock_page (page); +folio_lock (folio); } -if (unlikely (page->mapping != mapping)) { -unlock_page (page); +if (unlikely (folio->mapping != mapping)) { +folio_unlock (folio);continue ; }if (wbc->sync_mode !=WB_SYNC_NONE ) { -if (PageWriteback (page)) +if (folio_test_writeback (folio))submit_write_bio (epd,0 ); -wait_on_page_writeback (page); +folio_wait_writeback (folio); } -if (PageWriteback (page) || - !clear_page_dirty_for_io (page)) { -unlock_page (page); +if (folio_test_writeback (folio) || + !folio_clear_dirty_for_io (folio)) { +folio_unlock (folio);continue ; } - ret =__extent_writepage (page, wbc, epd); + ret =__extent_writepage (&folio->page, wbc, epd);if (ret <0 ) { done =1 ;break ;
@@ -3197,7 +3197,7 @@ static int extent_write_cache_pages(struct address_space *mapping,*/ nr_to_write_done = wbc->nr_to_write <=0 ; } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); }if (!scanned && !done) {
Signature · 1 line
2.36.1
PATCH v3 8/23 ceph: Convert ceph_writepages_start() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use a folio_batch instead of pagevec. This is in preparation for the removal of find_get_pages_range_tag().
Also some minor renaming for consistency.
--- fs/ceph/addr.c | 58 ++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 28 deletions(-)
fs/ceph/addr.c +30 -28
@@ -792,7 +792,7 @@ static int ceph_writepages_start(struct address_space *mapping,struct ceph_vino vino =ceph_vino (inode);pgoff_t index, start_index, end =-1 ;struct ceph_snap_context *snapc =NULL , *last_snapc =NULL , *pgsnapc; -struct pagevec pvec; +struct folio_batch fbatch;int rc =0 ;unsigned int wsize =i_blocksize (inode);struct ceph_osd_request *req =NULL ;
@@ -821,7 +821,7 @@ static int ceph_writepages_start(struct address_space *mapping,if (fsc->mount_options->wsize < wsize) wsize = fsc->mount_options->wsize; -pagevec_init (&pvec); +folio_batch_init (&fbatch); start_index = wbc->range_cyclic ? mapping->writeback_index :0 ; index = start_index;
@@ -869,7 +869,7 @@ static int ceph_writepages_start(struct address_space *mapping,while (!done && index <= end) {int num_ops =0 , op_idx; -unsigned i, pvec_pages, max_pages, locked_pages =0 ; +unsigned i, nr_folios, max_pages, locked_pages =0 ;struct page **pages =NULL , **data_pages;struct page *page;pgoff_t strip_unit_end =0 ;
@@ -879,13 +879,13 @@ static int ceph_writepages_start(struct address_space *mapping, max_pages = wsize >>PAGE_SHIFT ; get_more_pages: - pvec_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, - end,PAGECACHE_TAG_DIRTY ); -dout ("pagevec_lookup_range_tag got %d\n" , pvec_pages); -if (!pvec_pages && !locked_pages) + nr_folios =filemap_get_folios_tag (mapping, &index, + end,PAGECACHE_TAG_DIRTY , &fbatch); +dout ("pagevec_lookup_range_tag got %d\n" , nr_folios); +if (!nr_folios && !locked_pages)break ; -for (i =0 ; i < pvec_pages && locked_pages < max_pages; i++) { - page = pvec.pages[i]; +for (i =0 ; i < nr_folios && locked_pages < max_pages; i++) { + page = &fbatch.folios[i]->page;dout ("? %p idx %lu\n" , page, page->index);if (locked_pages ==0 )lock_page (page);/* first page */
@@ -995,7 +995,7 @@ static int ceph_writepages_start(struct address_space *mapping, len =0 ; } -/* note position of first page in pvec */ +/* note position of first page in fbatch */ dout ("%p will write page %p idx %lu\n" , inode, page, page->index);
@@ -1005,30 +1005,30 @@ static int ceph_writepages_start(struct address_space *mapping, fsc->write_congested = true; pages[locked_pages++] = page; - pvec.pages[i] =NULL ; + fbatch.folios[i] =NULL ; len +=thp_size (page); }/* did we get anything? */ if (!locked_pages) - goto release_pvec_pages; + goto release_folios;if (i) {unsigned j, n =0 ; -/* shift unused page to beginning of pvec */ -for (j =0 ; j < pvec_pages; j++) { -if (!pvec.pages[j]) +/* shift unused page to beginning of fbatch */ +for (j =0 ; j < nr_folios; j++) { +if (!fbatch.folios[j])continue ;if (n < j) - pvec.pages[n] = pvec.pages[j]; + fbatch.folios[n] = fbatch.folios[j]; n++; } - pvec.nr = n; + fbatch.nr = n; -if (pvec_pages && i == pvec_pages && +if (nr_folios && i == nr_folios && locked_pages < max_pages) { -dout ("reached end pvec, trying for more\n" ); -pagevec_release (&pvec); +dout ("reached end fbatch, trying for more\n" ); +folio_batch_release (&fbatch); goto get_more_pages; } }
@@ -1164,10 +1164,10 @@ static int ceph_writepages_start(struct address_space *mapping,if (wbc->nr_to_write <=0 && wbc->sync_mode ==WB_SYNC_NONE ) done = true; -release_pvec_pages: -dout ("pagevec_release on %d pages (%p)\n" , (int )pvec.nr, - pvec.nr ? pvec.pages[0 ] :NULL ); -pagevec_release (&pvec); +release_folios: +dout ("folio_batch release on %d folios (%p)\n" , (int )fbatch.nr, + fbatch.nr ? fbatch.folios[0 ] :NULL ); +folio_batch_release (&fbatch); }if (should_loop && !done) {
@@ -1184,15 +1184,17 @@ static int ceph_writepages_start(struct address_space *mapping,unsigned i, nr; index =0 ;while ((index <= end) && - (nr =pagevec_lookup_tag (&pvec, mapping, &index, -PAGECACHE_TAG_WRITEBACK ))) { + (nr =filemap_get_folios_tag (mapping, &index, + (pgoff_t)-1 , +PAGECACHE_TAG_WRITEBACK , + &fbatch))) {for (i =0 ; i < nr; i++) { - page = pvec.pages[i]; + page = &fbatch.folios[i]->page;if (page_snap_context (page) != snapc)continue ;wait_on_page_writeback (page); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } }
Signature · 1 line
2.36.1
Re: [PATCH v3 08/23] ceph: Convert ceph_writepages_start() to use filemap_get_folios_tag()
Quoted 138 lines · Vishal Moola (Oracle)
Convert function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also some minor renaming for consistency.
Signed-off-by Vishal Moola (Oracle) <[email protected]>--- fs/ceph/addr.c | 58 ++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 28 deletions(-)fs/ceph/addr.c +28
-27@@ -792,7 +792,7 @@ static int ceph_writepages_start(struct address_space *mapping,struct ceph_vino vino =ceph_vino (inode);pgoff_t index, start_index, end =-1 ;struct ceph_snap_context *snapc =NULL , *last_snapc =NULL , *pgsnapc; -struct pagevec pvec; +struct folio_batch fbatch;int rc =0 ;unsigned int wsize =i_blocksize (inode);struct ceph_osd_request *req =NULL ;@@ -821,7 +821,7 @@ static int ceph_writepages_start(struct address_space *mapping,if (fsc->mount_options->wsize < wsize) wsize = fsc->mount_options->wsize; -pagevec_init (&pvec); +folio_batch_init (&fbatch); start_index = wbc->range_cyclic ? mapping->writeback_index :0 ; index = start_index;@@ -869,7 +869,7 @@ static int ceph_writepages_start(struct address_space *mapping,while (!done && index <= end) {int num_ops =0 , op_idx; -unsigned i, pvec_pages, max_pages, locked_pages =0 ; +unsigned i, nr_folios, max_pages, locked_pages =0 ;struct page **pages =NULL , **data_pages;struct page *page;pgoff_t strip_unit_end =0 ;@@ -879,13 +879,13 @@ static int ceph_writepages_start(struct address_space *mapping, max_pages = wsize >>PAGE_SHIFT ; get_more_pages: - pvec_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, - end,PAGECACHE_TAG_DIRTY ); -dout ("pagevec_lookup_range_tag got %d\n" , pvec_pages); -if (!pvec_pages && !locked_pages) + nr_folios =filemap_get_folios_tag (mapping, &index, + end,PAGECACHE_TAG_DIRTY , &fbatch); +dout ("pagevec_lookup_range_tag got %d\n" , nr_folios); +if (!nr_folios && !locked_pages)break ; -for (i =0 ; i < pvec_pages && locked_pages < max_pages; i++) { - page = pvec.pages[i]; +for (i =0 ; i < nr_folios && locked_pages < max_pages; i++) { + page = &fbatch.folios[i]->page;dout ("? %p idx %lu\n" , page, page->index);if (locked_pages ==0 )lock_page (page);/* first page */ @@ -995,7 +995,7 @@ static int ceph_writepages_start(struct address_space *mapping, len =0 ; } -/* note position of first page in pvec */ +/* note position of first page in fbatch */ dout ("%p will write page %p idx %lu\n" , inode, page, page->index);@@ -1005,30 +1005,30 @@ static int ceph_writepages_start(struct address_space *mapping, fsc->write_congested = true; pages[locked_pages++] = page; - pvec.pages[i] =NULL ; + fbatch.folios[i] =NULL ; len +=thp_size (page); }/* did we get anything? */ if (!locked_pages) - goto release_pvec_pages; + goto release_folios;if (i) {unsigned j, n =0 ; -/* shift unused page to beginning of pvec */ -for (j =0 ; j < pvec_pages; j++) { -if (!pvec.pages[j]) +/* shift unused page to beginning of fbatch */ +for (j =0 ; j < nr_folios; j++) { +if (!fbatch.folios[j])continue ;if (n < j) - pvec.pages[n] = pvec.pages[j]; + fbatch.folios[n] = fbatch.folios[j]; n++; } - pvec.nr = n; + fbatch.nr = n; -if (pvec_pages && i == pvec_pages && +if (nr_folios && i == nr_folios && locked_pages < max_pages) { -dout ("reached end pvec, trying for more\n" ); -pagevec_release (&pvec); +dout ("reached end fbatch, trying for more\n" ); +folio_batch_release (&fbatch); goto get_more_pages; } }@@ -1164,10 +1164,10 @@ static int ceph_writepages_start(struct address_space *mapping,if (wbc->nr_to_write <=0 && wbc->sync_mode ==WB_SYNC_NONE ) done = true; -release_pvec_pages: -dout ("pagevec_release on %d pages (%p)\n" , (int )pvec.nr, - pvec.nr ? pvec.pages[0 ] :NULL ); -pagevec_release (&pvec); +release_folios: +dout ("folio_batch release on %d folios (%p)\n" , (int )fbatch.nr, + fbatch.nr ? fbatch.folios[0 ] :NULL ); +folio_batch_release (&fbatch); }if (should_loop && !done) {@@ -1184,15 +1184,17 @@ static int ceph_writepages_start(struct address_space *mapping,unsigned i, nr; index =0 ;while ((index <= end) && - (nr =pagevec_lookup_tag (&pvec, mapping, &index, -PAGECACHE_TAG_WRITEBACK ))) { + (nr =filemap_get_folios_tag (mapping, &index, + (pgoff_t)-1 , +PAGECACHE_TAG_WRITEBACK , + &fbatch))) {for (i =0 ; i < nr; i++) { - page = pvec.pages[i];
fs/ceph/addr.c static int ceph_writepages_start(struct address_space *mapping, · line 1200
Quoted 10 lines
fs/ceph/addr.c +2
-1+ page = &fbatch.folios[i]->page;if (page_snap_context (page) != snapc)continue ;wait_on_page_writeback (page); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } }
I took a brief look and this looks like a fairly straightforward conversion. It definitely needs testing however.
The hope was to get ceph converted over to using the netfs write helpers, but that's taking a lot longer than expected. It's really up to Xiubo at this point, but I don't have an issue in principle with taking this patch in before the netfs conversion, particularly if it's blocking other work.
PATCH v3 9/23 cifs: Convert wdata_alloc_and_fillpages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)This is in preparation for the removal of find_get_pages_range_tag(). Now also supports the use of large folios.
Since tofind might be larger than the max number of folios in a folio_batch (15), we loop through filling in wdata->pages pulling more batches until we either reach tofind pages or run out of folios.
This function may not return all pages in the last found folio before tofind pages are reached.
--- fs/cifs/file.c | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-)
fs/cifs/file.c +30 -3
@@ -2520,14 +2520,41 @@ wdata_alloc_and_fillpages(pgoff_t tofind, struct address_space *mapping, unsigned int *found_pages) {struct cifs_writedata *wdata; - +struct folio_batch fbatch; +unsigned int i, idx, p, nr; wdata =cifs_writedata_alloc ((unsigned int )tofind, cifs_writev_complete);if (!wdata)return NULL ; - *found_pages =find_get_pages_range_tag (mapping, index, end, -PAGECACHE_TAG_DIRTY , tofind, wdata->pages); +folio_batch_init (&fbatch); + *found_pages =0 ; + +again: + nr =filemap_get_folios_tag (mapping, index, end, +PAGECACHE_TAG_DIRTY , &fbatch); +if (!nr) + goto out;/* No dirty pages left in the range */ + +for (i =0 ; i < nr; i++) { +struct folio *folio = fbatch.folios[i]; + + idx =0 ; + p =folio_nr_pages (folio); +add_more: + wdata->pages[*found_pages] =folio_page (folio, idx); +if (++*found_pages == tofind) { +folio_batch_release (&fbatch); + goto out; + } +if (++idx < p) { +folio_ref_inc (folio); + goto add_more; + } + } +folio_batch_release (&fbatch); + goto again; +out:return wdata; }
Signature · 1 line
2.36.1
kernel test robot
build botRe: [PATCH v3 09/23] cifs: Convert wdata_alloc_and_fillpages() to use filemap_get_folios_tag()
FYI, we noticed BUG:Bad_page_state_in_process due to commit (built with gcc-11):
Greeting,
FYI, we noticed BUG:Bad_page_state_in_process due to commit (built with gcc-11):
commit: 68e9d45f5b0e8ca96c02dc221a65e54d859303ff ("[PATCH v3 09/23] cifs: Convert wdata_alloc_and_fillpages() to use filemap_get_folios_tag()")
url: https://github.com/intel-lab-lkp/linux/commits/Vishal-Moola-Oracle/Convert-to-filemap_get_folios_tag/20221018-042652
base: https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs.git dev-test
patch link: https://lore.kernel.org/linux-fsdevel/20221017202451.4951-10-vishal.moola at gmail.com
patch subject: [PATCH v3 09/23] cifs: Convert wdata_alloc_and_fillpages() to use filemap_get_folios_tag()
in testcase: xfstests
version: xfstests-x86_64-5a5e419-1_20221017
with following parameters:
disk: 4HDD fs: ext4 fs2: smbv2 test: generic-group-12
test-description: xfstests is a regression test suite for xfs and other files ystems.
test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git
on test machine: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Skylake) with 16G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/r/202210232124.c0b1783d-oliver.sang at intel.com
[ 89.915631][ T1848] BUG: Bad page state in process smbd pfn:1194e6 [ 89.921904][ T1848] page:000000009b7feda3 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194e6 [ 89.931963][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 89.940378][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 89.947587][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 89.956001][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 89.964418][ T1848] page dumped because: non-NULL mapping [ 89.969804][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 90.037090][ T1848] CPU: 7 PID: 1848 Comm: smbd Not tainted 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 90.045508][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 90.054446][ T1848] Call Trace: [ 90.057586][ T1848] <TASK> [ 90.060379][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 90.064730][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 90.068993][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 90.073866][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 90.078473][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 90.083430][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 90.088213][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 90.092655][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 90.097962][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 90.102657][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 90.107357][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 90.112318][ T1848] vfs_fstatat (fs/stat.c:267) [ 90.116408][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 90.121102][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 90.125800][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 90.130583][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 90.134327][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 90.138603][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 90.144339][ T1848] RIP: 0033:0x7f44ce83fe06 [ 90.148610][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 90.168016][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 90.176266][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 90.184078][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 90.191888][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 90.199698][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 90.207509][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 90.215315][ T1848] </TASK> [ 90.218194][ T1848] Disabling lock debugging due to kernel taint [ 90.224193][ T1848] BUG: Bad page state in process smbd pfn:1194e7 [ 90.230448][ T1848] page:00000000a81a28a0 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194e7 [ 90.240506][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 90.248924][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 90.256145][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 90.264561][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 90.272975][ T1848] page dumped because: non-NULL mapping [ 90.278360][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 90.345634][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 90.355529][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 90.364458][ T1848] Call Trace: [ 90.367597][ T1848] <TASK> [ 90.370393][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 90.374743][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 90.379003][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 90.383871][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 90.388492][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 90.393454][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 90.398234][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 90.402670][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 90.407974][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 90.412674][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 90.417371][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 90.422336][ T1848] vfs_fstatat (fs/stat.c:267) [ 90.426442][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 90.431143][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 90.435843][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 90.440636][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 90.444389][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 90.448654][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 90.454392][ T1848] RIP: 0033:0x7f44ce83fe06 [ 90.458659][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 90.478066][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 90.486310][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 90.494119][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 90.501933][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 90.509741][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 90.517545][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 90.525353][ T1848] </TASK> [ 90.528230][ T1848] BUG: Bad page state in process smbd pfn:1194e8 [ 90.534479][ T1848] page:00000000cb832fa7 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194e8 [ 90.544540][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 90.552944][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 90.560146][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 90.568562][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 90.576978][ T1848] page dumped because: non-NULL mapping [ 90.582364][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 90.649622][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 90.659505][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 90.668444][ T1848] Call Trace: [ 90.671580][ T1848] <TASK> [ 90.674373][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 90.678732][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 90.682990][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 90.687860][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 90.692473][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 90.697432][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 90.702225][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 90.706658][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 90.711959][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 90.716660][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 90.721352][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 90.726318][ T1848] vfs_fstatat (fs/stat.c:267) [ 90.730409][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 90.735102][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 90.739801][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 90.744590][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 90.748338][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 90.752607][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 90.758344][ T1848] RIP: 0033:0x7f44ce83fe06 [ 90.762610][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 90.782006][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 90.790250][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 90.798062][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 90.805876][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 90.813689][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 90.821504][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 90.829327][ T1848] </TASK> [ 90.832207][ T1848] BUG: Bad page state in process smbd pfn:1194e9 [ 90.838450][ T1848] page:00000000de8036b9 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194e9 [ 90.848514][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 90.856926][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 90.864143][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 90.872564][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 90.880975][ T1848] page dumped because: non-NULL mapping [ 90.886367][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 90.953634][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 90.963530][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 90.972471][ T1848] Call Trace: [ 90.975610][ T1848] <TASK> [ 90.978404][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 90.982757][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 90.987022][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 90.991891][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 90.996499][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 91.001448][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 91.006226][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 91.010660][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 91.015963][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 91.020659][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 91.025352][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 91.030303][ T1848] vfs_fstatat (fs/stat.c:267) [ 91.034394][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 91.039088][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 91.043785][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 91.048568][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 91.052312][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 91.056576][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 91.062311][ T1848] RIP: 0033:0x7f44ce83fe06 [ 91.066575][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 91.085972][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 91.094220][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 91.102030][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 91.109839][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 91.117651][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 91.125460][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 91.133274][ T1848] </TASK> [ 91.136150][ T1848] BUG: Bad page state in process smbd pfn:1194ea [ 91.142404][ T1848] page:00000000470bcf07 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194ea [ 91.152466][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 91.160890][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 91.168097][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 91.176505][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 91.184925][ T1848] page dumped because: non-NULL mapping [ 91.190310][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 91.257580][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 91.267466][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 91.276405][ T1848] Call Trace: [ 91.279541][ T1848] <TASK> [ 91.282335][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 91.286687][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 91.290948][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 91.295819][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 91.300426][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 91.305383][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 91.310159][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 91.314598][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 91.319904][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 91.324599][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 91.329298][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 91.334252][ T1848] vfs_fstatat (fs/stat.c:267) [ 91.338343][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 91.343039][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 91.347735][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 91.352518][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 91.356262][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 91.360529][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 91.366258][ T1848] RIP: 0033:0x7f44ce83fe06 [ 91.370525][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 91.389932][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 91.398182][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 91.405992][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 91.413798][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 91.421609][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 91.429417][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 91.437226][ T1848] </TASK> [ 91.440101][ T1848] BUG: Bad page state in process smbd pfn:1194eb [ 91.446353][ T1848] page:0000000024a0b7d6 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194eb [ 91.456413][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 91.464824][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 91.472028][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 91.480437][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 91.488854][ T1848] page dumped because: non-NULL mapping [ 91.494245][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 91.561524][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 91.571412][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 91.580344][ T1848] Call Trace: [ 91.583482][ T1848] <TASK> [ 91.586274][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 91.590621][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 91.594884][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 91.599750][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 91.604358][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 91.609312][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 91.614095][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 91.618535][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 91.623835][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 91.628530][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 91.633230][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 91.638187][ T1848] vfs_fstatat (fs/stat.c:267) [ 91.642275][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 91.646973][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 91.651670][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 91.656452][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 91.660197][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 91.664460][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 91.670196][ T1848] RIP: 0033:0x7f44ce83fe06 [ 91.674461][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 91.693859][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 91.702109][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 91.709915][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 91.717726][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 91.725529][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 91.733342][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 91.741150][ T1848] </TASK> [ 91.744026][ T1848] BUG: Bad page state in process smbd pfn:1194ec [ 91.750282][ T1848] page:000000004d5f8313 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194ec [ 91.760343][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 91.768765][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 91.775969][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 91.784390][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 91.792803][ T1848] page dumped because: non-NULL mapping [ 91.798190][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 91.865439][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 91.875330][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 91.884263][ T1848] Call Trace: [ 91.887403][ T1848] <TASK> [ 91.890196][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 91.894548][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 91.898810][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 91.903682][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 91.908292][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 91.913249][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 91.918035][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 91.922473][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 91.927772][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 91.932466][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 91.937161][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 91.942120][ T1848] vfs_fstatat (fs/stat.c:267) [ 91.946210][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 91.950908][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 91.955603][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 91.960385][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 91.964125][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 91.968387][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 91.974120][ T1848] RIP: 0033:0x7f44ce83fe06 [ 91.978380][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 91.997780][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 92.006029][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 92.013842][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 92.021653][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 92.029461][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 92.037270][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 92.045080][ T1848] </TASK> [ 92.047959][ T1848] BUG: Bad page state in process smbd pfn:1194ed [ 92.054211][ T1848] page:0000000067836541 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194ed [ 92.064274][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 92.072697][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 92.079904][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 92.088325][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 92.096740][ T1848] page dumped because: non-NULL mapping [ 92.102127][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 92.169389][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 92.179276][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 92.188211][ T1848] Call Trace: [ 92.191351][ T1848] <TASK> [ 92.194145][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 92.198497][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 92.202761][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 92.207630][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 92.212243][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 92.217202][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 92.221983][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 92.226422][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 92.231721][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 92.236417][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 92.241118][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 92.246078][ T1848] vfs_fstatat (fs/stat.c:267) [ 92.250166][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 92.254862][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 92.259563][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 92.264347][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 92.268091][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 92.272354][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 92.278091][ T1848] RIP: 0033:0x7f44ce83fe06 [ 92.282353][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 92.301757][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 92.310006][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 92.317820][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 92.325631][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 92.333449][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 92.341260][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 92.349070][ T1848] </TASK> [ 92.351948][ T1848] BUG: Bad page state in process smbd pfn:1194ee [ 92.358201][ T1848] page:00000000a7a08c10 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194ee [ 92.368265][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 92.376682][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 92.383888][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 92.392309][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 92.400726][ T1848] page dumped because: non-NULL mapping [ 92.406115][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 92.473398][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 92.483288][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 92.492227][ T1848] Call Trace: [ 92.495367][ T1848] <TASK> [ 92.498161][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 92.502513][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 92.506783][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 92.511652][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 92.516265][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 92.521224][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 92.526011][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 92.530447][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 92.535750][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 92.540446][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 92.545145][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 92.550101][ T1848] vfs_fstatat (fs/stat.c:267) [ 92.554192][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 92.558892][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 92.563591][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 92.568376][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 92.572124][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 92.576389][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 92.582127][ T1848] RIP: 0033:0x7f44ce83fe06 [ 92.586389][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 92.605798][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 92.614052][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 92.621865][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 92.629680][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 92.637493][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 92.645303][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 92.653120][ T1848] </TASK> [ 92.655996][ T1848] BUG: Bad page state in process smbd pfn:1194ef [ 92.662249][ T1848] page:00000000285a6a1c refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x1194ef [ 92.672311][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 92.680728][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 92.687938][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 92.696356][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 92.704770][ T1848] page dumped because: non-NULL mapping [ 92.710159][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 92.777420][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 92.787310][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 92.796245][ T1848] Call Trace: [ 92.799381][ T1848] <TASK> [ 92.802178][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 92.806527][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 92.810792][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 92.815663][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 92.820277][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 92.825232][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 92.830015][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 92.834457][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 92.839761][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 92.844457][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 92.849150][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 92.854101][ T1848] vfs_fstatat (fs/stat.c:267) [ 92.858190][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 92.862891][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 92.867587][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 92.872373][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 92.876116][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 92.880379][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 92.886112][ T1848] RIP: 0033:0x7f44ce83fe06 [ 92.890375][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 92.909774][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 92.918031][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 92.925839][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 92.933643][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 92.941456][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 92.949265][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 92.957075][ T1848] </TASK> [ 92.959954][ T1848] BUG: Bad page state in process smbd pfn:118f30 [ 92.966203][ T1848] page:00000000d3d1a7a2 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x118f30 [ 92.976260][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 92.984682][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 92.991888][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 93.000301][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 93.008713][ T1848] page dumped because: non-NULL mapping [ 93.014105][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 93.081375][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 93.091265][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 93.100202][ T1848] Call Trace: [ 93.103340][ T1848] <TASK> [ 93.106133][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 93.110484][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 93.114751][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 93.119620][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 93.124233][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 93.129186][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 93.133969][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 93.138406][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 93.143709][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 93.148407][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 93.153104][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 93.158063][ T1848] vfs_fstatat (fs/stat.c:267) [ 93.162154][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 93.166848][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 93.171544][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 93.176331][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 93.180074][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 93.184341][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 93.190077][ T1848] RIP: 0033:0x7f44ce83fe06 [ 93.194347][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 93.213751][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 93.222001][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 93.229813][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 93.237618][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 93.245433][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 93.253245][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 93.261054][ T1848] </TASK> [ 93.263934][ T1848] BUG: Bad page state in process smbd pfn:118f31 [ 93.270193][ T1848] page:000000005c2adb74 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x118f31 [ 93.280259][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 93.288688][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 93.295889][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 93.304309][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 93.312720][ T1848] page dumped because: non-NULL mapping [ 93.318109][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 93.385363][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 93.395250][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 93.404180][ T1848] Call Trace: [ 93.407319][ T1848] <TASK> [ 93.410115][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 93.414467][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 93.418733][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 93.423604][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 93.428211][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 93.433169][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 93.437956][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 93.442389][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 93.447691][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 93.452389][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 93.457085][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 93.462044][ T1848] vfs_fstatat (fs/stat.c:267) [ 93.466131][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 93.470827][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 93.475517][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 93.480302][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 93.484048][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 93.488316][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 93.494047][ T1848] RIP: 0033:0x7f44ce83fe06 [ 93.498314][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 93.517726][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 93.525975][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 93.533781][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 93.541596][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 93.549405][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 93.557216][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 93.565025][ T1848] </TASK> [ 93.567905][ T1848] BUG: Bad page state in process smbd pfn:118f32 [ 93.574156][ T1848] page:00000000bb78916a refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x118f32 [ 93.584223][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 93.592633][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 93.599843][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 93.608253][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 93.616674][ T1848] page dumped because: non-NULL mapping [ 93.622059][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 93.689328][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 93.699214][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 93.708149][ T1848] Call Trace: [ 93.711284][ T1848] <TASK> [ 93.714077][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 93.718429][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 93.722693][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 93.727567][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 93.732173][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 93.737125][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 93.741909][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 93.746347][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 93.751646][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 93.756341][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 93.761039][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 93.765992][ T1848] vfs_fstatat (fs/stat.c:267) [ 93.770084][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 93.774782][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 93.779477][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 93.784264][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 93.788004][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 93.792268][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 93.798006][ T1848] RIP: 0033:0x7f44ce83fe06 [ 93.802268][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 93.821674][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 93.829914][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 93.837726][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 93.845541][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 93.853357][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 93.861166][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 93.868979][ T1848] </TASK> [ 93.871854][ T1848] BUG: Bad page state in process smbd pfn:118f33 [ 93.878112][ T1848] page:000000001512f2f0 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x118f33 [ 93.888172][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 93.896590][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 93.903796][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 93.912215][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 93.920630][ T1848] page dumped because: non-NULL mapping [ 93.926023][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 93.993291][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 94.003174][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 94.012107][ T1848] Call Trace: [ 94.015248][ T1848] <TASK> [ 94.018042][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 94.022393][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 94.026661][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 94.031531][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 94.036141][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 94.041096][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 94.045874][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 94.050313][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 94.055620][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 94.060314][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 94.065012][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 94.069966][ T1848] vfs_fstatat (fs/stat.c:267) [ 94.074061][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 94.078754][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 94.083449][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 94.088235][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 94.091978][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 94.096242][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 94.101978][ T1848] RIP: 0033:0x7f44ce83fe06 [ 94.106242][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 94.125642][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 94.133893][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 94.141705][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 94.149515][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 94.157327][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 94.165131][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 94.172942][ T1848] </TASK> [ 94.175822][ T1848] BUG: Bad page state in process smbd pfn:118f34 [ 94.182072][ T1848] page:0000000045698414 refcount:0 mapcount:0 mapping:0000000063f5da90 index:0x1 pfn:0x118f34 [ 94.192130][ T1848] aops:cifs_addr_ops [cifs] ino:98d4b152911bf074 dentry name:"filler.004" [ 94.200546][ T1848] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 94.207753][ T1848] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884298abdf8 [ 94.216168][ T1848] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 94.224588][ T1848] page dumped because: non-NULL mapping [ 94.229975][ T1848] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 94.297245][ T1848] CPU: 7 PID: 1848 Comm: smbd Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 94.307140][ T1848] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 94.316072][ T1848] Call Trace: [ 94.319209][ T1848] <TASK> [ 94.322001][ T1848] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 94.326353][ T1848] bad_page.cold (mm/page_alloc.c:719) [ 94.330617][ T1848] free_pcppages_bulk (mm/page_alloc.c:1610) [ 94.335491][ T1848] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 94.340095][ T1848] __unfreeze_partials (mm/slub.c:2581) [ 94.345053][ T1848] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 94.349834][ T1848] qlist_free_all (mm/kasan/quarantine.c:182) [ 94.354272][ T1848] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 94.359574][ T1848] __kasan_slab_alloc (mm/kasan/common.c:302) [ 94.364272][ T1848] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 94.368967][ T1848] getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135) [ 94.373923][ T1848] vfs_fstatat (fs/stat.c:267) [ 94.378010][ T1848] __do_sys_newlstat (fs/stat.c:424) [ 94.382708][ T1848] ? __ia32_sys_lstat (fs/stat.c:419) [ 94.387403][ T1848] ? __do_sys_getcwd (fs/d_path.c:412) [ 94.392188][ T1848] ? fput (arch/x86/include/asm/atomic64_64.h:118 include/linux/atomic/atomic-long.h:467 include/linux/atomic/atomic-instrumented.h:1814 fs/file_table.c:371) [ 94.395931][ T1848] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 94.400194][ T1848] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 94.405929][ T1848] RIP: 0033:0x7f44ce83fe06 [ 94.410192][ T1848] Code: 30 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 8b 15 59 30 0e 00 f7 d8 64 89 02 All code ======== 0: 30 0e xor %cl,(%rsi) 2: 00 64 c7 00 add %ah,0x0(%rdi,%rax,8) 6: 16 (bad) 7: 00 00 add %al,(%rax) 9: 00 b8 ff ff ff ff add %bh,-0x1(%rax) f: c3 retq 10: 0f 1f 40 00 nopl 0x0(%rax) 14: 41 89 f8 mov %edi,%r8d 17: 48 89 f7 mov %rsi,%rdi 1a: 48 89 d6 mov %rdx,%rsi 1d: 41 83 f8 01 cmp $0x1,%r8d 21: 77 29 ja 0x4c 23: b8 06 00 00 00 mov $0x6,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 02 ja 0x34 32: c3 retq 33: 90 nop 34: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe3094 3b: f7 d8 neg %eax 3d: 64 89 02 mov %eax,%fs:(%rdx)
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 02 ja 0xa 8: c3 retq 9: 90 nop a: 48 8b 15 59 30 0e 00 mov 0xe3059(%rip),%rdx # 0xe306a 11: f7 d8 neg %eax 13: 64 89 02 mov %eax,%fs:(%rdx) [ 94.429595][ T1848] RSP: 002b:00007ffc246c6968 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 [ 94.437841][ T1848] RAX: ffffffffffffffda RBX: 000055d4ae693780 RCX: 00007f44ce83fe06 [ 94.445653][ T1848] RDX: 00007ffc246c69b0 RSI: 00007ffc246c69b0 RDI: 000055d4ae692780 [ 94.453462][ T1848] RBP: 00007ffc246c6a80 R08: 0000000000000001 R09: 000055d4ae6771ac [ 94.461272][ T1848] R10: 0000000000000010 R11: 0000000000000246 R12: 000055d4ae692780 [ 94.469082][ T1848] R13: 000055d4ae6771b2 R14: 000055d4ae692797 R15: 000055d4ae6771b3 [ 94.476891][ T1848] </TASK> [ 94.641946][ T2350] BUG: Bad page state in process dbench pfn:1a75dd [ 94.648387][ T2350] page:0000000092f64f04 refcount:0 mapcount:0 mapping:000000006ad6f7fc index:0x1 pfn:0x1a75dd [ 94.658450][ T2350] aops:cifs_addr_ops [cifs] ino:98d4b153c0c70664 dentry name:"BASEMACH.DOC" [ 94.667031][ T2350] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 94.674236][ T2350] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff888426551fb8 [ 94.682648][ T2350] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 94.691063][ T2350] page dumped because: non-NULL mapping [ 94.696447][ T2350] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ah 96.130323][ T2350] __kasan_slab_alloc (mm/kasan/common.c:302) [ 96.135019][ T2350] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 96.139724][ T2350] cifs_readdir (include/linux/fs.h:1333 fs/cifs/cifsglob.h:1579 fs/cifs/readdir.c:1073) cifs [ 96.144742][ T2350] ? cifs_dir_info_to_fattr (fs/cifs/readdir.c:1058) cifs [ 96.150623][ T2350] ? __cond_resched (kernel/sched/core.c:8325) [ 96.155152][ T2350] ? down_read_killable (arch/x86/include/asm/atomic64_64.h:34 include/linux/atomic/atomic-long.h:41 include/linux/atomic/atomic-instrumented.h:1280 kernel/locking/rwsem.c:176 kernel/locking/rwsem.c:181 kernel/locking/rwsem.c:249 kernel/locking/rwsem.c:1259 kernel/locking/rwsem.c:1279 kernel/locking/rwsem.c:1534) [ 96.160192][ T2350] ? down_read (kernel/locking/rwsem.c:1530) [ 96.164452][ T2350] ? fsnotify_perm+0x13b/0x4c0 [ 96.169669][ T2350] iterate_dir (fs/readdir.c:65) [ 96.173932][ T2350] __x64_sys_getdents64 (fs/readdir.c:370 fs/readdir.c:354 fs/readdir.c:354) [ 96.178974][ T2350] ? __ia32_sys_getdents (fs/readdir.c:354) [ 96.184097][ T2350] ? __x64_sys_getdents (fs/readdir.c:312) [ 96.189137][ T2350] ? switch_fpu_return (arch/x86/include/asm/bitops.h:75 include/asm-generic/bitops/instrumented-atomic.h:42 include/linux/thread_info.h:94 arch/x86/kernel/fpu/context.h:80 arch/x86/kernel/fpu/core.c:755) [ 96.194006][ T2350] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 96.198264][ T2350] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 96.203997][ T2350] RIP: 0033:0x7f294a72e387 [ 96.208259][ T2350] Code: 0f 1f 00 48 8b 47 20 c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 81 fa ff ff ff 7f b8 ff ff ff 7f 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 d9 aa 10 00 f7 d8 64 89 02 48 All code ======== 0: 0f 1f 00 nopl (%rax) 3: 48 8b 47 20 mov 0x20(%rdi),%rax 7: c3 retq 8: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) f: 00 00 00 12: 90 nop 13: 48 81 fa ff ff ff 7f cmp $0x7fffffff,%rdx 1a: b8 ff ff ff 7f mov $0x7fffffff,%eax 1f: 48 0f 47 d0 cmova %rax,%rdx 23: b8 d9 00 00 00 mov $0xd9,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 01 ja 0x33 32: c3 retq 33: 48 8b 15 d9 aa 10 00 mov 0x10aad9(%rip),%rdx # 0x10ab13 3a: f7 d8 neg %eax 3c: 64 89 02 mov %eax,%fs:(%rdx)
3f: 48 rex.W
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 01 ja 0x9 8: c3 retq 9: 48 8b 15 d9 aa 10 00 mov 0x10aad9(%rip),%rdx # 0x10aae9 10: f7 d8 neg %eax 12: 64 89 02 mov %eax,%fs:(%rdx) 15: 48 rex.W [ 96.227653][ T2350] RSP: 002b:00007ffc6f7a81b8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 [ 96.235901][ T2350] RAX: ffffffffffffffda RBX: 000055f6e0124340 RCX: 00007f294a72e387 [ 96.243707][ T2350] RDX: 0000000000100000 RSI: 000055f6e0124370 RDI: 0000000000000006 [ 96.251513][ T2350] RBP: 000055f6e0124370 R08: 00000000000000a0 R09: 0000000000000c02 [ 96.259318][ T2350] R10: 00007f294a7c6220 R11: 0000000000000293 R12: ffffffffffffff80 [ 96.267129][ T2350] R13: 000055f6e0124344 R14: 0000000000000002 R15: 000055f6e0122920 [ 96.274936][ T2350] </TASK> [ 96.277815][ T2350] BUG: Bad page state in process dbench pfn:12ffbe [ 96.284239][ T2350] page:0000000058793f2f refcount:0 mapcount:0 mapping:000000006ad6f7fc index:0x1 pfn:0x12ffbe [ 96.294294][ T2350] aops:cifs_addr_ops [cifs] ino:98d4b153c0c70664 dentry name:"BASEMACH.DOC" [ 96.302871][ T2350] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 96.310071][ T2350] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff888426551fb8 [ 96.318486][ T2350] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 96.326899][ T2350] page dumped because: non-NULL mapping [ 96.332284][ T2350] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 96.399515][ T2350] CPU: 5 PID: 2350 Comm: dbench Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 96.409572][ T2350] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 96.418503][ T2350] Call Trace: [ 96.421645][ T2350] <TASK> [ 96.424437][ T2350] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 96.428788][ T2350] bad_page.cold (mm/page_alloc.c:719) [ 96.433050][ T2350] free_pcppages_bulk (mm/page_alloc.c:1610) [ 96.437921][ T2350] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 96.442525][ T2350] qlist_free_all (mm/kasan/quarantine.c:182) [ 96.446964][ T2350] ? _raw_write_lock_irq (kernel/locking/spinlock.c:153) [ 96.452087][ T2350] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 96.457388][ T2350] __kasan_slab_alloc (mm/kasan/common.c:302) [ 96.462085][ T2350] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 96.466784][ T2350] cifs_readdir (include/linux/fs.h:1333 fs/cifs/cifsglob.h:1579 fs/cifs/readdir.c:1073) cifs [ 96.471800][ T2350] ? cifs_dir_info_to_fattr (fs/cifs/readdir.c:1058) cifs [ 96.477677][ T2350] ? __cond_resched (kernel/sched/core.c:8325) [ 96.482201][ T2350] dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 98.689502][ T2350] CPU: 5 PID: 2350 Comm: dbench Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 98.699564][ T2350] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 98.708492][ T2350] Call Trace: [ 98.711630][ T2350] <TASK> [ 98.714425][ T2350] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 98.718774][ T2350] bad_page.cold (mm/page_alloc.c:719) [ 98.723041][ T2350] free_pcppages_bulk (mm/page_alloc.c:1610) [ 98.727907][ T2350] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 98.732514][ T2350] qlist_free_all (mm/kasan/quarantine.c:182) [ 98.736952][ T2350] ? _raw_write_lock_irq (kernel/locking/spinlock.c:153) [ 98.742083][ T2350] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 98.747389][ T2350] __kasan_slab_alloc (mm/kasan/common.c:302) [ 98.752090][ T2350] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 98.756781][ T2350] cifs_readdir (include/linux/fs.h:1333 fs/cifs/cifsglob.h:1579 fs/cifs/readdir.c:1073) cifs [ 98.761799][ T2350] ? cifs_dir_info_to_fattr (fs/cifs/readdir.c:1058) cifs [ 98.767679][ T2350] ? __cond_resched (kernel/sched/core.c:8325) [ 98.772209][ T2350] ? down_read_killable (arch/x86/include/asm/atomic64_64.h:34 include/linux/atomic/atomic-long.h:41 include/linux/atomic/atomic-instrumented.h:1280 kernel/locking/rwsem.c:176 kernel/locking/rwsem.c:181 kernel/locking/rwsem.c:249 kernel/locking/rwsem.c:1259 kernel/locking/rwsem.c:1279 kernel/locking/rwsem.c:1534) [ 98.777253][ T2350] ? down_read (kernel/locking/rwsem.c:1530) [ 98.781518][ T2350] ? fsnotify_perm+0x13b/0x4c0 [ 98.786731][ T2350] iterate_dir (fs/readdir.c:65) [ 98.790989][ T2350] __x64_sys_getdents64 (fs/readdir.c:370 fs/readdir.c:354 fs/readdir.c:354) [ 98.796033][ T2350] ? __ia32_sys_getdents (fs/readdir.c:354) [ 98.801159][ T2350] ? __x64_sys_getdents (fs/readdir.c:312) [ 98.806201][ T2350] ? switch_fpu_return (arch/x86/include/asm/bitops.h:75 include/asm-generic/bitops/instrumented-atomic.h:42 include/linux/thread_info.h:94 arch/x86/kernel/fpu/context.h:80 arch/x86/kernel/fpu/core.c:755) [ 98.811069][ T2350] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 98.815333][ T2350] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 98.821065][ T2350] RIP: 0033:0x7f294a72e387 [ 98.825328][ T2350] Code: 0f 1f 00 48 8b 47 20 c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 81 fa ff ff ff 7f b8 ff ff ff 7f 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 d9 aa 10 00 f7 d8 64 89 02 48 All code ======== 0: 0f 1f 00 nopl (%rax) 3: 48 8b 47 20 mov 0x20(%rdi),%rax 7: c3 retq 8: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) f: 00 00 00 12: 90 nop 13: 48 81 fa ff ff ff 7f cmp $0x7fffffff,%rdx 1a: b8 ff ff ff 7f mov $0x7fffffff,%eax 1f: 48 0f 47 d0 cmova %rax,%rdx 23: b8 d9 00 00 00 mov $0xd9,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 01 ja 0x33 32: c3 retq 33: 48 8b 15 d9 aa 10 00 mov 0x10aad9(%rip),%rdx # 0x10ab13 3a: f7 d8 neg %eax 3c: 64 89 02 mov %eax,%fs:(%rdx)
3f: 48 rex.W
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 01 ja 0x9 8: c3 retq 9: 48 8b 15 d9 aa 10 00 mov 0x10aad9(%rip),%rdx # 0x10aae9 10: f7 d8 neg %eax 12: 64 89 02 mov %eax,%fs:(%rdx) 15: 48 rex.W [ 98.844724][ T2350] RSP: 002b:00007ffc6f7a81b8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 [ 98.852971][ T2350] RAX: ffffffffffffffda RBX: 000055f6e0124340 RCX: 00007f294a72e387 [ 98.860777][ T2350] RDX: 0000000000100000 RSI: 000055f6e0124370 RDI: 0000000000000006 [ 98.868583][ T2350] RBP: 000055f6e0124370 R08: 00000000000000a0 R09: 0000000000000c02 [ 98.876391][ T2350] R10: 00007f294a7c6220 R11: 0000000000000293 R12: ffffffffffffff80 [ 98.884201][ T2350] R13: 000055f6e0124344 R14: 0000000000000002 R15: 000055f6e0122920 [ 98.892010][ T2350] </TASK> [ 98.894886][ T2350] BUG: Bad page state in process dbench pfn:18f76a [ 98.901310][ T2350] page:0000000011b33e6d refcount:0 mapcount:0 mapping:000000006ad6f7fc index:0x1 pfn:0x18f76a [ 98.911369][ T2350] aops:cifs_addr_ops [cifs] ino:98d4b153c0c70664 dentry name:"BASEMACH.DOC" [ 98.919945][ T2350] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 98.927154][ T2350] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff888426551fb8 [ 98.935568][ T2350] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 98.943981][ T2350] page dumped because: non-NULL mapping [ 98.949366][ T2350] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 99.016603][ T2350] CPU: 5 PID: 2350 Comm: dbench Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 99.026667][ T2350] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 99.035598][ T2350] Call Trace: [ 99.038732][ T2350] <TASK> [ 99.041528][ T2350] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 99.045876][ T2350] bad_page.cold (mm/page_alloc.c:719) [ 99.050137][ T2350] free_pcppages_bulk (mm/page_alloc.c:1610) [ 99.055008][ T2350] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 99.059614][ T2350] qlist_free_all (mm/kasan/quarantine.c:182) [ 99.064051][ T2350] ? _raw_write_lock_irq (kernel/locking/spinlock.c:153) [ 99.069179][ T2350] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 99.074481][ T2350] __kasan_slab_alloc (mm/kasan/common.c:302) [ 99.079179][ T2350] kmem_cache_alloc (mm/slab.h:737 mm/slub.c:3398 mm/slub.c:3406 mm/slub.c:3413 mm/slub.c:3422) [ 99.083877][ T2350] cifs_readdir (include/linux/fs.h:1333 fs/cifs/cifsglob.h:1579 fs/cifs/readdir.c:1073) cifs [ 99.088894][ T2350] ? cifs_dir_info_to_fattr (fs/cifs/readdir.c:1058) cifs [ 99.094773][ T2350] ? __cond_resched (kernel/sched/core.c:8325) [ 99.099297][ T2350] ? down_read_killable (arch/x86/include/asm/atomic64_64.h:34 include/linux/atomic/atomic-long.h:41 include/linux/atomic/atomic-instrumented.h:1280 kernel/locking/rwsem.c:176 kernel/locking/rwsem.c:181 kernel/locking/rwsem.c:249 kernel/locking/rwsem.c:1259 kernel/locking/rwsem.c:1279 kernel/locking/rwsem.c:1534) [ 99.104337][ T2350] ? down_read (kernel/locking/rwsem.c:1530) [ 99.108598][ T2350] ? fsnotify_perm+0x13b/0x4c0 [ 99.113813][ T2350] iterate_dir (fs/readdir.c:65) [ 99.118085][ T2350] __x64_sys_getdents64 (fs/readdir.c:370 fs/readdir.c:354 fs/readdir.c:354) [ 99.123126][ T2350] ? __ia32_sys_getdents (fs/readdir.c:354) [ 99.128250][ T2350] ? __x64_sys_getdents (fs/readdir.c:312) [ 99.133292][ T2350] ? switch_fpu_return (arch/x86/include/asm/bitops.h:75 include/asm-generic/bitops/instrumented-atomic.h:42 include/linux/thread_info.h:94 arch/x86/kernel/fpu/context.h:80 arch/x86/kernel/fpu/core.c:755) [ 99.138163][ T2350] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 99.142424][ T2350] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 99.148157][ T2350] RIP: 0033:0x7f294a72e387 [ 99.152422][ T2350] Code: 0f 1f 00 48 8b 47 20 c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 81 fa ff ff ff 7f b8 ff ff ff 7f 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 d9 aa 10 00 f7 d8 64 89 02 48 All code ======== 0: 0f 1f 00 nopl (%rax) 3: 48 8b 47 20 mov 0x20(%rdi),%rax 7: c3 retq 8: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) f: 00 00 00 12: 90 nop 13: 48 81 fa ff ff ff 7f cmp $0x7fffffff,%rdx 1a: b8 ff ff ff 7f mov $0x7fffffff,%eax 1f: 48 0f 47 d0 cmova %rax,%rdx 23: b8 d9 00 00 00 mov $0xd9,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 01 ja 0x33 32: c3 retq 33: 48 8b 15 d9 aa 10 00 mov 0x10aad9(%rip),%rdx # 0x10ab13 3a: f7 d8 neg %eax 3c: 64 89 02 mov %eax,%fs:(%rdx)
3f: 48 rex.W
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 01 ja 0x9 8: c3 retq 9: 48 8b 15 d9 aa 10 00 mov 0x10aad9(%rip),%rdx # 0x10aae9 10: f7 d8 neg %eax 12: 64 89 02 mov %eax,%fs:(%rdx) 15: 48 rex.W [ 99.171814][ T2350] RSP: 002b:00007ffc6f7a81b8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 [ 99.180062][ T2350] RAX: ffffffffffffffda RBX: 000055f6e0124340 RCX: 00007f294a72e387 [ 99.187870][ T2350] RDX: 0000000000100000 RSI: 000055f6e0124370 RDI: 0000000000000006 [ 99.195682][ T2350] RBP: 000055f6e0124370 R08: 00000000000000a0 R09: 0000000000000c02 [ 99.203488][ T2350] R10: 00007f294a7c6220 R11: 0000000000000293 R12: ffffffffffffff80 [ 99.211299][ T2350] R13: 000055f6e0124344 R14: 0000000000000002 R15: 000055f6e0122920 [ 99.219110][ T2350] </TASK> [ 99.223980][ T2399] BUG: Bad page state in process dmesg pfn:1be734 [ 99.230340][ T2399] page:00000000c592dcf7 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be734 [ 99.240399][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 99.249004][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 99.256217][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 99.264629][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 99.273044][ T2399] page dumped because: non-NULL mapping [ 99.278432][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 99.345689][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 99.355670][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 99.364602][ T2399] Call Trace: [ 99.367740][ T2399] <TASK> [ 99.370529][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 99.374882][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 99.379150][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 99.384014][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 99.388621][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 99.393573][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 99.398351][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 99.402787][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 99.408083][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 99.412780][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 99.417907][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 99.422517][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 99.427124][ T2399] __vma_adjust (mm/mmap.c:715) [ 99.431560][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 99.436166][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 99.441466][ T2399] ? vma_expand (mm/mmap.c:619) [ 99.445819][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 99.450080][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 99.456073][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 99.460939][ T2399] ? __split_vma (mm/mmap.c:2301) [ 99.465374][ T2399] ? do_mmap (mm/mmap.c:1411) [ 99.469546][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 99.473638][ T2399] __vm_munmap (mm/mmap.c:2775) [ 99.477905][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 99.482514][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 99.487211][ T2399] elf_map (fs/binfmt_elf.c:392) [ 99.491127][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 99.495826][ T2399] ? load_elf_interp+0xa80/0xa80 [ 99.501651][ T2399] ? kernel_read (fs/read_write.c:443) [ 99.506001][ T2399] search_binary_handler (fs/exec.c:1727) [ 99.511127][ T2399] ? open_exec (fs/exec.c:1706) [ 99.515219][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 99.519484][ T2399] exec_binprm (fs/exec.c:1769) [ 99.523658][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 99.528526][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 99.532879][ T2399] do_execveat_common+0x4c8/0x680 [ 99.538354][ T2399] ? getname_flags (fs/namei.c:205) [ 99.543485][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 99.548008][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 99.552270][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 99.558007][ T2399] RIP: 0033:0x7f089fb17087 [ 99.562273][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 99.569127][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 99.577362][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 99.585171][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 99.592983][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 99.600793][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 99.608603][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 99.616414][ T2399] </TASK> [ 99.619291][ T2399] BUG: Bad page state in process dmesg pfn:1be733 [ 99.625632][ T2399] page:0000000065e98b84 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be733 [ 99.635692][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 99.644291][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 99.651492][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 99.659907][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 99.668321][ T2399] page dumped because: non-NULL mapping [ 99.673703][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 99.740962][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 99.750931][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 99.759860][ T2399] Call Trace: [ 99.763001][ T2399] <TASK> [ 99.765792][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 99.770139][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 99.774405][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 99.779275][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 99.783882][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 99.788838][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 99.793620][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 99.798056][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 99.803353][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 99.808048][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 99.813173][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 99.817782][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 99.822391][ T2399] __vma_adjust (mm/mmap.c:715) [ 99.826827][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 99.831436][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 99.836734][ T2399] ? vma_expand (mm/mmap.c:619) [ 99.841082][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 99.845346][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 99.851336][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 99.856205][ T2399] ? __split_vma (mm/mmap.c:2301) [ 99.860640][ T2399] ? do_mmap (mm/mmap.c:1411) [ 99.864814][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 99.868901][ T2399] __vm_munmap (mm/mmap.c:2775) [ 99.873166][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 99.877773][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 99.882474][ T2399] elf_map (fs/binfmt_elf.c:392) [ 99.886391][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 99.891085][ T2399] ? load_elf_interp+0xa80/0xa80 [ 99.896904][ T2399] ? kernel_read (fs/read_write.c:443) [ 99.901251][ T2399] search_binary_handler (fs/exec.c:1727) [ 99.906382][ T2399] ? open_exec (fs/exec.c:1706) [ 99.910468][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 99.914728][ T2399] exec_binprm (fs/exec.c:1769) [ 99.918910][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 99.923777][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 99.928126][ T2399] do_execveat_common+0x4c8/0x680 [ 99.933598][ T2399] ? getname_flags (fs/namei.c:205) [ 99.938723][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 99.943243][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 99.947504][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 99.953237][ T2399] RIP: 0033:0x7f089fb17087 [ 99.957499][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 99.964356][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 99.972598][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 99.980406][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 99.988214][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 99.996028][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 100.003835][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 100.011644][ T2399] </TASK> [ 100.014521][ T2399] BUG: Bad page state in process dmesg pfn:1be732 [ 100.020859][ T2399] page:00000000edbb7a50 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be732 [ 100.030916][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 100.039516][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 100.046721][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 100.055130][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 100.063538][ T2399] page dumped because: non-NULL mapping [ 100.068926][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 100.136178][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 100.146144][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 100.155077][ T2399] Call Trace: [ 100.158213][ T2399] <TASK> [ 100.161007][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 100.165354][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 100.169616][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 100.174483][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 100.179094][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 100.184048][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 100.188830][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 100.193266][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 100.198567][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 100.203265][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 100.208392][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 100.212999][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 100.217611][ T2399] __vma_adjust (mm/mmap.c:715) [ 100.222047][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 100.226652][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 100.231953][ T2399] ? vma_expand (mm/mmap.c:619) [ 100.236301][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 100.240562][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 100.246553][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 100.251416][ T2399] ? __split_vma (mm/mmap.c:2301) [ 100.255849][ T2399] ? do_mmap (mm/mmap.c:1411) [ 100.260024][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 100.264113][ T2399] __vm_munmap (mm/mmap.c:2775) [ 100.268375][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 100.272984][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 100.277679][ T2399] elf_map (fs/binfmt_elf.c:392) [ 100.281598][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 100.286292][ T2399] ? load_elf_interp+0xa80/0xa80 [ 100.292109][ T2399] ? kernel_read (fs/read_write.c:443) [ 100.296456][ T2399] search_binary_handler (fs/exec.c:1727) [ 100.301586][ T2399] ? open_exec (fs/exec.c:1706) [ 100.305676][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 100.309936][ T2399] exec_binprm (fs/exec.c:1769) [ 100.314110][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 100.318976][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 100.323322][ T2399] do_execveat_common+0x4c8/0x680 [ 100.328793][ T2399] ? getname_flags (fs/namei.c:205) [ 100.333919][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 100.338435][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 100.342696][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 100.348427][ T2399] RIP: 0033:0x7f089fb17087 [ 100.352688][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 100.359541][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 100.367777][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 100.375583][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 100.383386][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 100.391192][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 100.398997][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 100.406803][ T2399] </TASK> [ 100.409682][ T2399] BUG: Bad page state in process dmesg pfn:1be731 [ 100.416021][ T2399] page:000000003670a98b refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be731 [ 100.426078][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 100.434671][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 100.441871][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 100.450279][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 100.458692][ T2399] page dumped because: non-NULL mapping [ 100.464076][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 100.531329][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 100.541296][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 100.550226][ T2399] Call Trace: [ 100.553361][ T2399] <TASK> [ 100.556155][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 100.560506][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 100.564766][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 100.569636][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 100.574244][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 100.579198][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 100.583983][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 100.588416][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 100.593720][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 100.598412][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 100.603539][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 100.608153][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 100.612760][ T2399] __vma_adjust (mm/mmap.c:715) [ 100.617199][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 100.621810][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 100.627108][ T2399] ? vma_expand (mm/mmap.c:619) [ 100.631462][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 100.635724][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 100.641719][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 100.646588][ T2399] ? __split_vma (mm/mmap.c:2301) [ 100.651025][ T2399] ? do_mmap (mm/mmap.c:1411) [ 100.655205][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 100.659300][ T2399] __vm_munmap (mm/mmap.c:2775) [ 100.663565][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 100.668179][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 100.672882][ T2399] elf_map (fs/binfmt_elf.c:392) [ 100.676801][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 100.681502][ T2399] ? load_elf_interp+0xa80/0xa80 [ 100.687323][ T2399] ? kernel_read (fs/read_write.c:443) [ 100.691675][ T2399] search_binary_handler (fs/exec.c:1727) [ 100.696807][ T2399] ? open_exec (fs/exec.c:1706) [ 100.700898][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 100.705165][ T2399] exec_binprm (fs/exec.c:1769) [ 100.709342][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 100.714215][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 100.718567][ T2399] do_execveat_common+0x4c8/0x680 [ 100.724044][ T2399] ? getname_flags (fs/namei.c:205) [ 100.729175][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 100.733700][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 100.737967][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 100.743700][ T2399] RIP: 0033:0x7f089fb17087 [ 100.747962][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 100.754824][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 100.763066][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 100.770879][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 100.778690][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 100.786500][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 100.794313][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 100.802124][ T2399] </TASK> [ 100.805000][ T2399] BUG: Bad page state in process dmesg pfn:1be730 [ 100.811342][ T2399] page:00000000f97030bd refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be730 [ 100.821405][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 100.830004][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 100.837215][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 100.845632][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 100.854050][ T2399] page dumped because: non-NULL mapping [ 100.859441][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 100.926743][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 100.936720][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 100.945656][ T2399] Call Trace: [ 100.948796][ T2399] <TASK> [ 100.951588][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 100.955941][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 100.960205][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 100.965080][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 100.969686][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 100.974643][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 100.979423][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 100.983862][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 100.989166][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 100.993863][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 100.998993][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 101.003608][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 101.008217][ T2399] __vma_adjust (mm/mmap.c:715) [ 101.012656][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 101.017264][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 101.022567][ T2399] ? vma_expand (mm/mmap.c:619) [ 101.026922][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 101.031183][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 101.037177][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 101.042045][ T2399] ? __split_vma (mm/mmap.c:2301) [ 101.046482][ T2399] ? do_mmap (mm/mmap.c:1411) [ 101.050662][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 101.054756][ T2399] __vm_munmap (mm/mmap.c:2775) [ 101.059018][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 101.063633][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 101.068325][ T2399] elf_map (fs/binfmt_elf.c:392) [ 101.072244][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 101.076946][ T2399] ? load_elf_interp+0xa80/0xa80 [ 101.082767][ T2399] ? kernel_read (fs/read_write.c:443) [ 101.087116][ T2399] search_binary_handler (fs/exec.c:1727) [ 101.092244][ T2399] ? open_exec (fs/exec.c:1706) [ 101.096336][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 101.100599][ T2399] exec_binprm (fs/exec.c:1769) [ 101.104775][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 101.109645][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 101.113999][ T2399] do_execveat_common+0x4c8/0x680 [ 101.119474][ T2399] ? getname_flags (fs/namei.c:205) [ 101.124604][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 101.129128][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 101.133392][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 101.139131][ T2399] RIP: 0033:0x7f089fb17087 [ 101.143396][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 101.150254][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 101.158503][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 101.166313][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 101.174120][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 101.181932][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 101.189745][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 101.197561][ T2399] </TASK> [ 101.200439][ T2399] BUG: Bad page state in process dmesg pfn:1be7bf [ 101.206778][ T2399] page:000000006de13f3c refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7bf [ 101.216839][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 101.225426][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 101.232631][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 101.241045][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 101.249458][ T2399] page dumped because: non-NULL mapping [ 101.254849][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 101.322115][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 101.332089][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 101.341026][ T2399] Call Trace: [ 101.344164][ T2399] <TASK> [ 101.346958][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 101.351311][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 101.355574][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 101.360447][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 101.365056][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 101.370013][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 101.374798][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 101.379231][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 101.384536][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 101.389233][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 101.394363][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 101.398972][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 101.403579][ T2399] __vma_adjust (mm/mmap.c:715) [ 101.408015][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 101.412625][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 101.417926][ T2399] ? vma_expand (mm/mmap.c:619) [ 101.422279][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 101.426542][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 101.432535][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 101.437405][ T2399] ? __split_vma (mm/mmap.c:2301) [ 101.441845][ T2399] ? do_mmap (mm/mmap.c:1411) [ 101.446019][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 101.450114][ T2399] __vm_munmap (mm/mmap.c:2775) [ 101.454372][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 101.458987][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 101.463681][ T2399] elf_map (fs/binfmt_elf.c:392) [ 101.467597][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 101.472296][ T2399] ? load_elf_interp+0xa80/0xa80 [ 101.478118][ T2399] ? kernel_read (fs/read_write.c:443) [ 101.482470][ T2399] search_binary_handler (fs/exec.c:1727) [ 101.487597][ T2399] ? open_exec (fs/exec.c:1706) [ 101.491686][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 101.495951][ T2399] exec_binprm (fs/exec.c:1769) [ 101.500127][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 101.504997][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 101.509349][ T2399] do_execveat_common+0x4c8/0x680 [ 101.514827][ T2399] ? getname_flags (fs/namei.c:205) [ 101.519957][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 101.524483][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 101.528747][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 101.534480][ T2399] RIP: 0033:0x7f089fb17087 [ 101.538745][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 101.545604][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 101.553847][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 101.561657][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 101.569467][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 101.577277][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 101.585087][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 101.592896][ T2399] </TASK> [ 101.595777][ T2399] BUG: Bad page state in process dmesg pfn:1be7be [ 101.602118][ T2399] page:00000000ba1b916d refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7be [ 101.612175][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 101.620772][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 101.627977][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 101.636393][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 101.644808][ T2399] page dumped because: non-NULL mapping [ 101.650198][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 101.717465][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 101.727439][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 101.736371][ T2399] Call Trace: [ 101.739515][ T2399] <TASK> [ 101.742309][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 101.746659][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 101.750928][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 101.755800][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 101.760409][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 101.765368][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 101.770156][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 101.774592][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 101.779896][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 101.784593][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 101.789724][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 101.794333][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 101.798944][ T2399] __vma_adjust (mm/mmap.c:715) [ 101.803382][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 101.807993][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 101.813298][ T2399] ? vma_expand (mm/mmap.c:619) [ 101.817655][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 101.821917][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 101.827920][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 101.832785][ T2399] ? __split_vma (mm/mmap.c:2301) [ 101.837224][ T2399] ? do_mmap (mm/mmap.c:1411) [ 101.841404][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 101.845496][ T2399] __vm_munmap (mm/mmap.c:2775) [ 101.849761][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 101.854372][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 101.859070][ T2399] elf_map (fs/binfmt_elf.c:392) [ 101.862986][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 101.867685][ T2399] ? load_elf_interp+0xa80/0xa80 [ 101.873504][ T2399] ? kernel_read (fs/read_write.c:443) [ 101.877853][ T2399] search_binary_handler (fs/exec.c:1727) [ 101.882985][ T2399] ? open_exec (fs/exec.c:1706) [ 101.887076][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 101.891341][ T2399] exec_binprm (fs/exec.c:1769) [ 101.895518][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 101.900390][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 101.904744][ T2399] do_execveat_common+0x4c8/0x680 [ 101.910224][ T2399] ? getname_flags (fs/namei.c:205) [ 101.915357][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 101.919878][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 101.924145][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 101.929880][ T2399] RIP: 0033:0x7f089fb17087 [ 101.934145][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 101.941009][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 101.949254][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 101.957067][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 101.964880][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 101.972690][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 101.980498][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 101.988309][ T2399] </TASK> [ 101.991188][ T2399] BUG: Bad page state in process dmesg pfn:1be7bd [ 101.997526][ T2399] page:00000000a18d56de refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7bd [ 102.007589][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 102.016176][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 102.023384][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 102.031801][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 102.040217][ T2399] page dumped because: non-NULL mapping [ 102.045606][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 102.112895][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 102.122869][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 102.131805][ T2399] Call Trace: [ 102.134946][ T2399] <TASK> [ 102.137741][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 102.142090][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 102.146351][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 102.151221][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 102.155832][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 102.160790][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 102.165572][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 102.170014][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 102.175316][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 102.180005][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 102.185133][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 102.189747][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 102.194360][ T2399] __vma_adjust (mm/mmap.c:715) [ 102.198798][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 102.203411][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 102.208709][ T2399] ? vma_expand (mm/mmap.c:619) [ 102.213064][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 102.217327][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 102.223323][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 102.228194][ T2399] ? __split_vma (mm/mmap.c:2301) [ 102.232628][ T2399] ? do_mmap (mm/mmap.c:1411) [ 102.236807][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 102.240897][ T2399] __vm_munmap (mm/mmap.c:2775) [ 102.245166][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 102.249775][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 102.254473][ T2399] elf_map (fs/binfmt_elf.c:392) [ 102.258394][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 102.263090][ T2399] ? load_elf_interp+0xa80/0xa80 [ 102.268908][ T2399] ? kernel_read (fs/read_write.c:443) [ 102.273259][ T2399] search_binary_handler (fs/exec.c:1727) [ 102.278393][ T2399] ? open_exec (fs/exec.c:1706) [ 102.282488][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 102.286754][ T2399] exec_binprm (fs/exec.c:1769) [ 102.290936][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 102.295807][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 102.300155][ T2399] do_execveat_common+0x4c8/0x680 [ 102.305627][ T2399] ? getname_flags (fs/namei.c:205) [ 102.310760][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 102.315286][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 102.319553][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 102.325286][ T2399] RIP: 0033:0x7f089fb17087 [ 102.329555][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 102.336414][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 102.344661][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 102.352476][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 102.360289][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 102.368101][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 102.375914][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 102.383723][ T2399] </TASK> [ 102.386599][ T2399] BUG: Bad page state in process dmesg pfn:1be7bc [ 102.392942][ T2399] page:000000008de84177 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7bc [ 102.403002][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 102.411593][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 102.418804][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 102.427220][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 102.435636][ T2399] page dumped because: non-NULL mapping [ 102.441026][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 102.508313][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 102.518285][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 102.527216][ T2399] Call Trace: [ 102.530356][ T2399] <TASK> [ 102.533150][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 102.537500][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 102.541764][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 102.546633][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 102.551237][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 102.556196][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 102.560977][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 102.565420][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 102.570721][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 102.575418][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 102.580549][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 102.585164][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 102.589773][ T2399] __vma_adjust (mm/mmap.c:715) [ 102.594209][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 102.598820][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 102.604125][ T2399] ? vma_expand (mm/mmap.c:619) [ 102.608480][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 102.612743][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 102.618735][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 102.623606][ T2399] ? __split_vma (mm/mmap.c:2301) [ 102.628046][ T2399] ? do_mmap (mm/mmap.c:1411) [ 102.632219][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 102.636314][ T2399] __vm_munmap (mm/mmap.c:2775) [ 102.640579][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 102.645194][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 102.649887][ T2399] elf_map (fs/binfmt_elf.c:392) [ 102.653808][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 102.658507][ T2399] ? load_elf_interp+0xa80/0xa80 [ 102.664334][ T2399] ? kernel_read (fs/read_write.c:443) [ 102.668687][ T2399] search_binary_handler (fs/exec.c:1727) [ 102.673820][ T2399] ? open_exec (fs/exec.c:1706) [ 102.677908][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 102.682176][ T2399] exec_binprm (fs/exec.c:1769) [ 102.686355][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 102.691224][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 102.695575][ T2399] do_execveat_common+0x4c8/0x680 [ 102.701048][ T2399] ? getname_flags (fs/namei.c:205) [ 102.706179][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 102.710702][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 102.714969][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 102.720705][ T2399] RIP: 0033:0x7f089fb17087 [ 102.724972][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 102.731831][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 102.740076][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 102.747884][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 102.755696][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 102.763504][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 102.771318][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 102.779131][ T2399] </TASK> [ 102.782010][ T2399] BUG: Bad page state in process dmesg pfn:1be7bb [ 102.788349][ T2399] page:00000000da80f945 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7bb [ 102.798411][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 102.807009][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 102.814218][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 102.822633][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 102.831050][ T2399] page dumped because: non-NULL mapping [ 102.836438][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 102.903709][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 102.913680][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 102.922611][ T2399] Call Trace: [ 102.925752][ T2399] <TASK> [ 102.928544][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 102.932891][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 102.937160][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 102.942030][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 102.946637][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 102.951594][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 102.956380][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 102.960813][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 102.966115][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 102.970810][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 102.975940][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 102.980547][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 102.985160][ T2399] __vma_adjust (mm/mmap.c:715) [ 102.989595][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 102.994201][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 102.999502][ T2399] ? vma_expand (mm/mmap.c:619) [ 103.003853][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 103.008114][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 103.014111][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 103.018976][ T2399] ? __split_vma (mm/mmap.c:2301) [ 103.023414][ T2399] ? do_mmap (mm/mmap.c:1411) [ 103.027592][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 103.031684][ T2399] __vm_munmap (mm/mmap.c:2775) [ 103.035948][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 103.040558][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 103.045253][ T2399] elf_map (fs/binfmt_elf.c:392) [ 103.049168][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 103.053864][ T2399] ? load_elf_interp+0xa80/0xa80 [ 103.059684][ T2399] ? kernel_read (fs/read_write.c:443) [ 103.064034][ T2399] search_binary_handler (fs/exec.c:1727) [ 103.069159][ T2399] ? open_exec (fs/exec.c:1706) [ 103.073246][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 103.077510][ T2399] exec_binprm (fs/exec.c:1769) [ 103.081687][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 103.086552][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 103.090902][ T2399] do_execveat_common+0x4c8/0x680 [ 103.096379][ T2399] ? getname_flags (fs/namei.c:205) [ 103.101509][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 103.106034][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 103.110296][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 103.116032][ T2399] RIP: 0033:0x7f089fb17087 [ 103.120297][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 103.127155][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 103.135390][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 103.143199][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 103.151017][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 103.158827][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 103.166633][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 103.174445][ T2399] </TASK> [ 103.177322][ T2399] BUG: Bad page state in process dmesg pfn:1be7ba [ 103.183661][ T2399] page:000000007670454c refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7ba [ 103.193723][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 103.202310][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 103.209513][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 103.217930][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 103.226346][ T2399] page dumped because: non-NULL mapping [ 103.231733][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 103.299008][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 103.308979][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 103.317915][ T2399] Call Trace: [ 103.321053][ T2399] <TASK> [ 103.323845][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 103.328192][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 103.332453][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 103.337328][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 103.341937][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 103.346893][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 103.351674][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 103.356112][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 103.361417][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 103.366109][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 103.371236][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 103.375846][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 103.380455][ T2399] __vma_adjust (mm/mmap.c:715) [ 103.384894][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 103.389502][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 103.394804][ T2399] ? vma_expand (mm/mmap.c:619) [ 103.399158][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 103.403419][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 103.409414][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 103.414287][ T2399] ? __split_vma (mm/mmap.c:2301) [ 103.418723][ T2399] ? do_mmap (mm/mmap.c:1411) [ 103.422904][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 103.426995][ T2399] __vm_munmap (mm/mmap.c:2775) [ 103.431259][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 103.435871][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 103.440574][ T2399] elf_map (fs/binfmt_elf.c:392) [ 103.444490][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 103.449189][ T2399] ? load_elf_interp+0xa80/0xa80 [ 103.455012][ T2399] ? kernel_read (fs/read_write.c:443) [ 103.459361][ T2399] search_binary_handler (fs/exec.c:1727) [ 103.464489][ T2399] ? open_exec (fs/exec.c:1706) [ 103.468576][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 103.472841][ T2399] exec_binprm (fs/exec.c:1769) [ 103.477020][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 103.481890][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 103.486239][ T2399] do_execveat_common+0x4c8/0x680 [ 103.491714][ T2399] ? getname_flags (fs/namei.c:205) [ 103.496841][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 103.501367][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 103.505628][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 103.511367][ T2399] RIP: 0033:0x7f089fb17087 [ 103.515632][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 103.522490][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 103.530734][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 103.538544][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 103.546357][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 103.554170][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 103.561980][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 103.569794][ T2399] </TASK> [ 103.572673][ T2399] BUG: Bad page state in process dmesg pfn:1be7b9 [ 103.579014][ T2399] page:00000000a6758727 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7b9 [ 103.589076][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 103.597671][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 103.604877][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 103.613287][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 103.621701][ T2399] page dumped because: non-NULL mapping [ 103.627088][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 103.694350][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 103.704323][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 103.713260][ T2399] Call Trace: [ 103.716395][ T2399] <TASK> [ 103.719189][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 103.723539][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 103.727800][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 103.732669][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 103.737276][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 103.742229][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 103.747006][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 103.751442][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 103.756741][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 103.761436][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 103.766564][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 103.771172][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 103.775779][ T2399] __vma_adjust (mm/mmap.c:715) [ 103.780215][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 103.784825][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 103.790127][ T2399] ? vma_expand (mm/mmap.c:619) [ 103.794477][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 103.798736][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 103.804730][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 103.809595][ T2399] ? __split_vma (mm/mmap.c:2301) [ 103.814029][ T2399] ? do_mmap (mm/mmap.c:1411) [ 103.818208][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 103.822297][ T2399] __vm_munmap (mm/mmap.c:2775) [ 103.826561][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 103.831170][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 103.835863][ T2399] elf_map (fs/binfmt_elf.c:392) [ 103.839779][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 103.844475][ T2399] ? load_elf_interp+0xa80/0xa80 [ 103.850293][ T2399] ? kernel_read (fs/read_write.c:443) [ 103.854649][ T2399] search_binary_handler (fs/exec.c:1727) [ 103.859775][ T2399] ? open_exec (fs/exec.c:1706) [ 103.863864][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 103.868126][ T2399] exec_binprm (fs/exec.c:1769) [ 103.872305][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 103.877173][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 103.881524][ T2399] do_execveat_common+0x4c8/0x680 [ 103.886999][ T2399] ? getname_flags (fs/namei.c:205) [ 103.892127][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 103.896649][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 103.900914][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 103.906647][ T2399] RIP: 0033:0x7f089fb17087 [ 103.910911][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 103.917769][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 103.926011][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 103.933822][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 103.941627][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 103.949434][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 103.957242][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 103.965050][ T2399] </TASK> [ 103.967927][ T2399] BUG: Bad page state in process dmesg pfn:1be7b8 [ 103.974265][ T2399] page:000000005f881c8e refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7b8 [ 103.984319][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 103.992906][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 104.000106][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 104.008517][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 104.016930][ T2399] page dumped because: non-NULL mapping [ 104.022314][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 104.089568][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 104.099542][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 104.108474][ T2399] Call Trace: [ 104.111615][ T2399] <TASK> [ 104.114406][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 104.118756][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 104.123017][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 104.127887][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 104.132496][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 104.137452][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 104.142235][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 104.146670][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 104.151967][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 104.156661][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 104.161791][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 104.166404][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 104.171016][ T2399] __vma_adjust (mm/mmap.c:715) [ 104.175448][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 104.180059][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 104.185360][ T2399] ? vma_expand (mm/mmap.c:619) [ 104.189713][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 104.193975][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 104.199970][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 104.204838][ T2399] ? __split_vma (mm/mmap.c:2301) [ 104.209273][ T2399] ? do_mmap (mm/mmap.c:1411) [ 104.213448][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 104.217539][ T2399] __vm_munmap (mm/mmap.c:2775) [ 104.221802][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 104.226414][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 104.231117][ T2399] elf_map (fs/binfmt_elf.c:392) [ 104.235029][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 104.239731][ T2399] ? load_elf_interp+0xa80/0xa80 [ 104.245548][ T2399] ? kernel_read (fs/read_write.c:443) [ 104.249895][ T2399] search_binary_handler (fs/exec.c:1727) [ 104.255023][ T2399] ? open_exec (fs/exec.c:1706) [ 104.259113][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 104.263380][ T2399] exec_binprm (fs/exec.c:1769) [ 104.267555][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 104.272425][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 104.276777][ T2399] do_execveat_common+0x4c8/0x680 [ 104.282253][ T2399] ? getname_flags (fs/namei.c:205) [ 104.287383][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 104.291909][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 104.296173][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 104.301904][ T2399] RIP: 0033:0x7f089fb17087 [ 104.306171][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 104.313030][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 104.321272][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 104.329085][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 104.336900][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 104.344713][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 104.352523][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 104.360334][ T2399] </TASK> [ 104.363210][ T2399] BUG: Bad page state in process dmesg pfn:1be673 [ 104.369551][ T2399] page:00000000d4ef2f42 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be673 [ 104.379611][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 104.388209][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 104.395412][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 104.403825][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 104.412241][ T2399] page dumped because: non-NULL mapping [ 104.417628][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 104.484896][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 104.494868][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 104.503804][ T2399] Call Trace: [ 104.506945][ T2399] <TASK> [ 104.509737][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 104.514087][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 104.518353][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 104.523225][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 104.527831][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 104.532785][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 104.537568][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 104.542007][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 104.547306][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 104.552003][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 104.557128][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 104.561738][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 104.566350][ T2399] __vma_adjust (mm/mmap.c:715) [ 104.570785][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 104.575393][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 104.580694][ T2399] ? vma_expand (mm/mmap.c:619) [ 104.585045][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 104.589306][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 104.595300][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 104.600168][ T2399] ? __split_vma (mm/mmap.c:2301) [ 104.604606][ T2399] ? do_mmap (mm/mmap.c:1411) [ 104.608787][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 104.612876][ T2399] __vm_munmap (mm/mmap.c:2775) [ 104.617138][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 104.621750][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 104.626445][ T2399] elf_map (fs/binfmt_elf.c:392) [ 104.630360][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 104.635059][ T2399] ? load_elf_interp+0xa80/0xa80 [ 104.640888][ T2399] ? kernel_read (fs/read_write.c:443) [ 104.645239][ T2399] search_binary_handler (fs/exec.c:1727) [ 104.650368][ T2399] ? open_exec (fs/exec.c:1706) [ 104.654459][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 104.658722][ T2399] exec_binprm (fs/exec.c:1769) [ 104.662896][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 104.667766][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 104.672115][ T2399] do_execveat_common+0x4c8/0x680 [ 104.677590][ T2399] ? getname_flags (fs/namei.c:205) [ 104.682715][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 104.687238][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 104.691500][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 104.697233][ T2399] RIP: 0033:0x7f089fb17087 [ 104.701494][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 104.708353][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 104.716596][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 104.724405][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 104.732210][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 104.740020][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 104.747828][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 104.755637][ T2399] </TASK> [ 104.758516][ T2399] BUG: Bad page state in process dmesg pfn:1be672 [ 104.764851][ T2399] page:00000000ee79b635 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be672 [ 104.774905][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 104.783503][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 104.790710][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 104.799124][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 104.807538][ T2399] page dumped because: non-NULL mapping [ 104.812924][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 104.880193][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 104.890162][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 104.899096][ T2399] Call Trace: [ 104.902231][ T2399] <TASK> [ 104.905028][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 104.909382][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 104.913642][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 104.918514][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 104.923134][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 104.928090][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 104.932871][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 104.937307][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 104.942608][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 104.947306][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 104.952433][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 104.957043][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 104.961652][ T2399] __vma_adjust (mm/mmap.c:715) [ 104.966094][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 104.970699][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 104.976002][ T2399] ? vma_expand (mm/mmap.c:619) [ 104.980352][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 104.984615][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 104.990610][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 104.995476][ T2399] ? __split_vma (mm/mmap.c:2301) [ 104.999913][ T2399] ? do_mmap (mm/mmap.c:1411) [ 105.004089][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 105.008178][ T2399] __vm_munmap (mm/mmap.c:2775) [ 105.012441][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 105.017056][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 105.021751][ T2399] elf_map (fs/binfmt_elf.c:392) [ 105.025672][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 105.030368][ T2399] ? load_elf_interp+0xa80/0xa80 [ 105.036188][ T2399] ? kernel_read (fs/read_write.c:443) [ 105.040538][ T2399] search_binary_handler (fs/exec.c:1727) [ 105.045664][ T2399] ? open_exec (fs/exec.c:1706) [ 105.049756][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 105.054021][ T2399] exec_binprm (fs/exec.c:1769) [ 105.058199][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 105.063064][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 105.067416][ T2399] do_execveat_common+0x4c8/0x680 [ 105.072890][ T2399] ? getname_flags (fs/namei.c:205) [ 105.078021][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 105.082544][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 105.086809][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 105.092542][ T2399] RIP: 0033:0x7f089fb17087 [ 105.096804][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 105.103661][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 105.111907][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 105.119717][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 105.127530][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 105.135338][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 105.143149][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 105.150955][ T2399] </TASK> [ 105.153834][ T2399] BUG: Bad page state in process dmesg pfn:1be7b0 [ 105.160174][ T2399] page:00000000408161c9 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be7b0 [ 105.170229][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 105.178826][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 105.186028][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 105.194442][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 105.202856][ T2399] page dumped because: non-NULL mapping [ 105.208239][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 105.275537][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 105.285508][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 105.294442][ T2399] Call Trace: [ 105.297583][ T2399] <TASK> [ 105.300377][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 105.304730][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 105.308994][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 105.313864][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 105.318476][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 105.323434][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 105.328217][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 105.332653][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 105.337956][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 105.342653][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 105.347780][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 105.352391][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 105.356996][ T2399] __vma_adjust (mm/mmap.c:715) [ 105.361434][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 105.366041][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 105.371345][ T2399] ? vma_expand (mm/mmap.c:619) [ 105.375696][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 105.379960][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 105.385956][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 105.390825][ T2399] ? __split_vma (mm/mmap.c:2301) [ 105.395263][ T2399] ? do_mmap (mm/mmap.c:1411) [ 105.399443][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 105.403535][ T2399] __vm_munmap (mm/mmap.c:2775) [ 105.407802][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 105.412408][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 105.417106][ T2399] elf_map (fs/binfmt_elf.c:392) [ 105.421021][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 105.425719][ T2399] ? load_elf_interp+0xa80/0xa80 [ 105.431541][ T2399] ? kernel_read (fs/read_write.c:443) [ 105.435890][ T2399] search_binary_handler (fs/exec.c:1727) [ 105.441022][ T2399] ? open_exec (fs/exec.c:1706) [ 105.445111][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 105.449373][ T2399] exec_binprm (fs/exec.c:1769) [ 105.453553][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 105.458423][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 105.462771][ T2399] do_execveat_common+0x4c8/0x680 [ 105.468248][ T2399] ? getname_flags (fs/namei.c:205) [ 105.473379][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 105.477899][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 105.482163][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 105.487896][ T2399] RIP: 0033:0x7f089fb17087 [ 105.492161][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 105.499020][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 105.507262][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 105.515069][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 105.522880][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 105.530692][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 105.538501][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 105.546310][ T2399] </TASK> [ 105.549183][ T2399] BUG: Bad page state in process dmesg pfn:1be83f [ 105.555524][ T2399] page:00000000c2f97082 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be83f [ 105.565578][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 105.574163][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 105.581368][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 105.589783][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 105.598195][ T2399] page dumped because: non-NULL mapping [ 105.603579][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 105.670859][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 105.680827][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 105.689764][ T2399] Call Trace: [ 105.692902][ T2399] <TASK> [ 105.695697][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 105.700050][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 105.704313][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 105.709184][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 105.713793][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 105.718747][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 105.723530][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 105.727966][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 105.733265][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 105.737965][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 105.743098][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 105.747707][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 105.752314][ T2399] __vma_adjust (mm/mmap.c:715) [ 105.756752][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 105.761363][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 105.766669][ T2399] ? vma_expand (mm/mmap.c:619) [ 105.771025][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 105.775289][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 105.781284][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 105.786152][ T2399] ? __split_vma (mm/mmap.c:2301) [ 105.790590][ T2399] ? do_mmap (mm/mmap.c:1411) [ 105.794772][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 105.798865][ T2399] __vm_munmap (mm/mmap.c:2775) [ 105.803130][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 105.807742][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 105.812437][ T2399] elf_map (fs/binfmt_elf.c:392) [ 105.816355][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 105.821054][ T2399] ? load_elf_interp+0xa80/0xa80 [ 105.826874][ T2399] ? kernel_read (fs/read_write.c:443) [ 105.831221][ T2399] search_binary_handler (fs/exec.c:1727) [ 105.836349][ T2399] ? open_exec (fs/exec.c:1706) [ 105.840439][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 105.844704][ T2399] exec_binprm (fs/exec.c:1769) [ 105.848881][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 105.853749][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 105.858101][ T2399] do_execveat_common+0x4c8/0x680 [ 105.863575][ T2399] ? getname_flags (fs/namei.c:205) [ 105.868702][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 105.873227][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 105.877489][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 105.883222][ T2399] RIP: 0033:0x7f089fb17087 [ 105.887489][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 105.894348][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 105.902590][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 105.910400][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 105.918207][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 105.926019][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 105.933829][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 105.941643][ T2399] </TASK> [ 105.944516][ T2399] BUG: Bad page state in process dmesg pfn:1be83e [ 105.950855][ T2399] page:00000000d24fd54f refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be83e [ 105.960913][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 105.969502][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 105.976709][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 105.985123][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 105.993534][ T2399] page dumped because: non-NULL mapping [ 105.998921][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 106.066168][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 106.076142][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 106.085071][ T2399] Call Trace: [ 106.088208][ T2399] <TASK> [ 106.091000][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 106.095350][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 106.099611][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 106.104481][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 106.109086][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 106.114042][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 106.118824][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 106.123265][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 106.128567][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 106.133264][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 106.138389][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 106.142997][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 106.147606][ T2399] __vma_adjust (mm/mmap.c:715) [ 106.152041][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 106.156649][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 106.161947][ T2399] ? vma_expand (mm/mmap.c:619) [ 106.166300][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 106.170565][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 106.176558][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 106.181426][ T2399] ? __split_vma (mm/mmap.c:2301) [ 106.185863][ T2399] ? do_mmap (mm/mmap.c:1411) [ 106.190038][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 106.194130][ T2399] __vm_munmap (mm/mmap.c:2775) [ 106.198390][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 106.202999][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 106.207694][ T2399] elf_map (fs/binfmt_elf.c:392) [ 106.211609][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 106.216305][ T2399] ? load_elf_interp+0xa80/0xa80 [ 106.222121][ T2399] ? kernel_read (fs/read_write.c:443) [ 106.226467][ T2399] search_binary_handler (fs/exec.c:1727) [ 106.231595][ T2399] ? open_exec (fs/exec.c:1706) [ 106.235684][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 106.239946][ T2399] exec_binprm (fs/exec.c:1769) [ 106.244120][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 106.248987][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 106.253338][ T2399] do_execveat_common+0x4c8/0x680 [ 106.258810][ T2399] ? getname_flags (fs/namei.c:205) [ 106.263940][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 106.268460][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 106.272721][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 106.278457][ T2399] RIP: 0033:0x7f089fb17087 [ 106.282718][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 106.289577][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 106.297821][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 106.305629][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 106.313441][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 106.321254][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 106.329060][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 106.336867][ T2399] </TASK> [ 106.339746][ T2399] BUG: Bad page state in process dmesg pfn:1be83d [ 106.346083][ T2399] page:000000003ef7fe46 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be83d [ 106.356144][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 106.364728][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 106.371929][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 106.380347][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 106.388760][ T2399] page dumped because: non-NULL mapping [ 106.394146][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 106.461407][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 106.471379][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 106.480313][ T2399] Call Trace: [ 106.483453][ T2399] <TASK> [ 106.486242][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 106.490595][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 106.494858][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 106.499727][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 106.504342][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 106.509293][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 106.514077][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 106.518510][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 106.523809][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 106.528501][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 106.533629][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 106.538243][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 106.542846][ T2399] __vma_adjust (mm/mmap.c:715) [ 106.547279][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 106.551893][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 106.557190][ T2399] ? vma_expand (mm/mmap.c:619) [ 106.561538][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 106.565802][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 106.571793][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 106.576658][ T2399] ? __split_vma (mm/mmap.c:2301) [ 106.581093][ T2399] ? do_mmap (mm/mmap.c:1411) [ 106.585270][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 106.589359][ T2399] __vm_munmap (mm/mmap.c:2775) [ 106.593618][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 106.598232][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 106.602926][ T2399] elf_map (fs/binfmt_elf.c:392) [ 106.606844][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 106.611540][ T2399] ? load_elf_interp+0xa80/0xa80 [ 106.617356][ T2399] ? kernel_read (fs/read_write.c:443) [ 106.621707][ T2399] search_binary_handler (fs/exec.c:1727) [ 106.626833][ T2399] ? open_exec (fs/exec.c:1706) [ 106.630923][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 106.635185][ T2399] exec_binprm (fs/exec.c:1769) [ 106.639356][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 106.644227][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 106.648573][ T2399] do_execveat_common+0x4c8/0x680 [ 106.654044][ T2399] ? getname_flags (fs/namei.c:205) [ 106.659172][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 106.663693][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 106.667954][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 106.673682][ T2399] RIP: 0033:0x7f089fb17087 [ 106.677946][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 106.684802][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 106.693041][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 106.700847][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 106.708654][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 106.716460][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 106.724265][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 106.732071][ T2399] </TASK> [ 106.734947][ T2399] BUG: Bad page state in process dmesg pfn:1be83c [ 106.741284][ T2399] page:00000000f71df2f6 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be83c [ 106.751341][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 106.759929][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 106.767134][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 106.775545][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 106.783956][ T2399] page dumped because: non-NULL mapping [ 106.789342][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 106.856580][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 106.866547][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 106.875479][ T2399] Call Trace: [ 106.878617][ T2399] <TASK> [ 106.881408][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 106.885761][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 106.890025][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 106.894894][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 106.899505][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 106.904461][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 106.909244][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 106.913679][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 106.918979][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 106.923673][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 106.928801][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 106.933409][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 106.938018][ T2399] __vma_adjust (mm/mmap.c:715) [ 106.942456][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 106.947061][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 106.952359][ T2399] ? vma_expand (mm/mmap.c:619) [ 106.956710][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 106.960971][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 106.966965][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 106.971828][ T2399] ? __split_vma (mm/mmap.c:2301) [ 106.976265][ T2399] ? do_mmap (mm/mmap.c:1411) [ 106.980439][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 106.984531][ T2399] __vm_munmap (mm/mmap.c:2775) [ 106.988792][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 106.993404][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 106.998099][ T2399] elf_map (fs/binfmt_elf.c:392) [ 107.002017][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 107.006715][ T2399] ? load_elf_interp+0xa80/0xa80 [ 107.012534][ T2399] ? kernel_read (fs/read_write.c:443) [ 107.016886][ T2399] search_binary_handler (fs/exec.c:1727) [ 107.022011][ T2399] ? open_exec (fs/exec.c:1706) [ 107.026100][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 107.030362][ T2399] exec_binprm (fs/exec.c:1769) [ 107.034539][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 107.039407][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 107.043757][ T2399] do_execveat_common+0x4c8/0x680 [ 107.049231][ T2399] ? getname_flags (fs/namei.c:205) [ 107.054356][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 107.058876][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 107.063139][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 107.068869][ T2399] RIP: 0033:0x7f089fb17087 [ 107.073134][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 107.079989][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 107.088223][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 107.096030][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 107.103837][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 107.111642][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 107.119452][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 107.127258][ T2399] </TASK> [ 107.130132][ T2399] BUG: Bad page state in process dmesg pfn:1be83b [ 107.136476][ T2399] page:000000002b1c8a2e refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be83b [ 107.146526][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 107.155115][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 107.162318][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 107.170726][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 107.179142][ T2399] page dumped because: non-NULL mapping [ 107.184526][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 107.251789][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 107.261758][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 107.270686][ T2399] Call Trace: [ 107.273821][ T2399] <TASK> [ 107.276615][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 107.280960][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 107.285221][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 107.290096][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 107.294702][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 107.299660][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 107.304440][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 107.308880][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 107.314179][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 107.318873][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 107.324004][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 107.328610][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 107.333219][ T2399] __vma_adjust (mm/mmap.c:715) [ 107.337658][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 107.342266][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 107.347567][ T2399] ? vma_expand (mm/mmap.c:619) [ 107.351917][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 107.356178][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 107.362172][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 107.367038][ T2399] ? __split_vma (mm/mmap.c:2301) [ 107.371472][ T2399] ? do_mmap (mm/mmap.c:1411) [ 107.375652][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 107.379736][ T2399] __vm_munmap (mm/mmap.c:2775) [ 107.384003][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 107.388615][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 107.393313][ T2399] elf_map (fs/binfmt_elf.c:392) [ 107.397226][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 107.401922][ T2399] ? load_elf_interp+0xa80/0xa80 [ 107.407744][ T2399] ? kernel_read (fs/read_write.c:443) [ 107.412090][ T2399] search_binary_handler (fs/exec.c:1727) [ 107.417222][ T2399] ? open_exec (fs/exec.c:1706) [ 107.421308][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 107.425573][ T2399] exec_binprm (fs/exec.c:1769) [ 107.429746][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 107.434611][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 107.438960][ T2399] do_execveat_common+0x4c8/0x680 [ 107.444432][ T2399] ? getname_flags (fs/namei.c:205) [ 107.449556][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 107.454076][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 107.458338][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 107.464077][ T2399] RIP: 0033:0x7f089fb17087 [ 107.468340][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 107.475197][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 107.483446][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 107.491251][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 107.499063][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 107.506874][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 107.514679][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 107.522490][ T2399] </TASK> [ 107.525366][ T2399] BUG: Bad page state in process dmesg pfn:1be83a [ 107.531707][ T2399] page:0000000086fdc037 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be83a [ 107.541760][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 107.550341][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 107.557544][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 107.565952][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 107.574365][ T2399] page dumped because: non-NULL mapping [ 107.579749][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 107.646976][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 107.656947][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 107.665879][ T2399] Call Trace: [ 107.669019][ T2399] <TASK> [ 107.671810][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 107.676161][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 107.680420][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 107.685290][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 107.689902][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 107.694854][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 107.699635][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 107.704070][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 107.709370][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 107.714068][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 107.719194][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 107.723799][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 107.728411][ T2399] __vma_adjust (mm/mmap.c:715) [ 107.732846][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 107.737449][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 107.742750][ T2399] ? vma_expand (mm/mmap.c:619) [ 107.747097][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 107.751359][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 107.757349][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 107.762217][ T2399] ? __split_vma (mm/mmap.c:2301) [ 107.766654][ T2399] ? do_mmap (mm/mmap.c:1411) [ 107.770826][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 107.774918][ T2399] __vm_munmap (mm/mmap.c:2775) [ 107.779175][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 107.783782][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 107.788474][ T2399] elf_map (fs/binfmt_elf.c:392) [ 107.792392][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 107.797091][ T2399] ? load_elf_interp+0xa80/0xa80 [ 107.802912][ T2399] ? kernel_read (fs/read_write.c:443) [ 107.807262][ T2399] search_binary_handler (fs/exec.c:1727) [ 107.812390][ T2399] ? open_exec (fs/exec.c:1706) [ 107.816476][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 107.820741][ T2399] exec_binprm (fs/exec.c:1769) [ 107.824915][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 107.829786][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 107.834138][ T2399] do_execveat_common+0x4c8/0x680 [ 107.839610][ T2399] ? getname_flags (fs/namei.c:205) [ 107.844735][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 107.849256][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 107.853519][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 107.859249][ T2399] RIP: 0033:0x7f089fb17087 [ 107.863515][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 107.870371][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 107.878615][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 107.886422][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 107.894222][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 107.902031][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 107.909840][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 107.917651][ T2399] </TASK> [ 107.920527][ T2399] BUG: Bad page state in process dmesg pfn:1be839 [ 107.926865][ T2399] page:000000007e5c1c18 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be839 [ 107.936919][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 107.945510][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 107.952713][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 107.961123][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 107.969534][ T2399] page dumped because: non-NULL mapping [ 107.974919][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 108.042165][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 108.052137][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 108.061074][ T2399] Call Trace: [ 108.064209][ T2399] <TASK> [ 108.067004][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 108.071354][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 108.075617][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 108.080484][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 108.085092][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 108.090046][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 108.094827][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 108.099262][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 108.104564][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 108.109256][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 108.114381][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 108.118991][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 108.123597][ T2399] __vma_adjust (mm/mmap.c:715) [ 108.128033][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 108.132641][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 108.137944][ T2399] ? vma_expand (mm/mmap.c:619) [ 108.142294][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 108.146558][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 108.152548][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 108.157416][ T2399] ? __split_vma (mm/mmap.c:2301) [ 108.161851][ T2399] ? do_mmap (mm/mmap.c:1411) [ 108.166026][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 108.170112][ T2399] __vm_munmap (mm/mmap.c:2775) [ 108.174376][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 108.178983][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 108.183675][ T2399] elf_map (fs/binfmt_elf.c:392) [ 108.187596][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 108.192289][ T2399] ? load_elf_interp+0xa80/0xa80 [ 108.198110][ T2399] ? kernel_read (fs/read_write.c:443) [ 108.202462][ T2399] search_binary_handler (fs/exec.c:1727) [ 108.207589][ T2399] ? open_exec (fs/exec.c:1706) [ 108.211674][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 108.215939][ T2399] exec_binprm (fs/exec.c:1769) [ 108.220113][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 108.224982][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 108.229328][ T2399] do_execveat_common+0x4c8/0x680 [ 108.234803][ T2399] ? getname_flags (fs/namei.c:205) [ 108.239928][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 108.244451][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 108.248712][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 108.254437][ T2399] RIP: 0033:0x7f089fb17087 [ 108.258702][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 108.265553][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 108.273787][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 108.281592][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 108.289394][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 108.297196][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 108.305004][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 108.312812][ T2399] </TASK> [ 108.315690][ T2399] BUG: Bad page state in process dmesg pfn:1be838 [ 108.322025][ T2399] page:000000005e15c0c5 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be838 [ 108.332084][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 108.340678][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 108.347878][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 108.356290][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 108.364695][ T2399] page dumped because: non-NULL mapping [ 108.370083][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 108.437299][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 108.447268][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 108.456188][ T2399] Call Trace: [ 108.459326][ T2399] <TASK> [ 108.462115][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 108.466460][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 108.470718][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 108.475588][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 108.480191][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 108.485145][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 108.489930][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 108.494364][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 108.499666][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 108.504360][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 108.509490][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 108.514099][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 108.518708][ T2399] __vma_adjust (mm/mmap.c:715) [ 108.523143][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 108.527751][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 108.533049][ T2399] ? vma_expand (mm/mmap.c:619) [ 108.537400][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 108.541658][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 108.547651][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 108.552516][ T2399] ? __split_vma (mm/mmap.c:2301) [ 108.556956][ T2399] ? do_mmap (mm/mmap.c:1411) [ 108.561127][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 108.565222][ T2399] __vm_munmap (mm/mmap.c:2775) [ 108.569484][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 108.574097][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 108.578791][ T2399] elf_map (fs/binfmt_elf.c:392) [ 108.582706][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 108.587402][ T2399] ? load_elf_interp+0xa80/0xa80 [ 108.593221][ T2399] ? kernel_read (fs/read_write.c:443) [ 108.597573][ T2399] search_binary_handler (fs/exec.c:1727) [ 108.602701][ T2399] ? open_exec (fs/exec.c:1706) [ 108.606788][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 108.611047][ T2399] exec_binprm (fs/exec.c:1769) [ 108.615222][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 108.620088][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 108.624439][ T2399] do_execveat_common+0x4c8/0x680 [ 108.629909][ T2399] ? getname_flags (fs/namei.c:205) [ 108.635031][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 108.639548][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 108.643813][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 108.649543][ T2399] RIP: 0033:0x7f089fb17087 [ 108.653811][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 108.660664][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 108.668905][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 108.676713][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 108.684520][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 108.692323][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 108.700128][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 108.707934][ T2399] </TASK> [ 108.710808][ T2399] BUG: Bad page state in process dmesg pfn:1be837 [ 108.717141][ T2399] page:00000000097b92db refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be837 [ 108.727198][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 108.735780][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 108.742976][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 108.751390][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 108.759795][ T2399] page dumped because: non-NULL mapping [ 108.765175][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 108.832409][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 108.842378][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 108.851309][ T2399] Call Trace: [ 108.854447][ T2399] <TASK> [ 108.857243][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 108.861591][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 108.865854][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 108.870723][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 108.875332][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 108.880281][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 108.885065][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 108.889501][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 108.894800][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 108.899495][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 108.904625][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 108.909234][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 108.913843][ T2399] __vma_adjust (mm/mmap.c:715) [ 108.918274][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 108.922882][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 108.928182][ T2399] ? vma_expand (mm/mmap.c:619) [ 108.932533][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 108.936791][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 108.942781][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 108.947647][ T2399] ? __split_vma (mm/mmap.c:2301) [ 108.952082][ T2399] ? do_mmap (mm/mmap.c:1411) [ 108.956256][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 108.960346][ T2399] __vm_munmap (mm/mmap.c:2775) [ 108.964608][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 108.969217][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 108.973905][ T2399] elf_map (fs/binfmt_elf.c:392) [ 108.977822][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 108.982518][ T2399] ? load_elf_interp+0xa80/0xa80 [ 108.988336][ T2399] ? kernel_read (fs/read_write.c:443) [ 108.992683][ T2399] search_binary_handler (fs/exec.c:1727) [ 108.997814][ T2399] ? open_exec (fs/exec.c:1706) [ 109.001907][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 109.006166][ T2399] exec_binprm (fs/exec.c:1769) [ 109.010343][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 109.015214][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 109.019563][ T2399] do_execveat_common+0x4c8/0x680 [ 109.025032][ T2399] ? getname_flags (fs/namei.c:205) [ 109.030160][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 109.034681][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 109.038940][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 109.044673][ T2399] RIP: 0033:0x7f089fb17087 [ 109.048937][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 109.055793][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 109.064032][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 109.071844][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 109.079657][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 109.087460][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 109.095269][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 109.103081][ T2399] </TASK> [ 109.105958][ T2399] BUG: Bad page state in process dmesg pfn:1be836 [ 109.112287][ T2399] page:000000006bb9da6f refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be836 [ 109.122342][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 109.130941][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 109.138140][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 109.146551][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 109.154964][ T2399] page dumped because: non-NULL mapping [ 109.160351][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 109.227598][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 109.237572][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 109.246508][ T2399] Call Trace: [ 109.249644][ T2399] <TASK> [ 109.252438][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 109.256785][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 109.261048][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 109.265921][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 109.270525][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 109.275481][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 109.280264][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 109.284696][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 109.289996][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 109.294696][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 109.299824][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 109.304434][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 109.309040][ T2399] __vma_adjust (mm/mmap.c:715) [ 109.313478][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 109.318080][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 109.323376][ T2399] ? vma_expand (mm/mmap.c:619) [ 109.327723][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 109.331988][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 109.337984][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 109.342846][ T2399] ? __split_vma (mm/mmap.c:2301) [ 109.347281][ T2399] ? do_mmap (mm/mmap.c:1411) [ 109.351456][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 109.355545][ T2399] __vm_munmap (mm/mmap.c:2775) [ 109.359807][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 109.364414][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 109.369117][ T2399] elf_map (fs/binfmt_elf.c:392) [ 109.373029][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 109.377727][ T2399] ? load_elf_interp+0xa80/0xa80 [ 109.383540][ T2399] ? kernel_read (fs/read_write.c:443) [ 109.387886][ T2399] search_binary_handler (fs/exec.c:1727) [ 109.393008][ T2399] ? open_exec (fs/exec.c:1706) [ 109.397099][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 109.401358][ T2399] exec_binprm (fs/exec.c:1769) [ 109.405530][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 109.410389][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 109.414735][ T2399] do_execveat_common+0x4c8/0x680 [ 109.420209][ T2399] ? getname_flags (fs/namei.c:205) [ 109.425336][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 109.429857][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 109.434119][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 109.439849][ T2399] RIP: 0033:0x7f089fb17087 [ 109.444111][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 109.450970][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 109.459214][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 109.467021][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 109.474831][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 109.482643][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 109.490447][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 109.498248][ T2399] </TASK> [ 109.501121][ T2399] BUG: Bad page state in process dmesg pfn:1be835 [ 109.507462][ T2399] page:00000000c88ac0ed refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be835 [ 109.517521][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 109.526100][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 109.533297][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 109.541711][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 109.550121][ T2399] page dumped because: non-NULL mapping [ 109.555508][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 109.622739][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 109.632708][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 109.641636][ T2399] Call Trace: [ 109.644771][ T2399] <TASK> [ 109.647563][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 109.651916][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 109.656180][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 109.661047][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 109.665656][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 109.670615][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 109.675398][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 109.679836][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 109.685138][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 109.689830][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 109.694952][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 109.699561][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 109.704164][ T2399] __vma_adjust (mm/mmap.c:715) [ 109.708600][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 109.713211][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 109.718514][ T2399] ? vma_expand (mm/mmap.c:619) [ 109.722861][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 109.727120][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 109.733112][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 109.737978][ T2399] ? __split_vma (mm/mmap.c:2301) [ 109.742410][ T2399] ? do_mmap (mm/mmap.c:1411) [ 109.746587][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 109.750678][ T2399] __vm_munmap (mm/mmap.c:2775) [ 109.754937][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 109.759546][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 109.764240][ T2399] elf_map (fs/binfmt_elf.c:392) [ 109.768155][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 109.772852][ T2399] ? load_elf_interp+0xa80/0xa80 [ 109.778671][ T2399] ? kernel_read (fs/read_write.c:443) [ 109.783023][ T2399] search_binary_handler (fs/exec.c:1727) [ 109.788151][ T2399] ? open_exec (fs/exec.c:1706) [ 109.792240][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 109.796502][ T2399] exec_binprm (fs/exec.c:1769) [ 109.800679][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 109.805547][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 109.809890][ T2399] do_execveat_common+0x4c8/0x680 [ 109.815362][ T2399] ? getname_flags (fs/namei.c:205) [ 109.820484][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 109.825004][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 109.829271][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 109.835002][ T2399] RIP: 0033:0x7f089fb17087 [ 109.839266][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 109.846125][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 109.854359][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 109.862171][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 109.869976][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 109.877780][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 109.885586][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 109.893387][ T2399] </TASK> [ 109.896264][ T2399] BUG: Bad page state in process dmesg pfn:1be834 [ 109.902600][ T2399] page:000000000287d1cd refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be834 [ 109.912649][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 109.921236][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 109.928431][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 109.936841][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 109.945246][ T2399] page dumped because: non-NULL mapping [ 109.950628][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 110.017855][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 110.027830][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 110.036763][ T2399] Call Trace: [ 110.039898][ T2399] <TASK> [ 110.042693][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 110.047046][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 110.051303][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 110.056168][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 110.060771][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 110.065733][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 110.070513][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 110.074946][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 110.080248][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 110.084942][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 110.090075][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 110.094687][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 110.099291][ T2399] __vma_adjust (mm/mmap.c:715) [ 110.103724][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 110.108329][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 110.113629][ T2399] ? vma_expand (mm/mmap.c:619) [ 110.117978][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 110.122237][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 110.128229][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 110.133095][ T2399] ? __split_vma (mm/mmap.c:2301) [ 110.137528][ T2399] ? do_mmap (mm/mmap.c:1411) [ 110.141705][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 110.145799][ T2399] __vm_munmap (mm/mmap.c:2775) [ 110.150058][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 110.154665][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 110.159359][ T2399] elf_map (fs/binfmt_elf.c:392) [ 110.163274][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 110.167975][ T2399] ? load_elf_interp+0xa80/0xa80 [ 110.173796][ T2399] ? kernel_read (fs/read_write.c:443) [ 110.178151][ T2399] search_binary_handler (fs/exec.c:1727) [ 110.183274][ T2399] ? open_exec (fs/exec.c:1706) [ 110.187361][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 110.191622][ T2399] exec_binprm (fs/exec.c:1769) [ 110.195796][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 110.200661][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 110.205013][ T2399] do_execveat_common+0x4c8/0x680 [ 110.210484][ T2399] ? getname_flags (fs/namei.c:205) [ 110.215609][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 110.220136][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 110.224397][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 110.230128][ T2399] RIP: 0033:0x7f089fb17087 [ 110.234386][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 110.241248][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 110.249490][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 110.257300][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 110.265105][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 110.272914][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 110.280722][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 110.288530][ T2399] </TASK> [ 110.291405][ T2399] BUG: Bad page state in process dmesg pfn:1be736 [ 110.297741][ T2399] page:000000009ccecaff refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be736 [ 110.307792][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 110.316385][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 110.323594][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 110.332004][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 110.340420][ T2399] page dumped because: non-NULL mapping [ 110.345802][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 110.413072][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 110.423047][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 110.431984][ T2399] Call Trace: [ 110.435119][ T2399] <TASK> [ 110.437910][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 110.442261][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 110.446521][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 110.451393][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 110.456002][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 110.460956][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 110.465739][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 110.470173][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 110.475475][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 110.480170][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 110.485298][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 110.489908][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 110.494513][ T2399] __vma_adjust (mm/mmap.c:715) [ 110.498951][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 110.503557][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 110.508855][ T2399] ? vma_expand (mm/mmap.c:619) [ 110.513208][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 110.517466][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 110.523459][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 110.528325][ T2399] ? __split_vma (mm/mmap.c:2301) [ 110.532762][ T2399] ? do_mmap (mm/mmap.c:1411) [ 110.536939][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 110.541030][ T2399] __vm_munmap (mm/mmap.c:2775) [ 110.545289][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 110.549901][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 110.554599][ T2399] elf_map (fs/binfmt_elf.c:392) [ 110.558519][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 110.563213][ T2399] ? load_elf_interp+0xa80/0xa80 [ 110.569030][ T2399] ? kernel_read (fs/read_write.c:443) [ 110.573379][ T2399] search_binary_handler (fs/exec.c:1727) [ 110.578505][ T2399] ? open_exec (fs/exec.c:1706) [ 110.582591][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 110.586856][ T2399] exec_binprm (fs/exec.c:1769) [ 110.591026][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 110.595891][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 110.600235][ T2399] do_execveat_common+0x4c8/0x680 [ 110.605710][ T2399] ? getname_flags (fs/namei.c:205) [ 110.610841][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 110.615361][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 110.619621][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 110.625354][ T2399] RIP: 0033:0x7f089fb17087 [ 110.629618][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 110.636472][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 110.644711][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 110.652516][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 110.660326][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 110.668134][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 110.675943][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 110.683752][ T2399] </TASK> [ 110.686628][ T2399] BUG: Bad page state in process dmesg pfn:1be735 [ 110.692967][ T2399] page:000000007ad36b12 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be735 [ 110.703021][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 110.711611][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 110.718813][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 110.727225][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 110.735640][ T2399] page dumped because: non-NULL mapping [ 110.741027][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 110.808310][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 110.818281][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 110.827218][ T2399] Call Trace: [ 110.830359][ T2399] <TASK> [ 110.833148][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 110.837498][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 110.841762][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 110.846634][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 110.851243][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 110.856203][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 110.860982][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 110.865421][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 110.870722][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 110.875416][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 110.880547][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 110.885156][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 110.889765][ T2399] __vma_adjust (mm/mmap.c:715) [ 110.894205][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 110.898813][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 110.904111][ T2399] ? vma_expand (mm/mmap.c:619) [ 110.908462][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 110.912726][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 110.918718][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 110.923589][ T2399] ? __split_vma (mm/mmap.c:2301) [ 110.928025][ T2399] ? do_mmap (mm/mmap.c:1411) [ 110.932205][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 110.936297][ T2399] __vm_munmap (mm/mmap.c:2775) [ 110.940564][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 110.945176][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 110.949871][ T2399] elf_map (fs/binfmt_elf.c:392) [ 110.953787][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 110.958486][ T2399] ? load_elf_interp+0xa80/0xa80 [ 110.964303][ T2399] ? kernel_read (fs/read_write.c:443) [ 110.968647][ T2399] search_binary_handler (fs/exec.c:1727) [ 110.973778][ T2399] ? open_exec (fs/exec.c:1706) [ 110.977873][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 110.982137][ T2399] exec_binprm (fs/exec.c:1769) [ 110.986319][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 110.991192][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 110.995546][ T2399] do_execveat_common+0x4c8/0x680 [ 111.001024][ T2399] ? getname_flags (fs/namei.c:205) [ 111.006157][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 111.010677][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 111.014936][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 111.020670][ T2399] RIP: 0033:0x7f089fb17087 [ 111.024931][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 111.031784][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 111.040026][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 111.047832][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 111.055639][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 111.063455][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 111.071259][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 111.079076][ T2399] </TASK> [ 111.081949][ T2399] BUG: Bad page state in process dmesg pfn:1be832 [ 111.088292][ T2399] page:0000000021aa85b8 refcount:0 mapcount:0 mapping:00000000b6d68789 index:0x1 pfn:0x1be832 [ 111.098353][ T2399] aops:cifs_addr_ops [cifs] ino:98d4b153c17e2164 dentry name:"BASEMACH.DOC" [ 111.106945][ T2399] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) [ 111.114153][ T2399] raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8884299bd870 [ 111.122565][ T2399] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 111.130980][ T2399] page dumped because: non-NULL mapping [ 111.136365][ T2399] Modules linked in: cmac nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr sd_mod intel_rapl_common t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg x86_pkg_temp_thermal intel_powerclamp ipmi_devintf coretemp kvm_intel ipmi_msghandler i915 drm_buddy intel_gtt kvm irqbypass crct10dif_pclmul drm_display_helper crc32_pclmul crc32c_intel ghash_clmulni_intel ttm hp_wmi sha512_ssse3 ahci sparse_keymap drm_kms_helper libahci platform_profile mei_wdt video rapl rfkill wmi_bmof intel_cstate intel_uncore mei_me syscopyarea libata i2c_i801 sysfillrect serio_raw i2c_smbus intel_pch_thermal sysimgblt mei fb_sys_fops wmi intel_pmc_core acpi_pad tpm_infineon drm fuse ip_tables [ 111.203625][ T2399] CPU: 3 PID: 2399 Comm: dmesg Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 111.213603][ T2399] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 111.222537][ T2399] Call Trace: [ 111.225676][ T2399] <TASK> [ 111.228470][ T2399] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) [ 111.232826][ T2399] bad_page.cold (mm/page_alloc.c:719) [ 111.237084][ T2399] free_pcppages_bulk (mm/page_alloc.c:1610) [ 111.241954][ T2399] free_unref_page (include/linux/spinlock.h:405 mm/page_alloc.c:3506) [ 111.246563][ T2399] __unfreeze_partials (mm/slub.c:2581) [ 111.251520][ T2399] ? free_unref_page (arch/x86/include/asm/preempt.h:85 mm/page_alloc.c:3506) [ 111.256299][ T2399] qlist_free_all (mm/kasan/quarantine.c:182) [ 111.260733][ T2399] kasan_quarantine_reduce (include/linux/srcu.h:189 mm/kasan/quarantine.c:295) [ 111.266035][ T2399] __kasan_slab_alloc (mm/kasan/common.c:302) [ 111.270726][ T2399] kmem_cache_alloc_bulk (mm/slab.h:737 mm/slub.c:3854) [ 111.275854][ T2399] mas_alloc_nodes (lib/maple_tree.c:1257) [ 111.280467][ T2399] mas_preallocate (lib/maple_tree.c:1316 lib/maple_tree.c:5719) [ 111.285076][ T2399] __vma_adjust (mm/mmap.c:715) [ 111.289508][ T2399] ? vm_area_alloc (kernel/fork.c:465) [ 111.294119][ T2399] ? __ia32_sys_mmap_pgoff (mm/mmap.c:1502) [ 111.299423][ T2399] ? vma_expand (mm/mmap.c:619) [ 111.303771][ T2399] __split_vma (include/linux/mm.h:2663 mm/mmap.c:2239) [ 111.308031][ T2399] do_mas_align_munmap+0x1f0/0xec0 [ 111.314020][ T2399] ? security_mmap_addr (security/security.c:1604 (discriminator 13)) [ 111.318882][ T2399] ? __split_vma (mm/mmap.c:2301) [ 111.323321][ T2399] ? do_mmap (mm/mmap.c:1411) [ 111.327499][ T2399] ? mas_find (lib/maple_tree.c:6006) [ 111.331591][ T2399] __vm_munmap (mm/mmap.c:2775) [ 111.335854][ T2399] ? do_mas_munmap (mm/mmap.c:2766) [ 111.340461][ T2399] ? get_random_u32 (drivers/char/random.c:511) [ 111.345156][ T2399] elf_map (fs/binfmt_elf.c:392) [ 111.349072][ T2399] load_elf_binary (include/linux/instrumented.h:72 include/asm-generic/bitops/instrumented-non-atomic.h:141 include/linux/thread_info.h:118 fs/binfmt_elf.c:1168) [ 111.353773][ T2399] ? load_elf_interp+0xa80/0xa80 [ 111.359601][ T2399] ? kernel_read (fs/read_write.c:443) [ 111.363951][ T2399] search_binary_handler (fs/exec.c:1727) [ 111.369077][ T2399] ? open_exec (fs/exec.c:1706) [ 111.373170][ T2399] ? nr_iowait (kernel/sched/core.c:5302) [ 111.377435][ T2399] exec_binprm (fs/exec.c:1769) [ 111.381615][ T2399] bprm_execve (include/linux/slab.h:576 include/linux/slab.h:712 fs/exec.c:1508) [ 111.386487][ T2399] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1805) [ 111.390836][ T2399] do_execveat_common+0x4c8/0x680 [ 111.396314][ T2399] ? getname_flags (fs/namei.c:205) [ 111.401442][ T2399] __x64_sys_execve (fs/exec.c:2087) [ 111.405957][ T2399] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 111.410222][ T2399] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 111.415950][ T2399] RIP: 0033:0x7f089fb17087 [ 111.420218][ T2399] Code: Unable to access opcode bytes at 0x7f089fb1705d.
Code starting with the faulting instruction
===========================================
[ 111.427073][ T2399] RSP: 002b:00007ffe6902b998 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 111.435310][ T2399] RAX: ffffffffffffffda RBX: 000055a6e01b8f88 RCX: 00007f089fb17087 [ 111.443111][ T2399] RDX: 000055a6e01b5f48 RSI: 000055a6e01b8f88 RDI: 000055a6e01b6240 [ 111.450917][ T2399] RBP: 000055a6df0bb46e R08: 000055a6df0bb470 R09: 000055a6df0bb47b [ 111.458724][ T2399] R10: 0000000000000040 R11: 0000000000000246 R12: 000055a6e01b5f48 [ 111.466531][ T2399] R13: 0000000000000002 R14: 000055a6e01b5f48 R15: 000055a6e01b6240 [ 111.474342][ T2399] </TASK> [ 111.775877][ T2351] ------------[ cut here ]------------ [ 111.781197][ T2351] kernel BUG at mm/rmap.c:1041! [ 111.785907][ T2351] invalid opcode: 0000 [#1] SMP KASAN PTI [ 111.791471][ T2351] CPU: 4 PID: 2351 Comm: dbench Tainted: G B 6.1.0-rc1-00014-g68e9d45f5b0e #1 [ 111.801533][ T2351] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017 [ 111.810471][ T2351] RIP: 0010:folio_mkclean (mm/rmap.c:1041 (discriminator 1)) [ 111.815695][ T2351] Code: 03 74 29 a8 01 48 8d 74 24 30 ba 00 00 00 00 48 89 ef 75 0f e8 ce fa ff ff 44 8b 44 24 20 e9 63 ff ff ff e8 3f f6 ff ff eb ef <0f> 0b 48 8d 74 24 30 48 89 ef e8 ae 0a 0b 00 eb de 48 89 ef e8 24 All code ======== 0: 03 74 29 a8 add -0x58(%rcx,%rbp,1),%esi 4: 01 48 8d add %ecx,-0x73(%rax) 7: 74 24 je 0x2d 9: 30 ba 00 00 00 00 xor %bh,0x0(%rdx) f: 48 89 ef mov %rbp,%rdi 12: 75 0f jne 0x23 14: e8 ce fa ff ff callq 0xfffffffffffffae7 19: 44 8b 44 24 20 mov 0x20(%rsp),%r8d 1e: e9 63 ff ff ff jmpq 0xffffffffffffff86 23: e8 3f f6 ff ff callq 0xfffffffffffff667 28: eb ef jmp 0x19 2a:* 0f 0b ud2 <-- trapping instruction 2c: 48 8d 74 24 30 lea 0x30(%rsp),%rsi 31: 48 89 ef mov %rbp,%rdi 34: e8 ae 0a 0b 00 callq 0xb0ae7 39: eb de jmp 0x19 3b: 48 89 ef mov %rbp,%rdi 3e: e8 .byte 0xe8 3f: 24 .byte 0x24
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2 2: 48 8d 74 24 30 lea 0x30(%rsp),%rsi 7: 48 89 ef mov %rbp,%rdi a: e8 ae 0a 0b 00 callq 0xb0abd f: eb de jmp 0xffffffffffffffef 11: 48 89 ef mov %rbp,%rdi 14: e8 .byte 0xe8 15: 24 .byte 0x24 [ 111.835102][ T2351] RSP: 0018:ffffc90002e07898 EFLAGS: 00010246 [ 111.841018][ T2351] RAX: 0017ffffc0000000 RBX: 1ffff920005c0f13 RCX: ffffffff8172db72 [ 111.848823][ T2351] RDX: fffff94000afe371 RSI: 0000000000000008 RDI: ffffea00057f1b80 [ 111.856644][ T2351] RBP: ffffea00057f1b80 R08: 0000000000000000 R09: ffffea00057f1b87 [ 111.864467][ T2351] R10: fffff94000afe370 R11: 0000000000000001 R12: dffffc0000000000 [ 111.872284][ T2351] R13: dffffc0000000000 R14: ffffea00057f1b80 R15: ffffc90002e07b90 [ 111.880106][ T2351] FS: 00007f294a667740(0000) GS:ffff88837d600000(0000) knlGS:0000000000000000 [ 111.888874][ T2351] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 111.895309][ T2351] CR2: 0000564db5b63000 CR3: 0000000434706002 CR4: 00000000003706e0 [ 111.903119][ T2351] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 111.910935][ T2351] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 111.918746][ T2351] Call Trace: [ 111.921884][ T2351] <TASK> [ 111.924677][ T2351] ? rmap_walk_file (mm/rmap.c:1032) [ 111.929384][ T2351] ? page_vma_mkclean_one+0x5c0/0x5c0 [ 111.935643][ T2351] ? __traceiter_remove_migration_pte (mm/rmap.c:1024) [ 111.941737][ T2351] folio_clear_dirty_for_io (mm/page-writeback.c:2866) [ 111.947048][ T2351] ? folio_wait_writeback (arch/x86/include/asm/bitops.h:207 arch/x86/include/asm/bitops.h:239 include/asm-generic/bitops/instrumented-non-atomic.h:142 include/linux/page-flags.h:520 mm/page-writeback.c:3036) [ 111.952182][ T2351] wdata_prepare_pages (fs/cifs/file.c:2604 (discriminator 1)) cifs [ 111.957807][ T2351] cifs_writepages (fs/cifs/file.c:2748) cifs [ 111.963177][ T2351] ? wdata_alloc_and_fillpages (fs/cifs/file.c:2671) cifs [ 111.969498][ T2351] ? cifs_readpage_worker (fs/cifs/file.c:4980) cifs [ 111.975380][ T2351] ? balance_dirty_pages_ratelimited_flags (arch/x86/include/asm/jump_label.h:27 include/linux/backing-dev.h:168 mm/page-writeback.c:1893) [ 111.981977][ T2351] ? generic_perform_write (include/linux/uio.h:261 mm/filemap.c:3843) [ 111.987284][ T2351] do_writepages (mm/page-writeback.c:2471) [ 111.991722][ T2351] ? writeback_set_ratelimit (mm/page-writeback.c:2461) [ 111.997201][ T2351] ? _raw_write_lock_irq (kernel/locking/spinlock.c:153) [ 112.002331][ T2351] ? __generic_file_write_iter (mm/filemap.c:3936) [ 112.007983][ T2351] ? cifs_put_writer (fs/cifs/misc.c:589) cifs [ 112.013268][ T2351] ? cifs_strict_writev (fs/cifs/file.c:3703) cifs [ 112.018983][ T2351] ? _raw_spin_lock (arch/x86/include/asm/atomic.h:202 include/linux/atomic/atomic-instrumented.h:543 include/asm-generic/qspinlock.h:111 include/linux/spinlock.h:186 include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) [ 112.023598][ T2351] ? _raw_write_lock_irq (kernel/locking/spinlock.c:153) [ 112.028728][ T2351] ? wbc_attach_and_unlock_inode (arch/x86/include/asm/jump_label.h:27 include/linux/backing-dev.h:168 fs/fs-writeback.c:694) [ 112.034467][ T2351] filemap_fdatawrite_wbc (mm/filemap.c:389 mm/filemap.c:378) [ 112.039685][ T2351] __filemap_fdatawrite_range (mm/filemap.c:413) [ 112.045159][ T2351] ? delete_from_page_cache_batch (mm/filemap.c:413) [ 112.051064][ T2351] ? _raw_spin_lock (arch/x86/include/asm/atomic.h:202 include/linux/atomic/atomic-instrumented.h:543 include/asm-generic/qspinlock.h:111 include/linux/spinlock.h:186 include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) [ 112.055683][ T2351] ? _raw_write_lock_irq (kernel/locking/spinlock.c:153) [ 112.060821][ T2351] filemap_write_and_wait_range (mm/filemap.c:676) [ 112.066388][ T2351] cifs_flush (fs/cifs/file.c:3058) cifs [ 112.071238][ T2351] filp_close (fs/open.c:1420) [ 112.075337][ T2351] __x64_sys_close (fs/open.c:1442 fs/open.c:1437 fs/open.c:1437) [ 112.079773][ T2351] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 112.084039][ T2351] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 112.089774][ T2351] RIP: 0033:0x7f294a757083 [ 112.094038][ T2351] Code: e9 37 ff ff ff e8 6d f5 01 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 All code ======== 0: e9 37 ff ff ff jmpq 0xffffffffffffff3c 5: e8 6d f5 01 00 callq 0x1f577 a: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 11: 00 00 00 14: 0f 1f 00 nopl (%rax) 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 14 jne 0x37 23: b8 03 00 00 00 mov $0x3,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 45 ja 0x77 32: c3 retq 33: 0f 1f 40 00 nopl 0x0(%rax) 37: 48 83 ec 18 sub $0x18,%rsp 3b: 89 7c 24 0c mov %edi,0xc(%rsp) 3f: e8 .byte 0xe8
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 45 ja 0x4d 8: c3 retq 9: 0f 1f 40 00 nopl 0x0(%rax) d: 48 83 ec 18 sub $0x18,%rsp 11: 89 7c 24 0c mov %edi,0xc(%rsp) 15: e8 .byte 0xe8
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
sudo bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run sudo bin/lkp run generated-yaml-file
# if come across any failure that blocks the test, # please remove ~/.lkp and /lkp dir to run from a clean state.
11,578 lines not shown · raw message
Part of this message is not shown here. View the raw message.
PATCH v3 10/23 ext4: Convert mpage_prepare_extent_to_map() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Converted the function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag(). Now supports large folios.
--- fs/ext4/inode.c | 55 ++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 28 deletions(-)
fs/ext4/inode.c +27 -28
@@ -2572,8 +2572,8 @@ static int ext4_da_writepages_trans_blocks(struct inode *inode)static int mpage_prepare_extent_to_map (struct mpage_da_data *mpd) {struct address_space *mapping = mpd->inode->i_mapping; -struct pagevec pvec; -unsigned int nr_pages; +struct folio_batch fbatch; +unsigned int nr_folios;long left = mpd->wbc->nr_to_write;pgoff_t index = mpd->first_page;pgoff_t end = mpd->last_page;
@@ -2587,18 +2587,17 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd) tag =PAGECACHE_TAG_TOWRITE ; else tag =PAGECACHE_TAG_DIRTY ; - -pagevec_init (&pvec); +folio_batch_init (&fbatch); mpd->map.m_len =0 ; mpd->next_page = index;while (index <= end) { - nr_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, end, - tag); -if (nr_pages ==0 ) + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); +if (nr_folios ==0 )break ; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i];/* * Accumulated enough dirty pages? This doesn't apply
@@ -2612,10 +2611,10 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd) goto out;/* If we can't merge this page, we are done. */ -if (mpd->map.m_len >0 && mpd->next_page != page->index) +if (mpd->map.m_len >0 && mpd->next_page != folio->index) goto out; -lock_page (page); +folio_lock (folio);/* * If the page is no longer dirty, or its mapping no * longer corresponds to inode we are writing (which
@@ -2623,16 +2622,16 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd)* page is already under writeback and we are not doing * a data integrity writeback, skip the page */ -if (!PageDirty (page) || - (PageWriteback (page) && +if (!folio_test_dirty (folio) || + (folio_test_writeback (folio) && (mpd->wbc->sync_mode ==WB_SYNC_NONE )) || -unlikely (page->mapping != mapping)) { -unlock_page (page); +unlikely (folio->mapping != mapping)) { +folio_unlock (folio);continue ; } -wait_on_page_writeback (page); -BUG_ON (PageWriteback (page)); +folio_wait_writeback (folio); +BUG_ON (folio_test_writeback (folio));/* * Should never happen but for buggy code in
@@ -2643,33 +2642,33 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd)* * [1] https://lore.kernel.org/linux-mm/20180103100430.GE4911 at quack2.suse.cz */ -if (!page_has_buffers (page)) { -ext4_warning_inode (mpd->inode,"page %lu does not have buffers attached" , page->index); -ClearPageDirty (page); -unlock_page (page); +if (!folio_buffers (folio)) { +ext4_warning_inode (mpd->inode,"page %lu does not have buffers attached" , folio->index); +folio_clear_dirty (folio); +folio_unlock (folio);continue ; }if (mpd->map.m_len ==0 ) - mpd->first_page = page->index; - mpd->next_page = page->index +1 ; + mpd->first_page = folio->index; + mpd->next_page = folio->index +folio_nr_pages (folio);/* Add all dirty buffers to mpd */ - lblk = ((ext4_lblk_t )page->index) << + lblk = ((ext4_lblk_t )folio->index) << (PAGE_SHIFT - blkbits); - head =page_buffers (page); + head =folio_buffers (folio); err =mpage_process_page_bufs (mpd, head, head, lblk);if (err <=0 ) goto out; err =0 ; - left--; + left -=folio_nr_pages (folio); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } mpd->scanned_until_end =1 ;return 0 ; out: -pagevec_release (&pvec); +folio_batch_release (&fbatch);return err; }
Signature · 1 line
2.36.1
Re: [PATCH v3 10/23] ext4: Convert mpage_prepare_extent_to_map() to use filemap_get_folios_tag()
Quoted 132 lines · Vishal Moola (Oracle)
Converted the function to use folios throughout. This is in preparation for the removal of
find_get_pages_range_tag(). Now supports large folios.Signed-off-by Vishal Moola (Oracle) <[email protected]>--- fs/ext4/inode.c | 55 ++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 28 deletions(-)fs/ext4/inode.c +27
-29@@ -2572,8 +2572,8 @@ static int ext4_da_writepages_trans_blocks(struct inode *inode)static int mpage_prepare_extent_to_map (struct mpage_da_data *mpd) {struct address_space *mapping = mpd->inode->i_mapping; -struct pagevec pvec; -unsigned int nr_pages; +struct folio_batch fbatch; +unsigned int nr_folios;long left = mpd->wbc->nr_to_write;pgoff_t index = mpd->first_page;pgoff_t end = mpd->last_page;@@ -2587,18 +2587,17 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd) tag =PAGECACHE_TAG_TOWRITE ; else tag =PAGECACHE_TAG_DIRTY ; - -pagevec_init (&pvec); +folio_batch_init (&fbatch); mpd->map.m_len =0 ; mpd->next_page = index;while (index <= end) { - nr_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, end, - tag); -if (nr_pages ==0 ) + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); +if (nr_folios ==0 )break ; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i];/* * Accumulated enough dirty pages? This doesn't apply @@ -2612,10 +2611,10 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd) goto out;/* If we can't merge this page, we are done. */ -if (mpd->map.m_len >0 && mpd->next_page != page->index) +if (mpd->map.m_len >0 && mpd->next_page != folio->index) goto out; -lock_page (page); +folio_lock (folio);/* * If the page is no longer dirty, or its mapping no * longer corresponds to inode we are writing (which @@ -2623,16 +2622,16 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd)* page is already under writeback and we are not doing * a data integrity writeback, skip the page */ -if (!PageDirty (page) || - (PageWriteback (page) && +if (!folio_test_dirty (folio) || + (folio_test_writeback (folio) && (mpd->wbc->sync_mode ==WB_SYNC_NONE )) || -unlikely (page->mapping != mapping)) { -unlock_page (page); +unlikely (folio->mapping != mapping)) { +folio_unlock (folio);continue ; } -wait_on_page_writeback (page); -BUG_ON (PageWriteback (page)); +folio_wait_writeback (folio); +BUG_ON (folio_test_writeback (folio));/* * Should never happen but for buggy code in @@ -2643,33 +2642,33 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd)* * [1] https://lore.kernel.org/linux-mm/20180103100430.GE4911 at quack2.suse.cz */ -if (!page_has_buffers (page)) { -ext4_warning_inode (mpd->inode,"page %lu does not have buffers attached" , page->index); -ClearPageDirty (page); -unlock_page (page); +if (!folio_buffers (folio)) { +ext4_warning_inode (mpd->inode,"page %lu does not have buffers attached" , folio->index); +folio_clear_dirty (folio); +folio_unlock (folio);continue ; }if (mpd->map.m_len ==0 ) - mpd->first_page = page->index; - mpd->next_page = page->index +1 ; + mpd->first_page = folio->index; + mpd->next_page = folio->index +folio_nr_pages (folio);/* Add all dirty buffers to mpd */ - lblk = ((ext4_lblk_t )page->index) << + lblk = ((ext4_lblk_t )folio->index) << (PAGE_SHIFT - blkbits); - head =page_buffers (page); + head =folio_buffers (folio); err =mpage_process_page_bufs (mpd, head, head, lblk);if (err <=0 ) goto out; err =0 ; - left--; + left -=folio_nr_pages (folio); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } mpd->scanned_until_end =1 ;return 0 ; out: -pagevec_release (&pvec); +folio_batch_release (&fbatch);return err; } --
Quoted 2 lines
2.36.1
Does anyone have some time to look over this ext4 patch this week? Feedback is appreciated.
PATCH v3 11/23 f2fs: Convert f2fs_fsync_node_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use a folio_batch instead of pagevec. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/f2fs/node.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
fs/f2fs/node.c +10 -9
@@ -1728,12 +1728,12 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode, unsigned int *seq_id) {pgoff_t index; -struct pagevec pvec; +struct folio_batch fbatch;int ret =0 ;struct page *last_page =NULL ;bool marked = false;nid_t ino = inode->i_ino; -int nr_pages; +int nr_folios;int nwritten =0 ;if (atomic) {
@@ -1742,20 +1742,21 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,return PTR_ERR_OR_ZERO (last_page); } retry: -pagevec_init (&pvec); +folio_batch_init (&fbatch); index =0 ; -while ((nr_pages =pagevec_lookup_tag (&pvec,NODE_MAPPING (sbi), &index, -PAGECACHE_TAG_DIRTY ))) { +while ((nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), &index, + (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;bool submitted = false;if (unlikely (f2fs_cp_error (sbi))) {f2fs_put_page (last_page,0 ); -pagevec_release (&pvec); +folio_batch_release (&fbatch); ret = -EIO ; goto out; }
@@ -1821,7 +1822,7 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,break ; } } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched ();if (ret || marked)
Signature · 1 line
2.36.1
Re: [PATCH v3 11/23] f2fs: Convert f2fs_fsync_node_pages() to use filemap_get_folios_tag()
Quoted 66 lines · Vishal Moola (Oracle)
Convert function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Signed-off-by Vishal Moola (Oracle) <[email protected]>--- fs/f2fs/node.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)fs/f2fs/node.c +10
-10@@ -1728,12 +1728,12 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode, unsigned int *seq_id) {pgoff_t index; -struct pagevec pvec; +struct folio_batch fbatch;int ret =0 ;struct page *last_page =NULL ;bool marked = false;nid_t ino = inode->i_ino; -int nr_pages; +int nr_folios;int nwritten =0 ;if (atomic) {@@ -1742,20 +1742,21 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,return PTR_ERR_OR_ZERO (last_page); } retry: -pagevec_init (&pvec); +folio_batch_init (&fbatch); index =0 ; -while ((nr_pages =pagevec_lookup_tag (&pvec,NODE_MAPPING (sbi), &index, -PAGECACHE_TAG_DIRTY ))) { +while ((nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), &index, + (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;bool submitted = false;if (unlikely (f2fs_cp_error (sbi))) {f2fs_put_page (last_page,0 ); -pagevec_release (&pvec); +folio_batch_release (&fbatch); ret = -EIO ; goto out; }@@ -1821,7 +1822,7 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,break ; } } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched ();if (ret || marked) --
Quoted 2 lines
2.36.1
Following up on these f2fs patches (11/23, 12/23, 13/23, 14/23, 15/23, 16/23). Does anyone have time to review them this week?
Re: [PATCH v3 11/23] f2fs: Convert f2fs_fsync_node_pages() to use filemap_get_folios_tag()
Quoted 67 lines · Vishal Moola
Quoted 64 lines · Vishal Moola (Oracle)
Convert function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Signed-off-by Vishal Moola (Oracle) <[email protected]>--- fs/f2fs/node.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)fs/f2fs/node.c +10
-9@@ -1728,12 +1728,12 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode, unsigned int *seq_id) {pgoff_t index; -struct pagevec pvec; +struct folio_batch fbatch;int ret =0 ;struct page *last_page =NULL ;bool marked = false;nid_t ino = inode->i_ino; -int nr_pages; +int nr_folios;int nwritten =0 ;if (atomic) {@@ -1742,20 +1742,21 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,return PTR_ERR_OR_ZERO (last_page); } retry: -pagevec_init (&pvec); +folio_batch_init (&fbatch); index =0 ; -while ((nr_pages =pagevec_lookup_tag (&pvec,NODE_MAPPING (sbi), &index, -PAGECACHE_TAG_DIRTY ))) { +while ((nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), &index, + (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;bool submitted = false;if (unlikely (f2fs_cp_error (sbi))) {f2fs_put_page (last_page,0 ); -pagevec_release (&pvec); +folio_batch_release (&fbatch); ret = -EIO ; goto out; }@@ -1821,7 +1822,7 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,break ; } } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched ();
Quoted 7 lines
Quoted 4 lines
fs/f2fs/node.c +0
-1if (ret || marked) --2.36.1
Following up on these f2fs patches (11/23, 12/23, 13/23, 14/23, 15/23, 16/23). Does anyone have time to review them this week?
Chao, thank you for taking a look at some of these patches! If you have time to look over the remaining patches (14, 15, 16) feedback on those would be appreciated as well.
Re: [f2fs-dev] [PATCH v3 11/23] f2fs: Convert f2fs_fsync_node_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Quoted 4 lines · Vishal Moola (Oracle)
Convert function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Signed-off-by Vishal Moola (Oracle) <[email protected]>
Thanks,
Quoted 60 lines
--- fs/f2fs/node.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)fs/f2fs/node.c +10
-9@@ -1728,12 +1728,12 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode, unsigned int *seq_id) {pgoff_t index; -struct pagevec pvec; +struct folio_batch fbatch;int ret =0 ;struct page *last_page =NULL ;bool marked = false;nid_t ino = inode->i_ino; -int nr_pages; +int nr_folios;int nwritten =0 ;if (atomic) {@@ -1742,20 +1742,21 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,return PTR_ERR_OR_ZERO (last_page); } retry: -pagevec_init (&pvec); +folio_batch_init (&fbatch); index =0 ; -while ((nr_pages =pagevec_lookup_tag (&pvec,NODE_MAPPING (sbi), &index, -PAGECACHE_TAG_DIRTY ))) { +while ((nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), &index, + (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;bool submitted = false;if (unlikely (f2fs_cp_error (sbi))) {f2fs_put_page (last_page,0 ); -pagevec_release (&pvec); +folio_batch_release (&fbatch); ret = -EIO ; goto out; }@@ -1821,7 +1822,7 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,break ; } } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched ();if (ret || marked)
PATCH v3 12/23 f2fs: Convert f2fs_flush_inline_data() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use a folio_batch instead of pagevec. This is in preparation for the removal of find_get_pages_tag().
--- fs/f2fs/node.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
fs/f2fs/node.c +9 -8
@@ -1887,17 +1887,18 @@ static bool flush_dirty_inode(struct page *page)void f2fs_flush_inline_data (struct f2fs_sb_info *sbi) {pgoff_t index =0 ; -struct pagevec pvec; -int nr_pages; +struct folio_batch fbatch; +int nr_folios; -pagevec_init (&pvec); +folio_batch_init (&fbatch); -while ((nr_pages =pagevec_lookup_tag (&pvec, -NODE_MAPPING (sbi), &index,PAGECACHE_TAG_DIRTY ))) { +while ((nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), &index, + (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;if (!IS_DNODE (page))continue ;
@@ -1924,7 +1925,7 @@ void f2fs_flush_inline_data(struct f2fs_sb_info *sbi) }unlock_page (page); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } }
Signature · 1 line
2.36.1
Re: [f2fs-dev] [PATCH v3 12/23] f2fs: Convert f2fs_flush_inline_data() to use filemap_get_folios_tag()
Quoted 4 lines · Vishal Moola (Oracle)
Convert function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_tag().Signed-off-by Vishal Moola (Oracle) <[email protected]>
Thanks,
Quoted 43 lines
--- fs/f2fs/node.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)fs/f2fs/node.c +9
-8@@ -1887,17 +1887,18 @@ static bool flush_dirty_inode(struct page *page)void f2fs_flush_inline_data (struct f2fs_sb_info *sbi) {pgoff_t index =0 ; -struct pagevec pvec; -int nr_pages; +struct folio_batch fbatch; +int nr_folios; -pagevec_init (&pvec); +folio_batch_init (&fbatch); -while ((nr_pages =pagevec_lookup_tag (&pvec, -NODE_MAPPING (sbi), &index,PAGECACHE_TAG_DIRTY ))) { +while ((nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), &index, + (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;if (!IS_DNODE (page))continue ;@@ -1924,7 +1925,7 @@ void f2fs_flush_inline_data(struct f2fs_sb_info *sbi) }unlock_page (page); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } }
PATCH v3 13/23 f2fs: Convert f2fs_sync_node_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use a folio_batch instead of pagevec. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/f2fs/node.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
fs/f2fs/node.c +9 -8
@@ -1935,23 +1935,24 @@ int f2fs_sync_node_pages(struct f2fs_sb_info *sbi, bool do_balance, enum iostat_type io_type) { pgoff_t index; -struct pagevec pvec; +struct folio_batch fbatch;int step =0 ;int nwritten =0 ;int ret =0 ; -int nr_pages, done =0 ; +int nr_folios, done =0 ; -pagevec_init (&pvec); +folio_batch_init (&fbatch); next_step: index =0 ; -while (!done && (nr_pages =pagevec_lookup_tag (&pvec, -NODE_MAPPING (sbi), &index,PAGECACHE_TAG_DIRTY ))) { +while (!done && (nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), + &index, (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;bool submitted = false;/* give a priority to WB_SYNC threads */
@@ -2026,7 +2027,7 @@ int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,if (--wbc->nr_to_write ==0 )break ; } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched ();if (wbc->nr_to_write ==0 ) {
Signature · 1 line
2.36.1
Re: [f2fs-dev] [PATCH v3 13/23] f2fs: Convert f2fs_sync_node_pages() to use filemap_get_folios_tag()
Quoted 4 lines · Vishal Moola (Oracle)
Convert function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Signed-off-by Vishal Moola (Oracle) <[email protected]>
Thanks,
Quoted 49 lines
--- fs/f2fs/node.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)fs/f2fs/node.c +9
-8@@ -1935,23 +1935,24 @@ int f2fs_sync_node_pages(struct f2fs_sb_info *sbi, bool do_balance, enum iostat_type io_type) { pgoff_t index; -struct pagevec pvec; +struct folio_batch fbatch;int step =0 ;int nwritten =0 ;int ret =0 ; -int nr_pages, done =0 ; +int nr_folios, done =0 ; -pagevec_init (&pvec); +folio_batch_init (&fbatch); next_step: index =0 ; -while (!done && (nr_pages =pagevec_lookup_tag (&pvec, -NODE_MAPPING (sbi), &index,PAGECACHE_TAG_DIRTY ))) { +while (!done && (nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), + &index, (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;bool submitted = false;/* give a priority to WB_SYNC threads */ @@ -2026,7 +2027,7 @@ int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,if (--wbc->nr_to_write ==0 )break ; } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched ();if (wbc->nr_to_write ==0 ) {
PATCH v3 14/23 f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Converted the function to use a folio_batch instead of pagevec. This is in preparation for the removal of find_get_pages_range_tag().
Also modified f2fs_all_cluster_page_ready to take in a folio_batch instead of pagevec. This does NOT support large folios. The function currently only utilizes folios of size 1 so this shouldn't cause any issues right now.
--- fs/f2fs/compress.c | 13 +++++---- fs/f2fs/data.c | 69 +++++++++++++++++++++++++--------------------- fs/f2fs/f2fs.h | 5 ++-- 3 files changed, 47 insertions(+), 40 deletions(-)
fs/f2fs/compress.c +7 -6
@@ -842,10 +842,11 @@ bool f2fs_cluster_can_merge_page(struct compress_ctx *cc, pgoff_t index)return is_page_in_cluster (cc, index); } -bool f2fs_all_cluster_page_ready (struct compress_ctx *cc,struct page **pages, -int index,int nr_pages,bool uptodate) +bool f2fs_all_cluster_page_ready (struct compress_ctx *cc, +struct folio_batch *fbatch, +int index,int nr_folios,bool uptodate) { -unsigned long pgidx = pages[index]->index; +unsigned long pgidx = fbatch->folios[index]->index;int i = uptodate ?0 :1 ;/*
@@ -855,13 +856,13 @@ bool f2fs_all_cluster_page_ready(struct compress_ctx *cc, struct page **pages,if (uptodate && (pgidx % cc->cluster_size))return false; -if (nr_pages - index < cc->cluster_size) +if (nr_folios - index < cc->cluster_size)return false;for (; i < cc->cluster_size; i++) { -if (pages[index + i]->index != pgidx + i) +if (fbatch->folios[index + i]->index != pgidx + i)return false; -if (uptodate && !PageUptodate (pages[index + i])) +if (uptodate && !folio_test_uptodate (fbatch->folios[index + i]))return false; }
fs/f2fs/data.c +37 -32
164 lines not on this page · raw message
fs/f2fs/f2fs.h +3 -2
@@ -4226,8 +4226,9 @@ void f2fs_end_read_compressed_page(struct page *page, bool failed, block_t blkaddr, bool in_task);bool f2fs_cluster_is_empty (struct compress_ctx *cc);bool f2fs_cluster_can_merge_page (struct compress_ctx *cc,pgoff_t index); -bool f2fs_all_cluster_page_ready (struct compress_ctx *cc,struct page **pages, -int index,int nr_pages,bool uptodate); +bool f2fs_all_cluster_page_ready (struct compress_ctx *cc, +struct folio_batch *fbatch,int index,int nr_folios, +bool uptodate);bool f2fs_sanity_check_cluster (struct dnode_of_data *dn);void f2fs_compress_ctx_add_page (struct compress_ctx *cc,struct page *page); int f2fs_write_multi_pages(struct compress_ctx *cc,
Signature · 1 line
2.36.1
Chao Yu
maintainerRe: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 5 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currently
Vishal,
It looks this patch tries to revert Fengnan's change:
How about doing some tests to evaluate its performance effect?
+Cc Fengnan Chang
Thanks,
Quoted 239 lines
only utilizes folios of size 1 so this shouldn't cause any issues right now.
Signed-off-by Vishal Moola (Oracle) <[email protected]>--- fs/f2fs/compress.c | 13 +++++---- fs/f2fs/data.c | 69 +++++++++++++++++++++++++--------------------- fs/f2fs/f2fs.h | 5 ++-- 3 files changed, 47 insertions(+), 40 deletions(-)fs/f2fs/compress.c +7
-6@@ -842,10 +842,11 @@ bool f2fs_cluster_can_merge_page(struct compress_ctx *cc, pgoff_t index)return is_page_in_cluster (cc, index); } -bool f2fs_all_cluster_page_ready (struct compress_ctx *cc,struct page **pages, -int index,int nr_pages,bool uptodate) +bool f2fs_all_cluster_page_ready (struct compress_ctx *cc, +struct folio_batch *fbatch, +int index,int nr_folios,bool uptodate) { -unsigned long pgidx = pages[index]->index; +unsigned long pgidx = fbatch->folios[index]->index;int i = uptodate ?0 :1 ;/* @@ -855,13 +856,13 @@ bool f2fs_all_cluster_page_ready(struct compress_ctx *cc, struct page **pages,if (uptodate && (pgidx % cc->cluster_size))return false; -if (nr_pages - index < cc->cluster_size) +if (nr_folios - index < cc->cluster_size)return false;for (; i < cc->cluster_size; i++) { -if (pages[index + i]->index != pgidx + i) +if (fbatch->folios[index + i]->index != pgidx + i)return false; -if (uptodate && !PageUptodate (pages[index + i])) +if (uptodate && !folio_test_uptodate (fbatch->folios[index + i]))return false; }fs/f2fs/data.c +37
-32@@ -2938,7 +2938,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, {int ret =0 ;int done =0 , retry =0 ; -struct page *pages[F2FS_ONSTACK_PAGES ]; +struct folio_batch fbatch;struct f2fs_sb_info *sbi =F2FS_M_SB (mapping);struct bio *bio =NULL ;sector_t last_block;@@ -2959,7 +2959,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, .private = NULL, };#endif -int nr_pages; +int nr_folios;pgoff_t index;pgoff_t end;/* Inclusive */ pgoff_t done_index;@@ -2969,6 +2969,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping,int submitted =0 ;int i; +folio_batch_init (&fbatch); +if (get_dirty_pages (mapping->host) <=SM_I (F2FS_M_SB (mapping))->min_hot_blocks)set_inode_flag (mapping->host,FI_HOT_DATA );@@ -2994,13 +2996,13 @@ static int f2fs_write_cache_pages(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && !retry && (index <= end)) { - nr_pages =find_get_pages_range_tag (mapping, &index, end, - tag,F2FS_ONSTACK_PAGES , pages); -if (nr_pages ==0 ) + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); +if (nr_folios ==0 )break ; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i];bool need_readd; readd: need_readd = false;@@ -3017,7 +3019,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (!f2fs_cluster_can_merge_page (&cc, - page->index)) { + folio->index)) { ret =f2fs_write_multi_pages (&cc, &submitted, wbc, io_type);if (!ret)@@ -3026,27 +3028,28 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (unlikely (f2fs_cp_error (sbi))) - goto lock_page; + goto lock_folio;if (!f2fs_cluster_is_empty (&cc)) - goto lock_page; + goto lock_folio;if (f2fs_all_cluster_page_ready (&cc, - pages, i, nr_pages, true)) - goto lock_page; + &fbatch, i, nr_folios, true)) + goto lock_folio; ret2 =f2fs_prepare_compress_overwrite ( inode, &pagep, - page->index, &fsdata); + folio->index, &fsdata);if (ret2 <0 ) { ret = ret2; done =1 ;break ; }else if (ret2 && (!f2fs_compress_write_end (inode, - fsdata, page->index,1 ) || + fsdata, folio->index,1 ) || !f2fs_all_cluster_page_ready (&cc, - pages, i, nr_pages, false))) { + &fbatch, i, nr_folios, + false))) { retry =1 ;break ; }@@ -3059,46 +3062,47 @@ static int f2fs_write_cache_pages(struct address_space *mapping,break ; } #ifdef CONFIG_F2FS_FS_COMPRESSION -lock_page: +lock_folio: #endif - done_index = page->index; + done_index = folio->index; retry_write: - lock_page(page); + folio_lock(folio); - if (unlikely(page->mapping != mapping)) { + if (unlikely(folio->mapping != mapping)) { continue_unlock: - unlock_page(page); + folio_unlock(folio); continue; } - if (!PageDirty(page)) { + if (!folio_test_dirty(folio)) { /* someone wrote it for us */ goto continue_unlock; } - if (PageWriteback(page)) { + if (folio_test_writeback(folio)) { if (wbc->sync_mode != WB_SYNC_NONE) - f2fs_wait_on_page_writeback(page, + f2fs_wait_on_page_writeback( + &folio->page, DATA, true, true); else goto continue_unlock; } - if (!clear_page_dirty_for_io(page)) + if (!folio_clear_dirty_for_io(folio)) goto continue_unlock; #ifdef CONFIG_F2FS_FS_COMPRESSION if (f2fs_compressed_file(inode)) { - get_page(page); - f2fs_compress_ctx_add_page(&cc, page); + folio_get(folio); + f2fs_compress_ctx_add_page(&cc, &folio->page); continue; } #endif - ret = f2fs_write_single_data_page(page, &submitted, - &bio, &last_block, wbc, io_type, - 0, true); + ret = f2fs_write_single_data_page(&folio->page, + &submitted, &bio, &last_block, + wbc, io_type, 0, true); if (ret == AOP_WRITEPAGE_ACTIVATE) - unlock_page(page); + folio_unlock(folio); #ifdef CONFIG_F2FS_FS_COMPRESSION result: #endif@@ -3122,7 +3126,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping, } goto next; } - done_index = page->index +1 ; + done_index = folio->index + +folio_nr_pages (folio); done =1 ;break ; }@@ -3136,7 +3141,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,if (need_readd) goto readd; } -release_pages (pages, nr_pages); +folio_batch_release (&fbatch);cond_resched (); }#ifdef CONFIG_F2FS_FS_COMPRESSION fs/f2fs/f2fs.h +3
-2@@ -4226,8 +4226,9 @@ void f2fs_end_read_compressed_page(struct page *page, bool failed, block_t blkaddr, bool in_task);bool f2fs_cluster_is_empty (struct compress_ctx *cc);bool f2fs_cluster_can_merge_page (struct compress_ctx *cc,pgoff_t index); -bool f2fs_all_cluster_page_ready (struct compress_ctx *cc,struct page **pages, -int index,int nr_pages,bool uptodate); +bool f2fs_all_cluster_page_ready (struct compress_ctx *cc, +struct folio_batch *fbatch,int index,int nr_folios, +bool uptodate);bool f2fs_sanity_check_cluster (struct dnode_of_data *dn);void f2fs_compress_ctx_add_page (struct compress_ctx *cc,struct page *page); int f2fs_write_multi_pages(struct compress_ctx *cc,
Re: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 8 lines · Chao Yu
Quoted 5 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currently
Quoted 7 lines
Vishal,
It looks this patch tries to revert Fengnan's change:
How about doing some tests to evaluate its performance effect?
Yeah I'll play around with it to see how much of a difference it makes.
Quoted 243 lines
+Cc Fengnan Chang
Thanks,
Quoted 239 lines
only utilizes folios of size 1 so this shouldn't cause any issues right now.
Signed-off-by Vishal Moola (Oracle) <[email protected]>--- fs/f2fs/compress.c | 13 +++++---- fs/f2fs/data.c | 69 +++++++++++++++++++++++++--------------------- fs/f2fs/f2fs.h | 5 ++-- 3 files changed, 47 insertions(+), 40 deletions(-)fs/f2fs/compress.c +7
-6@@ -842,10 +842,11 @@ bool f2fs_cluster_can_merge_page(struct compress_ctx *cc, pgoff_t index)return is_page_in_cluster (cc, index); } -bool f2fs_all_cluster_page_ready (struct compress_ctx *cc,struct page **pages, -int index,int nr_pages,bool uptodate) +bool f2fs_all_cluster_page_ready (struct compress_ctx *cc, +struct folio_batch *fbatch, +int index,int nr_folios,bool uptodate) { -unsigned long pgidx = pages[index]->index; +unsigned long pgidx = fbatch->folios[index]->index;int i = uptodate ?0 :1 ;/* @@ -855,13 +856,13 @@ bool f2fs_all_cluster_page_ready(struct compress_ctx *cc, struct page **pages,if (uptodate && (pgidx % cc->cluster_size))return false; -if (nr_pages - index < cc->cluster_size) +if (nr_folios - index < cc->cluster_size)return false;for (; i < cc->cluster_size; i++) { -if (pages[index + i]->index != pgidx + i) +if (fbatch->folios[index + i]->index != pgidx + i)return false; -if (uptodate && !PageUptodate (pages[index + i])) +if (uptodate && !folio_test_uptodate (fbatch->folios[index + i]))return false; }fs/f2fs/data.c +37
-32@@ -2938,7 +2938,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, {int ret =0 ;int done =0 , retry =0 ; -struct page *pages[F2FS_ONSTACK_PAGES ]; +struct folio_batch fbatch;struct f2fs_sb_info *sbi =F2FS_M_SB (mapping);struct bio *bio =NULL ;sector_t last_block;@@ -2959,7 +2959,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, .private = NULL, };#endif -int nr_pages; +int nr_folios;pgoff_t index;pgoff_t end;/* Inclusive */ pgoff_t done_index;@@ -2969,6 +2969,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping,int submitted =0 ;int i; +folio_batch_init (&fbatch); +if (get_dirty_pages (mapping->host) <=SM_I (F2FS_M_SB (mapping))->min_hot_blocks)set_inode_flag (mapping->host,FI_HOT_DATA );@@ -2994,13 +2996,13 @@ static int f2fs_write_cache_pages(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && !retry && (index <= end)) { - nr_pages =find_get_pages_range_tag (mapping, &index, end, - tag,F2FS_ONSTACK_PAGES , pages); -if (nr_pages ==0 ) + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); +if (nr_folios ==0 )break ; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i];bool need_readd; readd: need_readd = false;@@ -3017,7 +3019,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (!f2fs_cluster_can_merge_page (&cc, - page->index)) { + folio->index)) { ret =f2fs_write_multi_pages (&cc, &submitted, wbc, io_type);if (!ret)@@ -3026,27 +3028,28 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (unlikely (f2fs_cp_error (sbi))) - goto lock_page; + goto lock_folio;if (!f2fs_cluster_is_empty (&cc)) - goto lock_page; + goto lock_folio;if (f2fs_all_cluster_page_ready (&cc, - pages, i, nr_pages, true)) - goto lock_page; + &fbatch, i, nr_folios, true)) + goto lock_folio; ret2 =f2fs_prepare_compress_overwrite ( inode, &pagep, - page->index, &fsdata); + folio->index, &fsdata);if (ret2 <0 ) { ret = ret2; done =1 ;break ; }else if (ret2 && (!f2fs_compress_write_end (inode, - fsdata, page->index,1 ) || + fsdata, folio->index,1 ) || !f2fs_all_cluster_page_ready (&cc, - pages, i, nr_pages, false))) { + &fbatch, i, nr_folios, + false))) { retry =1 ;break ; }@@ -3059,46 +3062,47 @@ static int f2fs_write_cache_pages(struct address_space *mapping,break ; } #ifdef CONFIG_F2FS_FS_COMPRESSION -lock_page: +lock_folio: #endif - done_index = page->index; + done_index = folio->index; retry_write: - lock_page(page); + folio_lock(folio); - if (unlikely(page->mapping != mapping)) { + if (unlikely(folio->mapping != mapping)) { continue_unlock: - unlock_page(page); + folio_unlock(folio); continue; } - if (!PageDirty(page)) { + if (!folio_test_dirty(folio)) { /* someone wrote it for us */ goto continue_unlock; } - if (PageWriteback(page)) { + if (folio_test_writeback(folio)) { if (wbc->sync_mode != WB_SYNC_NONE) - f2fs_wait_on_page_writeback(page, + f2fs_wait_on_page_writeback( + &folio->page, DATA, true, true); else goto continue_unlock; } - if (!clear_page_dirty_for_io(page)) + if (!folio_clear_dirty_for_io(folio)) goto continue_unlock; #ifdef CONFIG_F2FS_FS_COMPRESSION if (f2fs_compressed_file(inode)) { - get_page(page); - f2fs_compress_ctx_add_page(&cc, page); + folio_get(folio); + f2fs_compress_ctx_add_page(&cc, &folio->page); continue; } #endif - ret = f2fs_write_single_data_page(page, &submitted, - &bio, &last_block, wbc, io_type, - 0, true); + ret = f2fs_write_single_data_page(&folio->page, + &submitted, &bio, &last_block, + wbc, io_type, 0, true); if (ret == AOP_WRITEPAGE_ACTIVATE) - unlock_page(page); + folio_unlock(folio); #ifdef CONFIG_F2FS_FS_COMPRESSION result: #endif@@ -3122,7 +3126,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping, } goto next; } - done_index = page->index +1 ; + done_index = folio->index + +folio_nr_pages (folio); done =1 ;break ; }@@ -3136,7 +3141,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,if (need_readd) goto readd; } -release_pages (pages, nr_pages); +folio_batch_release (&fbatch);cond_resched (); }#ifdef CONFIG_F2FS_FS_COMPRESSION fs/f2fs/f2fs.h +3
-2@@ -4226,8 +4226,9 @@ void f2fs_end_read_compressed_page(struct page *page, bool failed, block_t blkaddr, bool in_task);bool f2fs_cluster_is_empty (struct compress_ctx *cc);bool f2fs_cluster_can_merge_page (struct compress_ctx *cc,pgoff_t index); -bool f2fs_all_cluster_page_ready (struct compress_ctx *cc,struct page **pages, -int index,int nr_pages,bool uptodate); +bool f2fs_all_cluster_page_ready (struct compress_ctx *cc, +struct folio_batch *fbatch,int index,int nr_folios, +bool uptodate);bool f2fs_sanity_check_cluster (struct dnode_of_data *dn);void f2fs_compress_ctx_add_page (struct compress_ctx *cc,struct page *page); int f2fs_write_multi_pages(struct compress_ctx *cc,
Re: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 12 lines · Vishal Moola
Quoted 10 lines · Chao Yu
Quoted 5 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currentlyVishal,
Quoted 7 lines
Quoted 5 lines
It looks this patch tries to revert Fengnan's change:
How about doing some tests to evaluate its performance effect?
Yeah I'll play around with it to see how much of a difference it makes.
I did some testing. Looks like reverting Fengnan's change allows for occasional, but significant, spikes in write latency. I'll work on a variation of the patch that maintains the use of F2FS_ONSTACK_PAGES and send that in the next version of the patch series. Thanks for pointing that out!
How do the remaining f2fs patches in the series look to you? Patch 16/23 f2fs_sync_meta_pages() in particular seems like it may be prone to problems. If there are any changes that need to be made to it I can include those in the next version as well.
Re: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 18 lines · Vishal Moola
Quoted 16 lines · Vishal Moola
Quoted 14 lines · Chao Yu
Quoted 5 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currentlyVishal,
It looks this patch tries to revert Fengnan's change:
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
How about doing some tests to evaluate its performance effect?
Yeah I'll play around with it to see how much of a difference it makes.
I did some testing. Looks like reverting Fengnan's change allows for occasional, but significant, spikes in write latency. I'll work on a variation of the patch that maintains the use of
F2FS_ONSTACK_PAGESand send that in the next version of the patch series. Thanks for pointing that out!
Here are some numbers for reference to performance. I'm thinking we may want to go with the new version, but I'll let you be the judge of that. I ran some fio random write tests with block size 64k on a system with 8 cpus.
1 job with 1 io-depth:
Baseline:
slat (usec): min=8, max=849, avg=16.47, stdev=12.33 clat (nsec): min=253, max=751838, avg=346.51, stdev=2452.10 lat (usec): min=9, max=854, avg=17.00, stdev=12.74
lat (nsec) : 500=97.09%, 750=1.73%, 1000=0.57% lat (usec) : 2=0.41%, 4=0.09%, 10=0.06%, 20=0.04%, 50=0.01% lat (usec) : 100=0.01%, 1000=0.01%
This patch:
slat (usec): min=9, max=3690, avg=16.61, stdev=17.36 clat (nsec): min=28, max=380434, avg=336.59, stdev=1571.23 lat (usec): min=10, max=3699, avg=17.13, stdev=17.51
lat (nsec) : 50=0.01%, 500=97.95%, 750=1.42%, 1000=0.33% lat (usec) : 2=0.19%, 4=0.05%, 10=0.03%, 20=0.03%, 50=0.01% lat (usec) : 100=0.01%, 250=0.01%, 500=0.01%
Folios w/ F2FS_ONSTACK_PAGES (next version):
slat (usec): min=12, max=13623, avg=19.48, stdev=48.94 clat (nsec): min=265, max=386917, avg=380.97, stdev=1679.85 lat (usec): min=12, max=13635, avg=20.06, stdev=49.27
lat (nsec) : 500=93.55%, 750=4.62%, 1000=0.92% lat (usec) : 2=0.65%, 4=0.09%, 10=0.10%, 20=0.06%, 50=0.01% lat (usec) : 100=0.01%, 250=0.01%, 500=0.01%
1 job with 16 io-depth:
Baseline:
slat (usec): min=8, max=3907, avg=16.89, stdev=23.39 clat (usec): min=12, max=15160k, avg=11115.61, stdev=265051.86 lat (usec): min=137, max=15160k, avg=11132.68, stdev=265051.75
lat (usec) : 20=0.01%, 250=57.66%, 500=39.56%, 750=1.96%, 1000=0.22%
lat (msec) : 2=0.16%, 4=0.06%, 10=0.01%, 2000=0.29%, >=2000=0.08%
This patch:
slat (usec): min=9, max=1230, avg=17.15, stdev=12.95 clat (usec): min=4, max=39471k, avg=14825.22, stdev=588237.30 lat (usec): min=80, max=39471k, avg=14842.55, stdev=588237.27
lat (usec) : 10=0.01%, 250=38.78%, 500=59.53%, 750=1.12%, 1000=0.16%
lat (msec) : 2=0.04%, 2000=0.34%, >=2000=0.02%
Folios w/ F2FS_ONSTACK_PAGES (next version):
slat (usec): min=9, max=1188, avg=18.74, stdev=14.12 clat (usec): min=5, max=15278k, avg=8936.75, stdev=214230.09 lat (usec): min=90, max=15278k, avg=8955.67, stdev=214230.10
lat (usec) : 10=0.01%, 250=9.68%, 500=86.49%, 750=2.74%, 1000=0.54%
lat (msec) : 2=0.18%, 2000=0.32%, >=2000=0.04%
Quoted 4 lines
How do the remaining f2fs patches in the series look to you? Patch 16/23
f2fs_sync_meta_pages()in particular seems like it may be prone to problems. If there are any changes that need to be made to it I can include those in the next version as well.
Re: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
In reply to Vishal MoolaQuoted 18 lines · Vishal Moola
Quoted 16 lines · Vishal Moola
Quoted 14 lines · Chao Yu
Quoted 5 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currentlyVishal,
It looks this patch tries to revert Fengnan's change:
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
How about doing some tests to evaluate its performance effect?
Yeah I'll play around with it to see how much of a difference it makes.
I did some testing. Looks like reverting Fengnan's change allows for occasional, but significant, spikes in write latency. I'll work on a variation of the patch that maintains the use of
F2FS_ONSTACK_PAGESand send that in the next version of the patch series. Thanks for pointing that out!
Following Matthew's comment, I'm thinking we should go with this patch as is. The numbers between both variations did not have substantial differences with regard to latency.
While the new variant would maintain the use of F2FS_ONSTACK_PAGES, the code becomes messier and would end up limiting the number of folios written back once large folio support is added. This means it would have to be converted down to this version later anyways.
Does leaving this patch as is sound good to you?
For reference, here's what the version continuing to use a page array of size F2FS_ONSTACK_PAGES would change:
+ nr_pages = 0;
+again:
+ nr_folios = filemap_get_folios_tag(mapping, &index, end,
+ tag, &fbatch);
+ if (nr_folios == 0) {
+ if (nr_pages)
+ goto write;
+ goto write;
break;+ }
+ for (i = 0; i < nr_folios; i++) {
+ struct folio* folio = fbatch.folios[i];
+
+ idx = 0;
+ p = folio_nr_pages(folio);
+add_more:
+ pages[nr_pages] = folio_page(folio,idx);
+ folio_ref_inc(folio);
+ if (++nr_pages == F2FS_ONSTACK_PAGES) {
+ index = folio->index + idx + 1;
+ folio_batch_release(&fbatch);
+ goto write;
+ }
+ if (++idx < p)
+ goto add_more;
+ }
+ folio_batch_release(&fbatch);
+ goto again;+write:
Quoted 4 lines
How do the remaining f2fs patches in the series look to you? Patch 16/23
f2fs_sync_meta_pages()in particular seems like it may be prone to problems. If there are any changes that need to be made to it I can include those in the next version as well.
Thanks for reviewing the patches so far. I wanted to follow up on asking for review of the last couple of patches.
Chao Yu
maintainerRe: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Hi Vishal,
Sorry for the delay reply.
Quoted 42 lines · Vishal Moola
Quoted 18 lines · Vishal Moola
Quoted 16 lines · Vishal Moola
Quoted 14 lines · Chao Yu
Quoted 5 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currentlyVishal,
It looks this patch tries to revert Fengnan's change:
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
How about doing some tests to evaluate its performance effect?
Yeah I'll play around with it to see how much of a difference it makes.
I did some testing. Looks like reverting Fengnan's change allows for occasional, but significant, spikes in write latency. I'll work on a variation of the patch that maintains the use of
F2FS_ONSTACK_PAGESand send that in the next version of the patch series. Thanks for pointing that out!Following Matthew's comment, I'm thinking we should go with this patch as is. The numbers between both variations did not have substantial differences with regard to latency.
While the new variant would maintain the use of
F2FS_ONSTACK_PAGES, the code becomes messier and would end up limiting the number of folios written back once large folio support is added. This means it would have to be converted down to this version later anyways.Does leaving this patch as is sound good to you?
For reference, here's what the version continuing to use a page array of size
F2FS_ONSTACK_PAGESwould change:
Review
Quoted 8 lines
(quoted diff) +8
-0+ nr_pages = 0; +again: + nr_folios = filemap_get_folios_tag(mapping, &index, end, + tag, &fbatch); + if (nr_folios == 0) { + if (nr_pages) + goto write; + goto write;
Duplicated code.
Quoted 12 lines
break;(quoted diff) +10
-0+ } + for (i = 0; i < nr_folios; i++) { + struct folio* folio = fbatch.folios[i]; + + idx = 0; + p = folio_nr_pages(folio); +add_more: + pages[nr_pages] = folio_page(folio,idx); + folio_ref_inc(folio); + if (++nr_pages == F2FS_ONSTACK_PAGES) {
Review
Quoted 10 lines
(quoted diff) +10
-0+ index = folio->index + idx + 1; + folio_batch_release(&fbatch); + goto write; + } + if (++idx < p) + goto add_more; + } + folio_batch_release(&fbatch); + goto again; +write:
Looks fine to me, can you please send a formal patch?
Thanks,
Quoted 8 lines
Quoted 5 lines
How do the remaining f2fs patches in the series look to you? Patch 16/23
f2fs_sync_meta_pages()in particular seems like it may be prone to problems. If there are any changes that need to be made to it I can include those in the next version as well.Thanks for reviewing the patches so far. I wanted to follow up on asking for review of the last couple of patches.
RFC PATCH 1/1 f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Converted the function to use a folio_batch instead of pagevec. This is in preparation for the removal of find_get_pages_range_tag().
Also modified f2fs_all_cluster_page_ready to take in a folio_batch instead of pagevec. This does NOT support large folios. The function currently only utilizes folios of size 1 so this shouldn't cause any issues right now.
This version of the patch limits the number of pages fetched to F2FS_ONSTACK_PAGES. If that ever happens, update the start index here since filemap_get_folios_tag() updates the index to be after the last found folio, not necessarily the last used page.
---
Let me know if you prefer this version and I'll include it in v5 of the patch series when I rebase it after the merge window.
--- fs/f2fs/data.c | 86 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 59 insertions(+), 27 deletions(-)
fs/f2fs/data.c +59 -27
@@ -2939,6 +2939,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,int ret =0 ;int done =0 , retry =0 ;struct page *pages[F2FS_ONSTACK_PAGES ]; +struct folio_batch fbatch;struct f2fs_sb_info *sbi =F2FS_M_SB (mapping);struct bio *bio =NULL ;sector_t last_block;
@@ -2959,6 +2960,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, .private = NULL, };#endif +int nr_folios, p, idx;int nr_pages;pgoff_t index;pgoff_t end;/* Inclusive */
@@ -2969,6 +2971,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping,int submitted =0 ;int i; +folio_batch_init (&fbatch); +if (get_dirty_pages (mapping->host) <=SM_I (F2FS_M_SB (mapping))->min_hot_blocks)set_inode_flag (mapping->host,FI_HOT_DATA );
@@ -2994,13 +2998,38 @@ static int f2fs_write_cache_pages(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && !retry && (index <= end)) { - nr_pages =find_get_pages_range_tag (mapping, &index, end, - tag,F2FS_ONSTACK_PAGES , pages); -if (nr_pages ==0 ) + nr_pages =0 ; +again: + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); +if (nr_folios ==0 ) { +if (nr_pages) + goto write;break ; + } +for (i =0 ; i < nr_folios; i++) { +struct folio * folio = fbatch.folios[i]; + + idx =0 ; + p =folio_nr_pages (folio); +add_more: + pages[nr_pages] =folio_page (folio,idx); +folio_ref_inc (folio); +if (++nr_pages ==F2FS_ONSTACK_PAGES ) { + index = folio->index + idx +1 ; +folio_batch_release (&fbatch); + goto write; + } +if (++idx < p) + goto add_more; + } +folio_batch_release (&fbatch); + goto again; +write:for (i =0 ; i < nr_pages; i++) {struct page *page = pages[i]; +struct folio *folio =page_folio (page);bool need_readd; readd: need_readd = false;
@@ -3017,7 +3046,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (!f2fs_cluster_can_merge_page (&cc, - page->index)) { + folio->index)) { ret =f2fs_write_multi_pages (&cc, &submitted, wbc, io_type);if (!ret)
@@ -3026,27 +3055,28 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (unlikely (f2fs_cp_error (sbi))) - goto lock_page; + goto lock_folio;if (!f2fs_cluster_is_empty (&cc)) - goto lock_page; + goto lock_folio;if (f2fs_all_cluster_page_ready (&cc, pages, i, nr_pages, true)) - goto lock_page; + goto lock_folio; ret2 =f2fs_prepare_compress_overwrite ( inode, &pagep, - page->index, &fsdata); + folio->index, &fsdata);if (ret2 <0 ) { ret = ret2; done =1 ;break ; }else if (ret2 && (!f2fs_compress_write_end (inode, - fsdata, page->index,1 ) || + fsdata, folio->index,1 ) || !f2fs_all_cluster_page_ready (&cc, - pages, i, nr_pages, false))) { + pages, i, nr_pages, + false))) { retry =1 ;break ; }
@@ -3059,46 +3089,47 @@ static int f2fs_write_cache_pages(struct address_space *mapping,break ; } #ifdef CONFIG_F2FS_FS_COMPRESSION -lock_page: +lock_folio: #endif - done_index = page->index; + done_index = folio->index; retry_write: - lock_page(page); + folio_lock(folio); - if (unlikely(page->mapping != mapping)) { + if (unlikely(folio->mapping != mapping)) { continue_unlock: - unlock_page(page); + folio_unlock(folio); continue; } - if (!PageDirty(page)) { + if (!folio_test_dirty(folio)) { /* someone wrote it for us */ goto continue_unlock; } - if (PageWriteback(page)) { + if (folio_test_writeback(folio)) { if (wbc->sync_mode != WB_SYNC_NONE) - f2fs_wait_on_page_writeback(page, + f2fs_wait_on_page_writeback( + &folio->page, DATA, true, true); else goto continue_unlock; } - if (!clear_page_dirty_for_io(page)) + if (!folio_clear_dirty_for_io(folio)) goto continue_unlock; #ifdef CONFIG_F2FS_FS_COMPRESSION if (f2fs_compressed_file(inode)) { - get_page(page); - f2fs_compress_ctx_add_page(&cc, page); + folio_get(folio); + f2fs_compress_ctx_add_page(&cc, &folio->page); continue; } #endif - ret = f2fs_write_single_data_page(page, &submitted, - &bio, &last_block, wbc, io_type, - 0, true); + ret = f2fs_write_single_data_page(&folio->page, + &submitted, &bio, &last_block, + wbc, io_type, 0, true); if (ret == AOP_WRITEPAGE_ACTIVATE) - unlock_page(page); + folio_unlock(folio); #ifdef CONFIG_F2FS_FS_COMPRESSION result: #endif
@@ -3122,7 +3153,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping, } goto next; } - done_index = page->index +1 ; + done_index = folio->index + +folio_nr_pages (folio); done =1 ;break ; }
@@ -3136,7 +3168,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,if (need_readd) goto readd; } -release_pages (pages, nr_pages); +release_pages (pages,nr_pages);cond_resched (); }#ifdef CONFIG_F2FS_FS_COMPRESSION
Signature · 1 line
2.38.1
Chao Yu
maintainerRe: [RFC PATCH] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 67 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currently only utilizes folios of size 1 so this shouldn't cause any issues right now.This version of the patch limits the number of pages fetched to
F2FS_ONSTACK_PAGES. If that ever happens, update the start index here sincefilemap_get_folios_tag()updates the index to be after the last found folio, not necessarily the last used page.Signed-off-by Vishal Moola (Oracle) <[email protected]>---
Let me know if you prefer this version and I'll include it in v5 of the patch series when I rebase it after the merge window.
--- fs/f2fs/data.c | 86 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 59 insertions(+), 27 deletions(-)fs/f2fs/data.c +11
-3@@ -2939,6 +2939,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,int ret =0 ;int done =0 , retry =0 ;struct page *pages[F2FS_ONSTACK_PAGES ]; +struct folio_batch fbatch;struct f2fs_sb_info *sbi =F2FS_M_SB (mapping);struct bio *bio =NULL ;sector_t last_block;@@ -2959,6 +2960,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, .private = NULL, };#endif +int nr_folios, p, idx;int nr_pages;pgoff_t index;pgoff_t end;/* Inclusive */ @@ -2969,6 +2971,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping,int submitted =0 ;int i; +folio_batch_init (&fbatch); +if (get_dirty_pages (mapping->host) <=SM_I (F2FS_M_SB (mapping))->min_hot_blocks)set_inode_flag (mapping->host,FI_HOT_DATA );@@ -2994,13 +2998,38 @@ static int f2fs_write_cache_pages(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && !retry && (index <= end)) { - nr_pages =find_get_pages_range_tag (mapping, &index, end, - tag,F2FS_ONSTACK_PAGES , pages); -if (nr_pages ==0 ) + nr_pages =0 ; +again: + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); +if (nr_folios ==0 ) { +if (nr_pages) + goto write;break ;
fs/f2fs/data.c static int f2fs_write_cache_pages(struct address_space *mapping, · line 3018
Quoted 10 lines
fs/f2fs/data.c +9
-0+ } +for (i =0 ; i < nr_folios; i++) { +struct folio * folio = fbatch.folios[i]; + + idx =0 ; + p =folio_nr_pages (folio); +add_more: + pages[nr_pages] =folio_page (folio,idx); +folio_ref_inc (folio);
It looks if CONFIG_LRU_GEN is not set, folio_ref_inc() does nothing. For those folios recorded in pages array, we need to call folio_get() here to add one more reference on each of them?
fs/f2fs/data.c static int f2fs_write_cache_pages(struct address_space *mapping, · line 3021
Quoted 3 lines
fs/f2fs/data.c +3
-0+if (++nr_pages ==F2FS_ONSTACK_PAGES ) { + index = folio->index + idx +1 ; +folio_batch_release (&fbatch);
Otherwise after folio_batch_release(), it may cause use-after-free issue when accessing pages array? Or am I missing something?
Quoted 132 lines
fs/f2fs/data.c +35
-23+ goto write; + } +if (++idx < p) + goto add_more; + } +folio_batch_release (&fbatch); + goto again; +write:for (i =0 ; i < nr_pages; i++) {struct page *page = pages[i]; +struct folio *folio =page_folio (page);bool need_readd; readd: need_readd = false;@@ -3017,7 +3046,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (!f2fs_cluster_can_merge_page (&cc, - page->index)) { + folio->index)) { ret =f2fs_write_multi_pages (&cc, &submitted, wbc, io_type);if (!ret)@@ -3026,27 +3055,28 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (unlikely (f2fs_cp_error (sbi))) - goto lock_page; + goto lock_folio;if (!f2fs_cluster_is_empty (&cc)) - goto lock_page; + goto lock_folio;if (f2fs_all_cluster_page_ready (&cc, pages, i, nr_pages, true)) - goto lock_page; + goto lock_folio; ret2 =f2fs_prepare_compress_overwrite ( inode, &pagep, - page->index, &fsdata); + folio->index, &fsdata);if (ret2 <0 ) { ret = ret2; done =1 ;break ; }else if (ret2 && (!f2fs_compress_write_end (inode, - fsdata, page->index,1 ) || + fsdata, folio->index,1 ) || !f2fs_all_cluster_page_ready (&cc, - pages, i, nr_pages, false))) { + pages, i, nr_pages, + false))) { retry =1 ;break ; }@@ -3059,46 +3089,47 @@ static int f2fs_write_cache_pages(struct address_space *mapping,break ; } #ifdef CONFIG_F2FS_FS_COMPRESSION -lock_page: +lock_folio: #endif - done_index = page->index; + done_index = folio->index; retry_write: - lock_page(page); + folio_lock(folio); - if (unlikely(page->mapping != mapping)) { + if (unlikely(folio->mapping != mapping)) { continue_unlock: - unlock_page(page); + folio_unlock(folio); continue; } - if (!PageDirty(page)) { + if (!folio_test_dirty(folio)) { /* someone wrote it for us */ goto continue_unlock; } - if (PageWriteback(page)) { + if (folio_test_writeback(folio)) { if (wbc->sync_mode != WB_SYNC_NONE) - f2fs_wait_on_page_writeback(page, + f2fs_wait_on_page_writeback( + &folio->page, DATA, true, true); else goto continue_unlock; } - if (!clear_page_dirty_for_io(page)) + if (!folio_clear_dirty_for_io(folio)) goto continue_unlock; #ifdef CONFIG_F2FS_FS_COMPRESSION if (f2fs_compressed_file(inode)) { - get_page(page); - f2fs_compress_ctx_add_page(&cc, page); + folio_get(folio); + f2fs_compress_ctx_add_page(&cc, &folio->page); continue; } #endif - ret = f2fs_write_single_data_page(page, &submitted, - &bio, &last_block, wbc, io_type, - 0, true); + ret = f2fs_write_single_data_page(&folio->page, + &submitted, &bio, &last_block, + wbc, io_type, 0, true); if (ret == AOP_WRITEPAGE_ACTIVATE) - unlock_page(page); + folio_unlock(folio); #ifdef CONFIG_F2FS_FS_COMPRESSION result: #endif@@ -3122,7 +3153,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping, } goto next; } - done_index = page->index +1 ; + done_index = folio->index + +folio_nr_pages (folio); done =1 ;break ; }
fs/f2fs/data.c static int f2fs_write_cache_pages(struct address_space *mapping, · line 3171
Quoted 5 lines
fs/f2fs/data.c +1
-1@@ -3136,7 +3168,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,if (need_readd) goto readd; } -release_pages (pages, nr_pages); +release_pages (pages,nr_pages);
No need to change?
Thanks,
Quoted 3 lines
fs/f2fs/data.c +0
-0cond_resched (); }#ifdef CONFIG_F2FS_FS_COMPRESSION
Matthew Wilcox
maintainerRe: [RFC PATCH] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 8 lines · Chao Yu
fs/f2fs/data.c static int f2fs_write_cache_pages(struct address_space *mapping, · line 3018
Quoted 3 lines · Vishal Moola (Oracle)
fs/f2fs/data.c +3
-0+add_more: + pages[nr_pages] =folio_page (folio,idx); +folio_ref_inc (folio);It looks if
CONFIG_LRU_GENis not set,folio_ref_inc()does nothing. For those folios recorded in pages array, we need to callfolio_get()here to add one more reference on each of them?
static inline void folio_get(struct folio *folio)
{
VM_BUG_ON_FOLIO(folio_ref_zero_or_close_to_overflow(folio), folio);
folio_ref_inc(folio);
}That said, folio_ref_inct() is very much MM-internal and filesystems should be using folio_get(), so please make that modification in the next revision, Vishal.
Re: [RFC PATCH] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 12 lines · Matthew Wilcox
Quoted 8 lines · Chao Yu
fs/f2fs/data.c static int f2fs_write_cache_pages(struct address_space *mapping, · line 3018
Quoted 3 lines · Vishal Moola (Oracle)
fs/f2fs/data.c +3
-0+add_more: + pages[nr_pages] =folio_page (folio,idx); +folio_ref_inc (folio);It looks if
CONFIG_LRU_GENis not set,folio_ref_inc()does nothing. For those folios recorded in pages array, we need to callfolio_get()here to add one more reference on each of them?static inline void
folio_get(struct folio *folio)
Quoted 8 lines
{ VM_BUG_ON_FOLIO(folio_ref_zero_or_close_to_overflow(folio), folio); folio_ref_inc(folio); }That said,
folio_ref_inct()is very much MM-internal and filesystems should be usingfolio_get(), so please make that modification in the next revision, Vishal.
Ok, I'll go through and fix all of those in the next version.
Re: [RFC PATCH] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 5 lines · Vishal Moola
Quoted 3 lines
That said,
folio_ref_inct()is very much MM-internal and filesystems should be usingfolio_get(), so please make that modification in the next revision, Vishal.Ok, I'll go through and fix all of those in the next version.
Btw, something a lot more productive in this area would be to figure out how we could convert all these copy and paste versions of write_cache_pages to use common code. This might need changes to the common code, but the amount of duplicate and poorly maintained versions of this loop is a bit alarming:
- btree_write_cache_pages
- extent_write_cache_pages
- f2fs_write_cache_pages
- gfs2_write_cache_jdata
Jaegeuk Kim
maintainerRe: [RFC PATCH] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Quoted 53 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currently only utilizes folios of size 1 so this shouldn't cause any issues right now.This version of the patch limits the number of pages fetched to
F2FS_ONSTACK_PAGES. If that ever happens, update the start index here sincefilemap_get_folios_tag()updates the index to be after the last found folio, not necessarily the last used page.Signed-off-by Vishal Moola (Oracle) <[email protected]>---
Let me know if you prefer this version and I'll include it in v5 of the patch series when I rebase it after the merge window.
--- fs/f2fs/data.c | 86 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 59 insertions(+), 27 deletions(-)fs/f2fs/data.c +4
-0@@ -2939,6 +2939,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,int ret =0 ;int done =0 , retry =0 ;struct page *pages[F2FS_ONSTACK_PAGES ]; +struct folio_batch fbatch;struct f2fs_sb_info *sbi =F2FS_M_SB (mapping);struct bio *bio =NULL ;sector_t last_block;@@ -2959,6 +2960,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, .private = NULL, };#endif +int nr_folios, p, idx;int nr_pages;pgoff_t index;pgoff_t end;/* Inclusive */ @@ -2969,6 +2971,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping,int submitted =0 ;int i; +folio_batch_init (&fbatch); +if (get_dirty_pages (mapping->host) <=SM_I (F2FS_M_SB (mapping))->min_hot_blocks)set_inode_flag (mapping->host,FI_HOT_DATA );
fs/f2fs/data.c static int f2fs_write_cache_pages(struct address_space *mapping, · line 3004
Quoted 10 lines
fs/f2fs/data.c +4
-3@@ -2994,13 +2998,38 @@ static int f2fs_write_cache_pages(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && !retry && (index <= end)) { - nr_pages =find_get_pages_range_tag (mapping, &index, end, - tag,F2FS_ONSTACK_PAGES , pages); -if (nr_pages ==0 ) + nr_pages =0 ; +again: + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch);
Can't folio handle this internally with F2FS_ONSTACK_PAGES and pages?
Quoted 159 lines
fs/f2fs/data.c +51
-24+if (nr_folios ==0 ) { +if (nr_pages) + goto write;break ; + } +for (i =0 ; i < nr_folios; i++) { +struct folio * folio = fbatch.folios[i]; + + idx =0 ; + p =folio_nr_pages (folio); +add_more: + pages[nr_pages] =folio_page (folio,idx); +folio_ref_inc (folio); +if (++nr_pages ==F2FS_ONSTACK_PAGES ) { + index = folio->index + idx +1 ; +folio_batch_release (&fbatch); + goto write; + } +if (++idx < p) + goto add_more; + } +folio_batch_release (&fbatch); + goto again; +write:for (i =0 ; i < nr_pages; i++) {struct page *page = pages[i]; +struct folio *folio =page_folio (page);bool need_readd; readd: need_readd = false;@@ -3017,7 +3046,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (!f2fs_cluster_can_merge_page (&cc, - page->index)) { + folio->index)) { ret =f2fs_write_multi_pages (&cc, &submitted, wbc, io_type);if (!ret)@@ -3026,27 +3055,28 @@ static int f2fs_write_cache_pages(struct address_space *mapping, }if (unlikely (f2fs_cp_error (sbi))) - goto lock_page; + goto lock_folio;if (!f2fs_cluster_is_empty (&cc)) - goto lock_page; + goto lock_folio;if (f2fs_all_cluster_page_ready (&cc, pages, i, nr_pages, true)) - goto lock_page; + goto lock_folio; ret2 =f2fs_prepare_compress_overwrite ( inode, &pagep, - page->index, &fsdata); + folio->index, &fsdata);if (ret2 <0 ) { ret = ret2; done =1 ;break ; }else if (ret2 && (!f2fs_compress_write_end (inode, - fsdata, page->index,1 ) || + fsdata, folio->index,1 ) || !f2fs_all_cluster_page_ready (&cc, - pages, i, nr_pages, false))) { + pages, i, nr_pages, + false))) { retry =1 ;break ; }@@ -3059,46 +3089,47 @@ static int f2fs_write_cache_pages(struct address_space *mapping,break ; } #ifdef CONFIG_F2FS_FS_COMPRESSION -lock_page: +lock_folio: #endif - done_index = page->index; + done_index = folio->index; retry_write: - lock_page(page); + folio_lock(folio); - if (unlikely(page->mapping != mapping)) { + if (unlikely(folio->mapping != mapping)) { continue_unlock: - unlock_page(page); + folio_unlock(folio); continue; } - if (!PageDirty(page)) { + if (!folio_test_dirty(folio)) { /* someone wrote it for us */ goto continue_unlock; } - if (PageWriteback(page)) { + if (folio_test_writeback(folio)) { if (wbc->sync_mode != WB_SYNC_NONE) - f2fs_wait_on_page_writeback(page, + f2fs_wait_on_page_writeback( + &folio->page, DATA, true, true); else goto continue_unlock; } - if (!clear_page_dirty_for_io(page)) + if (!folio_clear_dirty_for_io(folio)) goto continue_unlock; #ifdef CONFIG_F2FS_FS_COMPRESSION if (f2fs_compressed_file(inode)) { - get_page(page); - f2fs_compress_ctx_add_page(&cc, page); + folio_get(folio); + f2fs_compress_ctx_add_page(&cc, &folio->page); continue; } #endif - ret = f2fs_write_single_data_page(page, &submitted, - &bio, &last_block, wbc, io_type, - 0, true); + ret = f2fs_write_single_data_page(&folio->page, + &submitted, &bio, &last_block, + wbc, io_type, 0, true); if (ret == AOP_WRITEPAGE_ACTIVATE) - unlock_page(page); + folio_unlock(folio); #ifdef CONFIG_F2FS_FS_COMPRESSION result: #endif@@ -3122,7 +3153,8 @@ static int f2fs_write_cache_pages(struct address_space *mapping, } goto next; } - done_index = page->index +1 ; + done_index = folio->index + +folio_nr_pages (folio); done =1 ;break ; }@@ -3136,7 +3168,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,if (need_readd) goto readd; } -release_pages (pages, nr_pages); +release_pages (pages,nr_pages);cond_resched (); }#ifdef CONFIG_F2FS_FS_COMPRESSION Signature · 1 line
2.38.1
Matthew Wilcox
maintainerRe: [RFC PATCH] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
Quoted 14 lines · Jaegeuk Kim
fs/f2fs/data.c static int f2fs_write_cache_pages(struct address_space *mapping, · line 3004
Quoted 11 lines · Vishal Moola (Oracle)
fs/f2fs/data.c +4
-3@@ -2994,13 +2998,38 @@ static int f2fs_write_cache_pages(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && !retry && (index <= end)) { - nr_pages =find_get_pages_range_tag (mapping, &index, end, - tag,F2FS_ONSTACK_PAGES , pages); -if (nr_pages ==0 ) + nr_pages =0 ; +again: + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch);Can't folio handle this internally with
F2FS_ONSTACK_PAGESand pages?
I really want to discourage filesystems from doing this kind of thing. The folio_batch is the natural size for doing batches of work, and having the consistency across all these APIs of passing in a folio_batch is quite valuable. I understand f2fs wants to get more memory in a single batch, but the right way to do that is to use larger folios.
Matthew Wilcox
maintainerRe: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
In reply to Chao YuQuoted 9 lines · Chao Yu
Quoted 5 lines · Vishal Moola (Oracle)
Converted the function to use a
folio_batchinstead of pagevec. This is in preparation for the removal offind_get_pages_range_tag().Also modified
f2fs_all_cluster_page_readyto take in afolio_batchinstead of pagevec. This does NOT support large folios. The function currentlyVishal,
Quoted 7 lines
It looks this patch tries to revert Fengnan's change:
How about doing some tests to evaluate its performance effect?
+Cc Fengnan Chang
Thanks for reviewing this. I think the real solution to this is that f2fs should be using large folios. That way, the page cache will keep track of dirtiness on a per-folio basis, and if your folios are at least as large as your cluster size, you won't need to do the f2fs_prepare_compress_overwrite() dance. And you'll get at least fifteen dirty folios per call instead of fifteen dirty pages, so your costs will be much lower.
Is anyone interested in doing the work to convert f2fs to support large folios? I can help, or you can look at the work done for XFS, AFS and a few other filesystems.
Re: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs
Hi,
Quoted 11 lines
Thanks for reviewing this. I think the real solution to this is that f2fs should be using large folios. That way, the page cache will keep track of dirtiness on a per-folio basis, and if your folios are at least as large as your cluster size, you won't need to do the
f2fs_prepare_compress_overwrite()dance. And you'll get at least fifteen dirty folios per call instead of fifteen dirty pages, so your costs will be much lower.Is anyone interested in doing the work to convert f2fs to support large folios? I can help, or you can look at the work done for XFS, AFS and a few other filesystems.
Seems like an interesting job. Not sure if I can be of any help. What needs to be done currently to support large folio?
Are there any roadmaps and reference documents.
Thx,
Yangtao
Matthew Wilcox
maintainerRe: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs
Quoted 10 lines · Yangtao Li
Hi,
Quoted 8 lines
Thanks for reviewing this. I think the real solution to this is that f2fs should be using large folios. That way, the page cache will keep track of dirtiness on a per-folio basis, and if your folios are at least as large as your cluster size, you won't need to do the
f2fs_prepare_compress_overwrite()dance. And you'll get at least fifteen dirty folios per call instead of fifteen dirty pages, so your costs will be much lower.
Quoted 8 lines
Quoted 3 lines
Is anyone interested in doing the work to convert f2fs to support large folios? I can help, or you can look at the work done for XFS, AFS and a few other filesystems.
Seems like an interesting job. Not sure if I can be of any help. What needs to be done currently to support large folio?
Are there any roadmaps and reference documents.
From a filesystem point of view, you need to ensure that you handle folios larger than PAGE_SIZE correctly. The easiest way is to spread the use of folios throughout the filesystem. For example, today the first thing we do in f2fs_read_data_folio() is convert the folio back into a page. That works because f2fs hasn't told the kernel that it supports large folios, so the VFS won't create large folios for it.
It's a lot of subtle things. Here's an obvious one:
zero_user_segment(page, 0, PAGE_SIZE);
There's a folio equivalent that will zero an entire folio.
But then there is code which assumes the number of blocks per page (maybe not in f2fs?) and so on. Every filesystem will have its own challenges.
One way to approach this is to just enable large folios (see commit 6795801366da or 8549a26308f9) and see what breaks when you run xfstests over it. Probably quite a lot!
Re: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs
Quoted 29 lines · Matthew Wilcox
Quoted 14 lines · Yangtao Li
Hi,
Quoted 11 lines
Thanks for reviewing this. I think the real solution to this is that f2fs should be using large folios. That way, the page cache will keep track of dirtiness on a per-folio basis, and if your folios are at least as large as your cluster size, you won't need to do the
f2fs_prepare_compress_overwrite()dance. And you'll get at least fifteen dirty folios per call instead of fifteen dirty pages, so your costs will be much lower.Is anyone interested in doing the work to convert f2fs to support large folios? I can help, or you can look at the work done for XFS, AFS and a few other filesystems.
Quoted 6 lines
Seems like an interesting job. Not sure if I can be of any help. What needs to be done currently to support large folio?
Are there any roadmaps and reference documents.
From a filesystem point of view, you need to ensure that you handle folios
larger than
PAGE_SIZEcorrectly. The easiest way is to spread the use of folios throughout the filesystem. For example, today the first thing we do inf2fs_read_data_folio()is convert the folio back into a page. That works because f2fs hasn't told the kernel that it supports large folios, so the VFS won't create large folios for it.It's a lot of subtle things. Here's an obvious one:
zero_user_segment(page, 0, PAGE_SIZE);
Quoted 8 lines
There's a folio equivalent that will zero an entire folio.
But then there is code which assumes the number of blocks per page (maybe not in f2fs?) and so on. Every filesystem will have its own challenges.
One way to approach this is to just enable large folios (see commit
6795801366daor8549a26308f9) and see what breaks when you run xfstests over it. Probably quite a lot!
Me and Pankaj are very interested in helping on this front. And so we'll start to organize and talk every week about this to see what is missing. First order of business however will be testing so we'll have to establish a public baseline to ensure we don't regress. For this we intend on using kdevops so that'll be done first.
If folks have patches they want to test in consideration for folio / iomap enhancements feel free to Cc us :)
After we establish a baseline we can move forward with taking on tasks which will help with this conversion.
[0] https://github.com/linux-kdevops/kdevops
Luis
Matthew Wilcox
maintainerRe: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs
Quoted 25 lines · Luis Chamberlain
Quoted 9 lines · Matthew Wilcox
From a filesystem point of view, you need to ensure that you handle folios larger than
PAGE_SIZEcorrectly. The easiest way is to spread the use of folios throughout the filesystem. For example, today the first thing we do inf2fs_read_data_folio()is convert the folio back into a page. That works because f2fs hasn't told the kernel that it supports large folios, so the VFS won't create large folios for it.It's a lot of subtle things. Here's an obvious one:
zero_user_segment(page, 0, PAGE_SIZE);Quoted 8 lines
There's a folio equivalent that will zero an entire folio.
But then there is code which assumes the number of blocks per page (maybe not in f2fs?) and so on. Every filesystem will have its own challenges.
One way to approach this is to just enable large folios (see commit
6795801366daor8549a26308f9) and see what breaks when you run xfstests over it. Probably quite a lot!Me and Pankaj are very interested in helping on this front. And so we'll start to organize and talk every week about this to see what is missing. First order of business however will be testing so we'll have to establish a public baseline to ensure we don't regress. For this we intend on using kdevops so that'll be done first.
Quoted 5 lines
If folks have patches they want to test in consideration for folio / iomap enhancements feel free to Cc us :)
After we establish a baseline we can move forward with taking on tasks which will help with this conversion.
So ... it's been a year. How is this project coming along? There weren't a lot of commits to f2fs in 2023 that were folio related.
Re: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs
Quoted 26 lines · Matthew Wilcox
Quoted 25 lines · Luis Chamberlain
Quoted 9 lines · Matthew Wilcox
From a filesystem point of view, you need to ensure that you handle folios larger than
PAGE_SIZEcorrectly. The easiest way is to spread the use of folios throughout the filesystem. For example, today the first thing we do inf2fs_read_data_folio()is convert the folio back into a page. That works because f2fs hasn't told the kernel that it supports large folios, so the VFS won't create large folios for it.It's a lot of subtle things. Here's an obvious one:
zero_user_segment(page, 0, PAGE_SIZE);Quoted 8 lines
There's a folio equivalent that will zero an entire folio.
But then there is code which assumes the number of blocks per page (maybe not in f2fs?) and so on. Every filesystem will have its own challenges.
One way to approach this is to just enable large folios (see commit
6795801366daor8549a26308f9) and see what breaks when you run xfstests over it. Probably quite a lot!Me and Pankaj are very interested in helping on this front. And so we'll start to organize and talk every week about this to see what is missing. First order of business however will be testing so we'll have to establish a public baseline to ensure we don't regress. For this we intend on using kdevops so that'll be done first.
Quoted 8 lines
Quoted 5 lines
If folks have patches they want to test in consideration for folio / iomap enhancements feel free to Cc us :)
After we establish a baseline we can move forward with taking on tasks which will help with this conversion.
So ... it's been a year. How is this project coming along? There weren't a lot of commits to f2fs in 2023 that were folio related.
The review at LSFMM revealed iomap based filesystems were the priority and so that has been the priority. Once we tackle that and get XFS support we can revisit which next fs to help out with. Testing has been a *huge* part of our endeavor, and naturally getting XFS patches up to what is required has just taken a bit more time. But you can expect patches for that within a month or so.
Luis
Matthew Wilcox
maintainerRe: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs
Quoted 17 lines · Luis Chamberlain
Quoted 7 lines · Matthew Wilcox
Quoted 6 lines · Luis Chamberlain
Me and Pankaj are very interested in helping on this front. And so we'll start to organize and talk every week about this to see what is missing. First order of business however will be testing so we'll have to establish a public baseline to ensure we don't regress. For this we intend on using kdevops so that'll be done first.
Quoted 8 lines
Quoted 5 lines
If folks have patches they want to test in consideration for folio / iomap enhancements feel free to Cc us :)
After we establish a baseline we can move forward with taking on tasks which will help with this conversion.
So ... it's been a year. How is this project coming along? There weren't a lot of commits to f2fs in 2023 that were folio related.
Quoted 6 lines
The review at LSFMM revealed iomap based filesystems were the priority and so that has been the priority. Once we tackle that and get XFS support we can revisit which next fs to help out with. Testing has been a *huge* part of our endeavor, and naturally getting XFS patches up to what is required has just taken a bit more time. But you can expect patches for that within a month or so.
Is anyone working on the iomap conversion for f2fs?
Re: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs
Quoted 18 lines · Matthew Wilcox
Quoted 17 lines · Luis Chamberlain
Quoted 15 lines · Matthew Wilcox
Quoted 11 lines · Luis Chamberlain
Me and Pankaj are very interested in helping on this front. And so we'll start to organize and talk every week about this to see what is missing. First order of business however will be testing so we'll have to establish a public baseline to ensure we don't regress. For this we intend on using kdevops so that'll be done first.
If folks have patches they want to test in consideration for folio / iomap enhancements feel free to Cc us :)
After we establish a baseline we can move forward with taking on tasks which will help with this conversion.
So ... it's been a year. How is this project coming along? There weren't a lot of commits to f2fs in 2023 that were folio related.
Quoted 8 lines
Quoted 6 lines
The review at LSFMM revealed iomap based filesystems were the priority and so that has been the priority. Once we tackle that and get XFS support we can revisit which next fs to help out with. Testing has been a *huge* part of our endeavor, and naturally getting XFS patches up to what is required has just taken a bit more time. But you can expect patches for that within a month or so.
Is anyone working on the iomap conversion for f2fs?
It already has been done for direct IO by Eric as per commit a1e09b03e6f5 ("f2fs: use iomap for direct I/O"), not clear to me if anyone is working on buffered-io. Then f2fs_commit_super() seems to be the last buffer-head user, and its not clear what the replacement could be yet.
Jaegeuk, Eric, have you guys considered this?
Luis
Re: [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs
Quoted 26 lines · Luis Chamberlain
Quoted 25 lines · Matthew Wilcox
Quoted 23 lines · Luis Chamberlain
Quoted 7 lines · Matthew Wilcox
Quoted 6 lines · Luis Chamberlain
Me and Pankaj are very interested in helping on this front. And so we'll start to organize and talk every week about this to see what is missing. First order of business however will be testing so we'll have to establish a public baseline to ensure we don't regress. For this we intend on using kdevops so that'll be done first.
Quoted 8 lines
Quoted 5 lines
If folks have patches they want to test in consideration for folio / iomap enhancements feel free to Cc us :)
After we establish a baseline we can move forward with taking on tasks which will help with this conversion.
So ... it's been a year. How is this project coming along? There weren't a lot of commits to f2fs in 2023 that were folio related.
The review at LSFMM revealed iomap based filesystems were the priority and so that has been the priority. Once we tackle that and get XFS support we can revisit which next fs to help out with. Testing has been a *huge* part of our endeavor, and naturally getting XFS patches up to what is required has just taken a bit more time. But you can expect patches for that within a month or so.
Quoted 9 lines
Quoted 1 line
Is anyone working on the iomap conversion for f2fs?
It already has been done for direct IO by Eric as per commit
a1e09b03e6f5("f2fs: use iomap for direct I/O"), not clear to me if anyone is working on buffered-io. Thenf2fs_commit_super()seems to be the last buffer-head user, and its not clear what the replacement could be yet.Jaegeuk, Eric, have you guys considered this?
Sure, I've *considered* that, along with other requested filesystem modernization projects such as converting f2fs to use the new mount API and finishing ext4's conversion to iomap. But, I haven't had time to work on these projects, nor to get very involved in f2fs beyond what's needed to maintain the fscrypt and fsverity support. I'm not anywhere close to a full-time filesystem developer. I did implement the f2fs iomap direct I/O support two years ago because it made the fscrypt direct I/O support easier. Note that these types of changes are fairly disruptive, and there were bugs that resulted from my patches, despite my best efforts. It's necessary for someone to get deeply involved in these types of changes and follow them all the way through.
- Eric
Re: [PATCH]f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
In reply to Matthew WilcoxHi,
Quoted 11 lines
Thanks for reviewing this. I think the real solution to this is that f2fs should be using large folios. That way, the page cache will keep track of dirtiness on a per-folio basis, and if your folios are at least as large as your cluster size, you won't need to do the
f2fs_prepare_compress_overwrite()dance. And you'll get at least fifteen dirty folios per call instead of fifteen dirty pages, so your costs will be much lower.Is anyone interested in doing the work to convert f2fs to support large folios? I can help, or you can look at the work done for XFS, AFS and a few other filesystems.
Seems like an interesting job. Not sure if I can be of any help. What needs to be done currently to support large folio?
Are there any roadmaps and reference documents.
Thx,
Yangtao
PATCH v3 15/23 f2fs: Convert last_fsync_dnode() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert to use a folio_batch instead of pagevec. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/f2fs/node.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
fs/f2fs/node.c +10 -9
@@ -1515,23 +1515,24 @@ static void flush_inline_data(struct f2fs_sb_info *sbi, nid_t ino)static struct page *last_fsync_dnode (struct f2fs_sb_info *sbi,nid_t ino) {pgoff_t index; -struct pagevec pvec; +struct folio_batch fbatch;struct page *last_page =NULL ; -int nr_pages; +int nr_folios; -pagevec_init (&pvec); +folio_batch_init (&fbatch); index =0 ; -while ((nr_pages =pagevec_lookup_tag (&pvec,NODE_MAPPING (sbi), &index, -PAGECACHE_TAG_DIRTY ))) { +while ((nr_folios =filemap_get_folios_tag (NODE_MAPPING (sbi), &index, + (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , + &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct page *page = &fbatch.folios[i]->page;if (unlikely (f2fs_cp_error (sbi))) {f2fs_put_page (last_page,0 ); -pagevec_release (&pvec); +folio_batch_release (&fbatch);return ERR_PTR (-EIO ); }
@@ -1562,7 +1563,7 @@ static struct page *last_fsync_dnode(struct f2fs_sb_info *sbi, nid_t ino) last_page = page;unlock_page (page); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); }return last_page;
Signature · 1 line
2.36.1
PATCH v3 16/23 f2fs: Convert f2fs_sync_meta_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag().
Initially the function was checking if the previous page index is truly the previous page i.e. 1 index behind the current page. To convert to folios and maintain this check we need to make the checkfolio->index != prev + folio_nr_pages(previous folio) since we don't know how many pages are in a folio.
At index i == 0 the check is guaranteed to succeed, so to workaround indexing bounds we can simply ignore the check for that specific index. This makes the initial assignment of prev trivial, so I removed that as well.
Also modified a comment in commit_checkpoint for consistency.
--- fs/f2fs/checkpoint.c | 49 +++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 23 deletions(-)
fs/f2fs/checkpoint.c +26 -23
@@ -390,59 +390,62 @@ long f2fs_sync_meta_pages(struct f2fs_sb_info *sbi, enum page_type type, {struct address_space *mapping =META_MAPPING (sbi);pgoff_t index =0 , prev =ULONG_MAX ; -struct pagevec pvec; +struct folio_batch fbatch;long nwritten =0 ; -int nr_pages; +int nr_folios;struct writeback_control wbc = { .for_reclaim =0 , };struct blk_plug plug; -pagevec_init (&pvec); +folio_batch_init (&fbatch);blk_start_plug (&plug); -while ((nr_pages =pagevec_lookup_tag (&pvec, mapping, &index, -PAGECACHE_TAG_DIRTY ))) { +while ((nr_folios =filemap_get_folios_tag (mapping, &index, + (pgoff_t)-1 , +PAGECACHE_TAG_DIRTY , &fbatch))) {int i; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec.pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch.folios[i]; -if (prev ==ULONG_MAX ) - prev = page->index -1 ; -if (nr_to_write !=LONG_MAX && page->index != prev +1 ) { -pagevec_release (&pvec); +if (nr_to_write !=LONG_MAX && i !=0 && + folio->index != prev + +folio_nr_pages (fbatch.folios[i-1 ])) { +folio_batch_release (&fbatch); goto stop; } -lock_page (page); +folio_lock (folio); -if (unlikely (page->mapping != mapping)) { +if (unlikely (folio->mapping != mapping)) { continue_unlock: -unlock_page (page); +folio_unlock (folio);continue ; } -if (!PageDirty (page)) { +if (!folio_test_dirty (folio)) {/* someone wrote it for us */ goto continue_unlock; } -f2fs_wait_on_page_writeback (page,META , true, true); +f2fs_wait_on_page_writeback (&folio->page,META , + true, true); -if (!clear_page_dirty_for_io (page)) +if (!folio_clear_dirty_for_io (folio)) goto continue_unlock; -if (__f2fs_write_meta_page (page, &wbc, io_type)) { -unlock_page (page); +if (__f2fs_write_meta_page (&folio->page, &wbc, + io_type)) { +folio_unlock (folio);break ; } - nwritten++; - prev = page->index; + nwritten +=folio_nr_pages (folio); + prev = folio->index;if (unlikely (nwritten >= nr_to_write))break ; } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } stop:
@@ -1398,7 +1401,7 @@ static void commit_checkpoint(struct f2fs_sb_info *sbi, };/* -* pagevec_lookup_tag and lock_page again will take +* filemap_get_folios_tag and lock_page again will take * some extra time. Therefore, f2fs_update_meta_pages and * f2fs_sync_meta_pages are combined in this function. */
Signature · 1 line
2.36.1
PATCH v3 17/23 gfs2: Convert gfs2_write_cache_jdata() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Converted function to use folios throughout. This is in preparation for the removal of find_get_pgaes_range_tag().
Also had to modify and rename gfs2_write_jdata_pagevec() to take in and utilize folio_batch rather than pagevec and use folios rather than pages. gfs2_write_jdata_batch() now supports large folios.
--- fs/gfs2/aops.c | 64 +++++++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 29 deletions(-)
fs/gfs2/aops.c +35 -29
@@ -195,67 +195,71 @@ static int gfs2_writepages(struct address_space *mapping, }/** -* gfs2_write_jdata_pagevec - Write back a pagevec's worth of pages +* gfs2_write_jdata_batch - Write back a folio batch's worth of folios * @mapping: The mapping * @wbc: The writeback control -* @pvec: The vector of pages -* @nr_pages: The number of pages to write +* @fbatch: The batch of folios * @done_index: Page index * * Returns: non-zero if loop should terminate, zero otherwise */ -static int gfs2_write_jdata_pagevec (struct address_space *mapping, +static int gfs2_write_jdata_batch (struct address_space *mapping,struct writeback_control *wbc, -struct pagevec *pvec, -int nr_pages, +struct folio_batch *fbatch,pgoff_t *done_index) {struct inode *inode = mapping->host;struct gfs2_sbd *sdp =GFS2_SB (inode); -unsigned nrblocks = nr_pages * (PAGE_SIZE >> inode->i_blkbits); +unsigned nrblocks;int i;int ret; +int nr_pages =0 ; +int nr_folios =folio_batch_count (fbatch); + +for (i =0 ; i < nr_folios; i++) + nr_pages +=folio_nr_pages (fbatch->folios[i]); + nrblocks = nr_pages * (PAGE_SIZE >> inode->i_blkbits); ret =gfs2_trans_begin (sdp, nrblocks, nrblocks);if (ret <0 )return ret; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec->pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch->folios[i]; - *done_index = page->index; + *done_index = folio->index; -lock_page (page); +folio_lock (folio); -if (unlikely (page->mapping != mapping)) { +if (unlikely (folio->mapping != mapping)) { continue_unlock: -unlock_page (page); +folio_unlock (folio);continue ; } -if (!PageDirty (page)) { +if (!folio_test_dirty (folio)) {/* someone wrote it for us */ goto continue_unlock; } -if (PageWriteback (page)) { +if (folio_test_writeback (folio)) {if (wbc->sync_mode !=WB_SYNC_NONE ) -wait_on_page_writeback (page); +folio_wait_writeback (folio);else goto continue_unlock; } -BUG_ON (PageWriteback (page)); -if (!clear_page_dirty_for_io (page)) +BUG_ON (folio_test_writeback (folio)); +if (!folio_clear_dirty_for_io (folio)) goto continue_unlock;trace_wbc_writepage (wbc,inode_to_bdi (inode)); - ret =__gfs2_jdata_writepage (page, wbc); + ret =__gfs2_jdata_writepage (&folio->page, wbc);if (unlikely (ret)) {if (ret ==AOP_WRITEPAGE_ACTIVATE ) { -unlock_page (page); +folio_unlock (folio); ret =0 ; }else {
@@ -268,7 +272,8 @@ static int gfs2_write_jdata_pagevec(struct address_space *mapping,* not be suitable for data integrity * writeout). */ - *done_index = page->index +1 ; + *done_index = folio->index + +folio_nr_pages (folio); ret =1 ;break ; }
@@ -305,8 +310,8 @@ static int gfs2_write_cache_jdata(struct address_space *mapping, {int ret =0 ;int done =0 ; -struct pagevec pvec; -int nr_pages; +struct folio_batch fbatch; +int nr_folios;pgoff_t writeback_index;pgoff_t index;pgoff_t end;
@@ -315,7 +320,7 @@ static int gfs2_write_cache_jdata(struct address_space *mapping,int range_whole =0 ;xa_mark_t tag; -pagevec_init (&pvec); +folio_batch_init (&fbatch);if (wbc->range_cyclic) { writeback_index = mapping->writeback_index;/* prev offset */ index = writeback_index;
@@ -341,17 +346,18 @@ static int gfs2_write_cache_jdata(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && (index <= end)) { - nr_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, end, - tag); -if (nr_pages ==0 ) + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); +if (nr_folios ==0 )break ; - ret =gfs2_write_jdata_pagevec (mapping, wbc, &pvec, nr_pages, &done_index); + ret =gfs2_write_jdata_batch (mapping, wbc, &fbatch, + &done_index);if (ret) done =1 ;if (ret >0 ) ret =0 ; -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); }
Signature · 1 line
2.36.1
Re: [PATCH v3 17/23] gfs2: Convert gfs2_write_cache_jdata() to use filemap_get_folios_tag()
Quoted 164 lines · Vishal Moola (Oracle)
Converted function to use folios throughout. This is in preparation for the removal of
find_get_pgaes_range_tag().Also had to modify and rename
gfs2_write_jdata_pagevec()to take in and utilizefolio_batchrather than pagevec and use folios rather than pages.gfs2_write_jdata_batch()now supports large folios.Signed-off-by Vishal Moola (Oracle) <[email protected]>--- fs/gfs2/aops.c | 64 +++++++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 29 deletions(-)fs/gfs2/aops.c +35
-30@@ -195,67 +195,71 @@ static int gfs2_writepages(struct address_space *mapping, }/** -* gfs2_write_jdata_pagevec - Write back a pagevec's worth of pages +* gfs2_write_jdata_batch - Write back a folio batch's worth of folios * @mapping: The mapping * @wbc: The writeback control -* @pvec: The vector of pages -* @nr_pages: The number of pages to write +* @fbatch: The batch of folios * @done_index: Page index * * Returns: non-zero if loop should terminate, zero otherwise */ -static int gfs2_write_jdata_pagevec (struct address_space *mapping, +static int gfs2_write_jdata_batch (struct address_space *mapping,struct writeback_control *wbc, -struct pagevec *pvec, -int nr_pages, +struct folio_batch *fbatch,pgoff_t *done_index) {struct inode *inode = mapping->host;struct gfs2_sbd *sdp =GFS2_SB (inode); -unsigned nrblocks = nr_pages * (PAGE_SIZE >> inode->i_blkbits); +unsigned nrblocks;int i;int ret; +int nr_pages =0 ; +int nr_folios =folio_batch_count (fbatch); + +for (i =0 ; i < nr_folios; i++) + nr_pages +=folio_nr_pages (fbatch->folios[i]); + nrblocks = nr_pages * (PAGE_SIZE >> inode->i_blkbits); ret =gfs2_trans_begin (sdp, nrblocks, nrblocks);if (ret <0 )return ret; -for (i =0 ; i < nr_pages; i++) { -struct page *page = pvec->pages[i]; +for (i =0 ; i < nr_folios; i++) { +struct folio *folio = fbatch->folios[i]; - *done_index = page->index; + *done_index = folio->index; -lock_page (page); +folio_lock (folio); -if (unlikely (page->mapping != mapping)) { +if (unlikely (folio->mapping != mapping)) { continue_unlock: -unlock_page (page); +folio_unlock (folio);continue ; } -if (!PageDirty (page)) { +if (!folio_test_dirty (folio)) {/* someone wrote it for us */ goto continue_unlock; } -if (PageWriteback (page)) { +if (folio_test_writeback (folio)) {if (wbc->sync_mode !=WB_SYNC_NONE ) -wait_on_page_writeback (page); +folio_wait_writeback (folio);else goto continue_unlock; } -BUG_ON (PageWriteback (page)); -if (!clear_page_dirty_for_io (page)) +BUG_ON (folio_test_writeback (folio)); +if (!folio_clear_dirty_for_io (folio)) goto continue_unlock;trace_wbc_writepage (wbc,inode_to_bdi (inode)); - ret =__gfs2_jdata_writepage (page, wbc); + ret =__gfs2_jdata_writepage (&folio->page, wbc);if (unlikely (ret)) {if (ret ==AOP_WRITEPAGE_ACTIVATE ) { -unlock_page (page); +folio_unlock (folio); ret =0 ; }else {@@ -268,7 +272,8 @@ static int gfs2_write_jdata_pagevec(struct address_space *mapping,* not be suitable for data integrity * writeout). */ - *done_index = page->index +1 ; + *done_index = folio->index + +folio_nr_pages (folio); ret =1 ;break ; }@@ -305,8 +310,8 @@ static int gfs2_write_cache_jdata(struct address_space *mapping, {int ret =0 ;int done =0 ; -struct pagevec pvec; -int nr_pages; +struct folio_batch fbatch; +int nr_folios;pgoff_t writeback_index;pgoff_t index;pgoff_t end;@@ -315,7 +320,7 @@ static int gfs2_write_cache_jdata(struct address_space *mapping,int range_whole =0 ;xa_mark_t tag; -pagevec_init (&pvec); +folio_batch_init (&fbatch);if (wbc->range_cyclic) { writeback_index = mapping->writeback_index;/* prev offset */ index = writeback_index;@@ -341,17 +346,18 @@ static int gfs2_write_cache_jdata(struct address_space *mapping,tag_pages_for_writeback (mapping, index, end); done_index = index;while (!done && (index <= end)) { - nr_pages =pagevec_lookup_range_tag (&pvec, mapping, &index, end, - tag); -if (nr_pages ==0 ) + nr_folios =filemap_get_folios_tag (mapping, &index, end, + tag, &fbatch); +if (nr_folios ==0 )break ; - ret =gfs2_write_jdata_pagevec (mapping, wbc, &pvec, nr_pages, &done_index); + ret =gfs2_write_jdata_batch (mapping, wbc, &fbatch, + &done_index);if (ret) done =1 ;if (ret >0 ) ret =0 ; -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } --
Quoted 2 lines
2.36.1
Would anyone familiar with gfs2 have time to look over this patch (17/23)? I've cc-ed the gfs2 supporters, feedback would be appreciated.
PATCH v3 18/23 nilfs2: Convert nilfs_lookup_dirty_data_buffers() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/nilfs2/segment.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-)
fs/nilfs2/segment.c +16 -13
@@ -680,7 +680,7 @@ static size_t nilfs_lookup_dirty_data_buffers(struct inode *inode, loff_t start, loff_t end) {struct address_space *mapping = inode->i_mapping; -struct pagevec pvec; +struct folio_batch fbatch;pgoff_t index =0 , last =ULONG_MAX ;size_t ndirties =0 ;int i;
@@ -694,23 +694,26 @@ static size_t nilfs_lookup_dirty_data_buffers(struct inode *inode, index = start >>PAGE_SHIFT ; last = end >>PAGE_SHIFT ; } -pagevec_init (&pvec); +folio_batch_init (&fbatch); repeat:if (unlikely (index > last) || - !pagevec_lookup_range_tag (&pvec, mapping, &index, last, -PAGECACHE_TAG_DIRTY )) + !filemap_get_folios_tag (mapping, &index, last, +PAGECACHE_TAG_DIRTY , &fbatch))return ndirties; -for (i =0 ; i <pagevec_count (&pvec); i++) { +for (i =0 ; i <folio_batch_count (&fbatch); i++) {struct buffer_head *bh, *head; -struct page *page = pvec.pages[i]; +struct folio *folio = fbatch.folios[i]; -lock_page (page); -if (!page_has_buffers (page)) -create_empty_buffers (page,i_blocksize (inode),0 ); -unlock_page (page); +folio_lock (folio); + head =folio_buffers (folio); +if (!head) { +create_empty_buffers (&folio->page,i_blocksize (inode),0 ); + head =folio_buffers (folio); + } +folio_unlock (folio); - bh = head =page_buffers (page); + bh = head; do { if (!buffer_dirty(bh) || buffer_async_write(bh)) continue;
@@ -718,13 +721,13 @@ static size_t nilfs_lookup_dirty_data_buffers(struct inode *inode,list_add_tail (&bh->b_assoc_buffers, listp); ndirties++;if (unlikely (ndirties >= nlimit)) { -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched ();return ndirties; } }while (bh = bh->b_this_page, bh != head); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); goto repeat; }
Signature · 1 line
2.36.1
PATCH v3 19/23 nilfs2: Convert nilfs_lookup_dirty_node_buffers() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/nilfs2/segment.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
fs/nilfs2/segment.c +7 -8
@@ -737,20 +737,19 @@ static void nilfs_lookup_dirty_node_buffers(struct inode *inode, {struct nilfs_inode_info *ii =NILFS_I (inode);struct inode *btnc_inode = ii->i_assoc_inode; -struct pagevec pvec; +struct folio_batch fbatch;struct buffer_head *bh, *head;unsigned int i;pgoff_t index =0 ;if (!btnc_inode)return ; +folio_batch_init (&fbatch); -pagevec_init (&pvec); - -while (pagevec_lookup_tag (&pvec, btnc_inode->i_mapping, &index, -PAGECACHE_TAG_DIRTY )) { -for (i =0 ; i <pagevec_count (&pvec); i++) { - bh = head =page_buffers (pvec.pages[i]); +while (filemap_get_folios_tag (btnc_inode->i_mapping, &index, + (pgoff_t)-1 ,PAGECACHE_TAG_DIRTY , &fbatch)) { +for (i =0 ; i <folio_batch_count (&fbatch); i++) { + bh = head =folio_buffers (fbatch.folios[i]); do { if (buffer_dirty(bh) && !buffer_async_write(bh)) {
@@ -761,7 +760,7 @@ static void nilfs_lookup_dirty_node_buffers(struct inode *inode, bh = bh->b_this_page; }while (bh != head); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } }
Signature · 1 line
2.36.1
PATCH v3 20/23 nilfs2: Convert nilfs_btree_lookup_dirty_buffers() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/nilfs2/btree.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
fs/nilfs2/btree.c +7 -7
@@ -2141,7 +2141,7 @@ static void nilfs_btree_lookup_dirty_buffers(struct nilfs_bmap *btree,struct inode *btnc_inode =NILFS_BMAP_I (btree)->i_assoc_inode;struct address_space *btcache = btnc_inode->i_mapping;struct list_head lists[NILFS_BTREE_LEVEL_MAX ]; -struct pagevec pvec; +struct folio_batch fbatch;struct buffer_head *bh, *head;pgoff_t index =0 ;int level, i;
@@ -2151,19 +2151,19 @@ static void nilfs_btree_lookup_dirty_buffers(struct nilfs_bmap *btree, level++)INIT_LIST_HEAD (&lists[level]); -pagevec_init (&pvec); +folio_batch_init (&fbatch); -while (pagevec_lookup_tag (&pvec, btcache, &index, -PAGECACHE_TAG_DIRTY )) { -for (i =0 ; i <pagevec_count (&pvec); i++) { - bh = head =page_buffers (pvec.pages[i]); +while (filemap_get_folios_tag (btcache, &index, (pgoff_t)-1 , +PAGECACHE_TAG_DIRTY , &fbatch)) { +for (i =0 ; i <folio_batch_count (&fbatch); i++) { + bh = head =folio_buffers (fbatch.folios[i]);do {if (buffer_dirty (bh))nilfs_btree_add_dirty_buffer (btree, lists, bh); }while ((bh = bh->b_this_page) != head); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); }
Signature · 1 line
2.36.1
PATCH v3 21/23 nilfs2: Convert nilfs_copy_dirty_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/nilfs2/page.c | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-)
fs/nilfs2/page.c +20 -19
@@ -240,42 +240,43 @@ static void nilfs_copy_page(struct page *dst, struct page *src, int copy_dirty)int nilfs_copy_dirty_pages (struct address_space *dmap,struct address_space *smap) { -struct pagevec pvec; +struct folio_batch fbatch;unsigned int i;pgoff_t index =0 ;int err =0 ; -pagevec_init (&pvec); +folio_batch_init (&fbatch); repeat: -if (!pagevec_lookup_tag (&pvec, smap, &index,PAGECACHE_TAG_DIRTY )) +if (!filemap_get_folios_tag (smap, &index, (pgoff_t)-1 , +PAGECACHE_TAG_DIRTY , &fbatch))return 0 ; -for (i =0 ; i <pagevec_count (&pvec); i++) { -struct page *page = pvec.pages[i], *dpage; +for (i =0 ; i <folio_batch_count (&fbatch); i++) { +struct folio *folio = fbatch.folios[i], *dfolio; -lock_page (page); -if (unlikely (!PageDirty (page))) -NILFS_PAGE_BUG (page,"inconsistent dirty state" ); +folio_lock (folio); +if (unlikely (!folio_test_dirty (folio))) +NILFS_PAGE_BUG (&folio->page,"inconsistent dirty state" ); - dpage =grab_cache_page (dmap, page->index); -if (unlikely (!dpage)) { + dfolio =filemap_grab_folio (dmap, folio->index); +if (unlikely (!dfolio)) {/* No empty page is added to the page cache */ err = -ENOMEM ; -unlock_page (page); +folio_unlock (folio);break ; } -if (unlikely (!page_has_buffers (page))) -NILFS_PAGE_BUG (page, +if (unlikely (!folio_buffers (folio))) +NILFS_PAGE_BUG (&folio->page,"found empty page in dat page cache" ); -nilfs_copy_page (dpage, page,1 ); -__set_page_dirty_nobuffers (dpage); +nilfs_copy_page (&dfolio->page, &folio->page,1 ); +filemap_dirty_folio (folio_mapping (dfolio), dfolio); -unlock_page (dpage); -put_page (dpage); -unlock_page (page); +folio_unlock (dfolio); +folio_put (dfolio); +folio_unlock (folio); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched ();if (likely (!err))
Signature · 1 line
2.36.1
PATCH v3 22/23 nilfs2: Convert nilfs_clear_dirty_pages() to use filemap_get_folios_tag()
In reply to Vishal Moola (Oracle)Convert function to use folios throughout. This is in preparation for the removal of find_get_pages_range_tag().
--- fs/nilfs2/page.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
fs/nilfs2/page.c +10 -10
@@ -358,22 +358,22 @@ void nilfs_copy_back_pages(struct address_space *dmap,*/ void nilfs_clear_dirty_pages (struct address_space *mapping,bool silent) { -struct pagevec pvec; +struct folio_batch fbatch;unsigned int i;pgoff_t index =0 ; -pagevec_init (&pvec); +folio_batch_init (&fbatch); -while (pagevec_lookup_tag (&pvec, mapping, &index, -PAGECACHE_TAG_DIRTY )) { -for (i =0 ; i <pagevec_count (&pvec); i++) { -struct page *page = pvec.pages[i]; +while (filemap_get_folios_tag (mapping, &index, (pgoff_t)-1 , +PAGECACHE_TAG_DIRTY , &fbatch)) { +for (i =0 ; i <folio_batch_count (&fbatch); i++) { +struct folio *folio = fbatch.folios[i]; -lock_page (page); -nilfs_clear_dirty_page (page, silent); -unlock_page (page); +folio_lock (folio); +nilfs_clear_dirty_page (&folio->page, silent); +folio_unlock (folio); } -pagevec_release (&pvec); +folio_batch_release (&fbatch);cond_resched (); } }
Signature · 1 line
2.36.1
PATCH v3 23/23 filemap: Remove find_get_pages_range_tag()
In reply to Vishal Moola (Oracle)All callers to find_get_pages_range_tag(), find_get_pages_tag(), pagevec_lookup_range_tag(), and pagevec_lookup_tag() have been removed.
--- include/linux/pagemap.h | 10 ------- include/linux/pagevec.h | 8 ------ mm/filemap.c | 60 ----------------------------------------- mm/swap.c | 10 ------- 4 files changed, 88 deletions(-)
include/linux/pagemap.h +0 -10
@@ -742,16 +742,6 @@ unsigned filemap_get_folios_contig(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch);unsigned filemap_get_folios_tag (struct address_space *mapping,pgoff_t *start,pgoff_t end,xa_mark_t tag,struct folio_batch *fbatch); -unsigned find_get_pages_range_tag (struct address_space *mapping,pgoff_t *index, -pgoff_t end,xa_mark_t tag,unsigned int nr_pages, -struct page **pages); -static inline unsigned find_get_pages_tag (struct address_space *mapping, -pgoff_t *index,xa_mark_t tag,unsigned int nr_pages, -struct page **pages) -{ -return find_get_pages_range_tag (mapping, index, (pgoff_t)-1 , tag, - nr_pages, pages); -}struct page *grab_cache_page_write_begin (struct address_space *mapping,pgoff_t index);
include/linux/pagevec.h +0 -8
@@ -26,14 +26,6 @@ struct pagevec { };void __pagevec_release (struct pagevec *pvec); -unsigned pagevec_lookup_range_tag (struct pagevec *pvec, -struct address_space *mapping,pgoff_t *index,pgoff_t end, -xa_mark_t tag); -static inline unsigned pagevec_lookup_tag (struct pagevec *pvec, -struct address_space *mapping,pgoff_t *index,xa_mark_t tag) -{ -return pagevec_lookup_range_tag (pvec, mapping, index, (pgoff_t)-1 , tag); -}static inline void pagevec_init (struct pagevec *pvec) {
mm/filemap.c +0 -60
66 lines not on this page · raw message
mm/swap.c +0 -10
@@ -1098,16 +1098,6 @@ void folio_batch_remove_exceptionals(struct folio_batch *fbatch) fbatch->nr = j; } -unsigned pagevec_lookup_range_tag (struct pagevec *pvec, -struct address_space *mapping,pgoff_t *index,pgoff_t end, -xa_mark_t tag) -{ - pvec->nr =find_get_pages_range_tag (mapping, index, end, tag, -PAGEVEC_SIZE , pvec->pages); -return pagevec_count (pvec); -} -EXPORT_SYMBOL (pagevec_lookup_range_tag); -/* * Perform any setup for the swap system */
Signature · 1 line
2.36.1