{"head":"e8b364b88cc4001b21c28c1ecf1e1e3ffbe162e6","size":109,"push_id":44030418,"shas":[["3765fefaee2da83f10829fa64a74e6b7360350cb","934438d7103b8cf842e8f6117400110cee66898a@jp.fujitsu.com","btrfs: fix d_off in the first dirent\n\nSince the d_off in the first dirent for \".\" (that originates from\nthe 4th argument \"offset\" of filldir() for the 2nd dirent for \"..\")\nis wrongly assigned in btrfs_real_readdir(), telldir returns same\noffset for different locations.\n\n | # mkfs.btrfs /dev/sdb1\n | # mount /dev/sdb1 fs0\n | # cd fs0\n | # touch file0 file1\n | # ../test\n | telldir: 0\n | readdir: d_off = 2, d_name = \".\"\n | telldir: 2\n | readdir: d_off = 2, d_name = \"..\"\n | telldir: 2\n | readdir: d_off = 3, d_name = \"file0\"\n | telldir: 3\n | readdir: d_off = 2147483647, d_name = \"file1\"\n | telldir: 2147483647\n\nTo fix this problem, pass filp->f_pos (which is loff_t) instead.\n\n | # ../test\n | telldir: 0\n | readdir: d_off = 1, d_name = \".\"\n | telldir: 1\n | readdir: d_off = 2, d_name = \"..\"\n | telldir: 2\n | readdir: d_off = 3, d_name = \"file0\"\n :\n\nAt the moment the \"offset\" for \".\" is unused because there is no\npreceding dirent, however it is better to pass filp->f_pos to follow\ngrammatical usage.\n\nSigned-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>\nSigned-off-by: Chris Mason <chris.mason@oracle.com>","Hidetoshi Seto"],["71ef07861080418d125dcf454af41baafa409a2c","5dc16b054e85ffba6c8d314d8e55ae95dcab12a5@cn.fujitsu.com","Btrfs: fix pages truncation in btrfs_ioctl_clone()\n\nIt's a bug in commit f81c9cdc567cd3160ff9e64868d9a1a7ee226480\n(Btrfs: truncate pages from clone ioctl target range)\n\nWe should pass the dest range to the truncate function, but not the\nsrc range.\n\nAlso move the function before locking extent state.\n\nSigned-off-by: Li Zefan <lizf@cn.fujitsu.com>\nSigned-off-by: Chris Mason <chris.mason@oracle.com>","Li Zefan"],["0e7b824c4ef9f5bcf5e48cdce164a7b349dde969","5dc16b054e85ffba6c8d314d8e55ae95dcab12a5@cn.fujitsu.com","Btrfs: don't make a file partly checksummed through file clone\n\nTo reproduce the bug:\n\n  # mount /dev/sda7 /mnt\n  # dd if=/dev/zero of=/mnt/src bs=4K count=1\n  # umount /mnt\n\n  # mount -o nodatasum /dev/sda7 /mnt\n  # dd if=/dev/zero of=/mnt/dst bs=4K count=1\n  # clone_range -s 4K -l 4K /mnt/src /mnt/dst\n\n  # echo 3 > /proc/sys/vm/drop_caches\n  # cat /mnt/dst\n  # dmesg\n  ...\n  btrfs no csum found for inode 258 start 0\n  btrfs csum failed ino 258 off 0 csum 2566472073 private 0\n\nIt's because part of the file is checksummed and the other part is not,\nand then btrfs will complain checksum is not found when we read the file.\n\nDisallow file clone if src and dst file have different checksum flag,\nso we ensure a file is completely checksummed or unchecksummed.\n\nSigned-off-by: Li Zefan <lizf@cn.fujitsu.com>\nSigned-off-by: Chris Mason <chris.mason@oracle.com>","Li Zefan"],["dde820fbf7176b64daddc1856597d9c61dac19e2","5dc16b054e85ffba6c8d314d8e55ae95dcab12a5@cn.fujitsu.com","Btrfs: don't change inode flag of the dest clone file\n\nThe dst file will have the same inode flags with dst file after\nfile clone, and I think it's unexpected.\n\nFor example, the dst file will suddenly become immutable after\ngetting some share of data with src file, if the src is immutable.\n\nSigned-off-by: Li Zefan <lizf@cn.fujitsu.com>\nSigned-off-by: Chris Mason <chris.mason@oracle.com>","Li Zefan"],["2cf4ce7c2a07782c3f4d899b380a78522bca3238","a169954b4cb1a46cee25f659d3bddfebe02b5fba@oracle.com","Merge branch 'btrfs-3.0' into for-linus","Chris Mason"],["48802c8ae2a9d618ec734a61283d645ad527e06c","9edab3d8932dbb8f20eb55cd8199c20e7fb56c12@oracle.com","BTRFS: Fix lseek return value for error\n\nThe recent reworking of btrfs' lseek lead to incorrect\nvalues being returned.  This adds checks for seeking\nbeyond EOF in SEEK_HOLE and makes sure the error\nvalues come back correct.\n\nAndi Kleen also sent in similar patches.\n\nSigned-off-by: Jie Liu <jeff.liu@oracle.com>\nReported-by: Andi Kleen <ak@linux.intel.com>\nSigned-off-by: Chris Mason <chris.mason@oracle.com>","Jeff Liu"],["a66e7cc626f42de6c745963fe0d807518fa49d39","78b342861d821967b29f951b7366f5a0267e0c38@redhat.com","Btrfs: only clear the need lookup flag after the dentry is setup\n\nWe can race with readdir and the RCU path walking stuff.  This is because we\nclear the need lookup flag before actually instantiating the inode.  This will\nlead the RCU path walk stuff to find a dentry it thinks is valid without a\nd_inode attached.  So instead unhash the dentry when we first start the lookup,\nand then clear the flag after we've instantiated the dentry so we're garunteed\nto either try the slow lookup, or have the d_inode set properly.\n\nSigned-off-by: Josef Bacik <josef@redhat.com>\nSigned-off-by: Chris Mason <chris.mason@oracle.com>","Josef Bacik"],["b0e7031ac08fa0aa242531c8d9a0cf9ae8ee276d","69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","Merge git://github.com/davem330/net\n\n* git://github.com/davem330/net: (62 commits)\n  ipv6: don't use inetpeer to store metrics for routes.\n  can: ti_hecc: include linux/io.h\n  IRDA: Fix global type conflicts in net/irda/irsysctl.c v2\n  net: Handle different key sizes between address families in flow cache\n  net: Align AF-specific flowi structs to long\n  ipv4: Fix fib_info->fib_metrics leak\n  caif: fix a potential NULL dereference\n  sctp: deal with multiple COOKIE_ECHO chunks\n  ibmveth: Fix checksum offload failure handling\n  ibmveth: Checksum offload is always disabled\n  ibmveth: Fix issue with DMA mapping failure\n  ibmveth: Fix DMA unmap error\n  pch_gbe: support ML7831 IOH\n  pch_gbe: added the process of FIFO over run error\n  pch_gbe: fixed the issue which receives an unnecessary packet.\n  sfc: Use 64-bit writes for TX push where possible\n  Revert \"sfc: Use write-combining to reduce TX latency\" and follow-ups\n  bnx2x: Fix ethtool advertisement\n  bnx2x: Fix 578xx link LED\n  bnx2x: Fix XMAC loopback test\n  ...","Linus Torvalds"],["18b4fada275dd2b6dd9db904ddf70fe39e272222","08dc22c6156113f2deff178e35e3ed9b24d6af9e@amd.com","drm/radeon/kms: fix typo in r100_blit_copy\n\ncur_pages is the number of pages per loop iteration.\n\nSigned-off-by: Alex Deucher <alexander.deucher@amd.com>\nReviewed-by: Michel Dänzer <michel.daenzer@amd.com>\nCc: stable@kernel.org\nSigned-off-by: Dave Airlie <airlied@redhat.com>","Alex Deucher"],["003cefe0c238e683a29d2207dba945b508cd45b7","08dc22c6156113f2deff178e35e3ed9b24d6af9e@amd.com","drm/radeon/kms: Make GPU/CPU page size handling consistent in blit code (v2)\n\nThe BO blit code inconsistenly handled the page size.  This wasn't\nan issue on system with 4k pages since the GPU's page size is 4k as\nwell.  Switch the driver blit callbacks to take num pages in GPU\npage units.\n\nFixes lemote mipsel systems using AMD rs780/rs880 chipsets.\n\nv2: incorporate suggestions from Michel.\n\nSigned-off-by: Alex Deucher <alexander.deucher@amd.com>\nReviewed-by: Michel Dänzer <michel.daenzer@amd.com>\nCc: stable@kernel.org\nSigned-off-by: Dave Airlie <airlied@redhat.com>","Alex Deucher"],["6bf3b0dc32a27c6e1ba3dcdaf428a043113cd389","69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","Merge branch 'for-linus' of git://git.infradead.org/users/sameo/mfd-2.6\n\n* 'for-linus' of git://git.infradead.org/users/sameo/mfd-2.6:\n  mfd: Fix omap-usb-host build failure\n  mfd: Make omap-usb-host TLL mode work again\n  mfd: Set MAX8997 irq pointer\n  mfd: Fix initialisation of tps65910 interrupts\n  mfd: Check for twl4030-madc NULL pointer\n  mfd: Copy the device pointer to the twl4030-madc structure\n  mfd: Rename wm8350 static gpio_set_debounce()\n  mfd: Fix value of WM8994_CONFIGURE_GPIO","Linus Torvalds"],["e05c82d3666119075615fdbf6abca0266344f27b","a0baddf32b28d2f9429941ed4af2fe636e210591@gmail.com","tcp: fix build error if !CONFIG_SYN_COOKIES\n\ncommit 946cedccbd7387 (tcp: Change possible SYN flooding messages)\nadded a build error if CONFIG_SYN_COOKIES=n\n\nReported-by: Markus Trippelsdorf <markus@trippelsdorf.de>\nSigned-off-by: Eric Dumazet <eric.dumazet@gmail.com>\nSigned-off-by: David S. Miller <davem@davemloft.net>","Eric Dumazet"],["f779b2d60ab95c17f1e025778ed0df3ec2f05d75","45e2ee8c8b09e76a9d512320d4eb53c0cd9925c0@intel.com","tcp: fix validation of D-SACK\n\nD-SACK is allowed to reside below snd_una. But the corresponding check\nin tcp_is_sackblock_valid() is the exact opposite. It looks like a typo.\n\nSigned-off-by: Zheng Yan <zheng.z.yan@intel.com>\nAcked-by: Eric Dumazet <eric.dumazet@gmail.com>\nSigned-off-by: David S. Miller <davem@davemloft.net>","Zheng Yan"],["8974bd51a77824d91010176f9a5da28513c2e1f5","4596b3305151c7ee743192a95d394341e3d3b644@suse.de","ALSA: hda/realtek - Fix auto-mute with HP+LO configuration\n\nWhen the system has only the headphone and the line-out jacks without\nspeakers, the current auto-mute code doesn't work.  It's because the\nspec->automute_lines flag is wrongly referred in update_speakers().\nThis flag must be meaningless when spec->automute_hp_lo isn't set, thus\nthey should be always coupled.\n\nThe patch fixes the problem and add a comment to indicate the\nrelationship briefly.\n\nBugLink: http://bugs.launchpad.net/bugs/851697\n\nReported-by: David Henningsson <david.henningsson@canonical.com>\nTested-By: Jayne Han <jayne.han@canonical.com>\nCc: stable@kernel.org (3.0)\nSigned-off-by: Takashi Iwai <tiwai@suse.de>","Takashi Iwai"],["1f0772fe27aa03764478bd9d3a4cbad417a854cc","69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","Merge git://github.com/davem330/net\n\n* git://github.com/davem330/net:\n  tcp: fix validation of D-SACK\n  tcp: fix build error if !CONFIG_SYN_COOKIES","Linus Torvalds"],["6d7c2b4cfa5cb17c9f84c949bfece17b60b0f929","69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux\n\n* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:\n  drm/radeon/kms: Make GPU/CPU page size handling consistent in blit code (v2)\n  drm/radeon/kms: fix typo in r100_blit_copy\n  drm/radeon: Unreference GEM object outside of spinlock in page flip error path.\n  drm/radeon: Don't read from CP ring write pointer registers.\n  drm/ttm: request zeroed system memory pages for new TT buffer objects","Linus Torvalds"],["b6a68a5ba4a5111379625d6d921e1c24fc17dc3a","69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","Merge branch 'slab/urgent' of git://github.com/penberg/linux\n\n* 'slab/urgent' of git://github.com/penberg/linux:\n  slub: add slab with one free object to partial list tail","Linus Torvalds"],["5d59bbce3d5fba0c612e830f919e003d3da90d70","2a53bac7a5d324865ef46ec4c38b2c0fba1456b4@tuxdriver.com","Merge branch 'for-3.1' of git://github.com/padovan/bluetooth-next","John W. Linville"],["8c23516fbb209ccf8f8c36268311c721faff29ee","98f55d2e88c4f2211f21ce57ad36a0f2c004b614@somakoma.de","b43: Fix beacon problem in ad-hoc mode\n\nIn ad-hoc mode, driver b43 does not issue beacons.\n\nSigned-off-by: Manual Munz <freifunk@somakoma.de>\nTested-by: Larry Finger <Larry.Finger@lwfinger.net>\nSigned-off-by: Larry Finger <Larry.Finger@lwfinger.net>\nCc: Stable <stable@kernel.org>\nSigned-off-by: John W. Linville <linville@tuxdriver.com>","Manual Munz"],["1a51410abe7d0ee4b1d112780f46df87d3621043","69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org","Make TASKSTATS require root access\n\nOk, this isn't optimal, since it means that 'iotop' needs admin\ncapabilities, and we may have to work on this some more.  But at the\nsame time it is very much not acceptable to let anybody just read\nanybody elses IO statistics quite at this level.\n\nUse of the GENL_ADMIN_PERM suggested by Johannes Berg as an alternative\nto checking the capabilities by hand.\n\nReported-by: Vasiliy Kulikov <segoon@openwall.com>\nCc: Johannes Berg <johannes.berg@intel.com>\nAcked-by: Balbir Singh <bsingharora@gmail.com>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","Linus Torvalds"]],"ref":"refs/heads/pm-fixes"}