Repository navigation
Conversation
|
Upstream branch: 3857c2f |
17720b8 to
ec9266e
Compare
|
Upstream branch: d5b6dc3 |
b2f6f5c to
683a9dc
Compare
ec9266e to
2e69118
Compare
|
Upstream branch: 24a19b9 |
683a9dc to
cf72e02
Compare
2e69118 to
3cdd51f
Compare
|
Upstream branch: 4056b3c |
cf72e02 to
8af35c2
Compare
3cdd51f to
e6ca2c1
Compare
|
Upstream branch: 0fcb05b |
8af35c2 to
5dbca04
Compare
e6ca2c1 to
3d027d5
Compare
|
Upstream branch: 58161ea |
5dbca04 to
c476e71
Compare
3d027d5 to
90ea7e4
Compare
|
Upstream branch: c03c1a1 |
c476e71 to
fb6153f
Compare
90ea7e4 to
435b194
Compare
|
Upstream branch: 7be4bc5 |
fb6153f to
a70412b
Compare
5d84576 to
6582ed2
Compare
|
Upstream branch: fb2c3f4 |
5dc9606 to
e38f235
Compare
6582ed2 to
b3a1abc
Compare
|
Upstream branch: d135ab4 |
e38f235 to
d64b46d
Compare
b3a1abc to
712496f
Compare
|
Upstream branch: c339f40 |
d64b46d to
bcefe0e
Compare
712496f to
a186880
Compare
|
Upstream branch: d89e1d1 |
bcefe0e to
752c4b3
Compare
a186880 to
46206a3
Compare
|
Upstream branch: 6628e7d |
752c4b3 to
4d4eaf0
Compare
46206a3 to
220bd96
Compare
|
Upstream branch: 05441d6 |
4d4eaf0 to
ddb7184
Compare
220bd96 to
6c4625e
Compare
|
Upstream branch: f66469d |
ddb7184 to
c26e55c
Compare
6c4625e to
c7f678d
Compare
|
Upstream branch: d487237 |
c26e55c to
8ac8c1f
Compare
c7f678d to
6aa6cd1
Compare
mapping->nrpages is updated under the i_pages lock but is read locklessly as a cheap "anything cached?" hint, e.g. in invalidate_bdev() and mapping_needs_writeback(). KCSAN reports the race: BUG: KCSAN: data-race in __filemap_add_folio / invalidate_bdev read-write to 0xffff8881004c4178 of 8 bytes by task 3600 on cpu 0: __filemap_add_folio+0x6b7/0x910 mm/filemap.c:919 filemap_add_folio+0x1cd/0x380 page_cache_ra_unbounded+0x1a4/0x3a0 ... blkdev_read_iter+0x21e/0x2d0 read to 0xffff8881004c4178 of 8 bytes by task 3601 on cpu 1: invalidate_bdev+0x25/0x70 block/bdev.c:98 ext4_fill_super+0x2ccb/0x37b0 The same counter also races with filemap_write_and_wait_range() through mapping_needs_writeback(). The race is benign: a stale value only makes the caller do or skip a harmless invalidate/flush pass. Annotate the readers with READ_ONCE() and the writers in filemap with WRITE_ONCE(). Reported-by: syzbot+e0624b5bf72b99131402@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=e0624b5bf72b99131402 Signed-off-by: Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
|
Upstream branch: b3dfbde |
8ac8c1f to
563cce1
Compare
|
At least one diff in series https://patchwork.kernel.org/series/1183287/ irrelevant now for [{'archived': False, 'project': 241}] search patterns |
Pull request for series with
subject: mm/filemap: mark lockless accesses to mapping->nrpages
version: 1
url: https://patchwork.kernel.org/series/1183287/